function MigrateUpgradeExecuteTestBase::outputLogs
Same name in other branches
- 10 core/modules/migrate_drupal_ui/tests/src/Functional/MigrateUpgradeExecuteTestBase.php \Drupal\Tests\migrate_drupal_ui\Functional\MigrateUpgradeExecuteTestBase::outputLogs()
Preserve the logs pages.
1 call to MigrateUpgradeExecuteTestBase::outputLogs()
- MigrateUpgradeExecuteTestBase::tearDown in core/
modules/ migrate_drupal_ui/ tests/ src/ Functional/ MigrateUpgradeExecuteTestBase.php
File
-
core/
modules/ migrate_drupal_ui/ tests/ src/ Functional/ MigrateUpgradeExecuteTestBase.php, line 163
Class
- MigrateUpgradeExecuteTestBase
- Provides a base class for testing a complete upgrade via the UI.
Namespace
Drupal\Tests\migrate_drupal_ui\FunctionalCode
public function outputLogs(string $username) : void {
// Ensure user 1 is accessing the admin log. Change the username because
// the migration changes the username of user 1 but not the password.
if (\Drupal::currentUser()->id() != 1) {
$this->rootUser->name = $username;
$this->drupalLogin($this->rootUser);
}
$this->drupalGet('/admin/reports/dblog');
while ($next_link = $this->getSession()
->getPage()
->findLink('Next page')) {
$next_link->click();
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.