diff --git a/core/modules/migrate_drupal_ui/tests/src/Functional/MigrateUpgradeExecuteTestBase.php b/core/modules/migrate_drupal_ui/tests/src/Functional/MigrateUpgradeExecuteTestBase.php index 3f767e48a73..c5c1da46e84 100644 --- a/core/modules/migrate_drupal_ui/tests/src/Functional/MigrateUpgradeExecuteTestBase.php +++ b/core/modules/migrate_drupal_ui/tests/src/Functional/MigrateUpgradeExecuteTestBase.php @@ -53,7 +53,6 @@ abstract class MigrateUpgradeExecuteTestBase extends MigrateUpgradeTestBase { protected function tearDown(): void { if ($this->outputLogs) { $this->outputLogs($this->migratedAdminUserName); - $this->assertLogError(); } parent::tearDown(); } diff --git a/core/modules/migrate_drupal_ui/tests/src/Functional/d6/Upgrade6Test.php b/core/modules/migrate_drupal_ui/tests/src/Functional/d6/Upgrade6Test.php index 80aeb2697e2..060f7c32d27 100644 --- a/core/modules/migrate_drupal_ui/tests/src/Functional/d6/Upgrade6Test.php +++ b/core/modules/migrate_drupal_ui/tests/src/Functional/d6/Upgrade6Test.php @@ -54,10 +54,11 @@ class Upgrade6Test extends MigrateUpgradeExecuteTestBase { $this->loadFixture($this->getModulePath('migrate_drupal') . '/tests/fixtures/drupal6.php'); - // Enable saving the logs and set the post migration admin user name. - $this->outputLogs = TRUE; - $this->migratedAdminUserName = 'root'; $this->expectedLoggedErrors = 39; + // If saving the logs, then set the admin user. + if ($this->outputLogs) { + $this->migratedAdminUserName = 'admin'; + } } /** @@ -207,6 +208,7 @@ class Upgrade6Test extends MigrateUpgradeExecuteTestBase { $this->assertFollowUpMigrationResults(); $this->assertEntityRevisionsCount('node', 26); $this->assertEmailsSent(); + $this->assertLogError(); } /** diff --git a/core/modules/migrate_drupal_ui/tests/src/Functional/d7/Upgrade7Test.php b/core/modules/migrate_drupal_ui/tests/src/Functional/d7/Upgrade7Test.php index 327e86167f2..9afb6008fee 100644 --- a/core/modules/migrate_drupal_ui/tests/src/Functional/d7/Upgrade7Test.php +++ b/core/modules/migrate_drupal_ui/tests/src/Functional/d7/Upgrade7Test.php @@ -57,10 +57,11 @@ class Upgrade7Test extends MigrateUpgradeExecuteTestBase { $this->loadFixture($this->getModulePath('migrate_drupal') . '/tests/fixtures/drupal7.php'); - // Enable saving the logs and set the post migration admin user name. - $this->outputLogs = TRUE; - $this->migratedAdminUserName = 'admin'; $this->expectedLoggedErrors = 27; + // If saving the logs, then set the admin user. + if ($this->outputLogs) { + $this->migratedAdminUserName = 'admin'; + } } /** @@ -234,6 +235,7 @@ class Upgrade7Test extends MigrateUpgradeExecuteTestBase { $this->assertFollowUpMigrationResults(); $this->assertEntityRevisionsCount('node', 19); $this->assertEmailsSent(); + $this->assertLogError(); } /**