function Upgrade7Test::setUp

Same name in this branch
  1. 11.x core/modules/migrate_drupal_ui/tests/src/Functional/d7/Upgrade7Test.php \Drupal\Tests\migrate_drupal_ui\Functional\d7\Upgrade7Test::setUp()
Same name and namespace in other branches
  1. 10 core/modules/forum/tests/src/Functional/migrate_drupal/d7/Upgrade7Test.php \Drupal\Tests\forum\Functional\migrate_drupal\d7\Upgrade7Test::setUp()
  2. 10 core/modules/migrate_drupal_ui/tests/src/Functional/d7/Upgrade7Test.php \Drupal\Tests\migrate_drupal_ui\Functional\d7\Upgrade7Test::setUp()
  3. 9 core/modules/rdf/tests/src/Functional/Migrate/Upgrade7Test.php \Drupal\Tests\rdf\Functional\Migrate\Upgrade7Test::setUp()
  4. 9 core/modules/migrate_drupal_ui/tests/src/Functional/d7/Upgrade7Test.php \Drupal\Tests\migrate_drupal_ui\Functional\d7\Upgrade7Test::setUp()
  5. 8.9.x core/modules/migrate_drupal_ui/tests/src/Functional/d7/Upgrade7Test.php \Drupal\Tests\migrate_drupal_ui\Functional\d7\Upgrade7Test::setUp()

Overrides MigrateUpgradeExecuteTestBase::setUp

File

core/modules/contact/tests/src/Functional/migrate_drupal_ui/d7/Upgrade7Test.php, line 43

Class

Upgrade7Test
Tests Drupal 7 upgrade using the migrate UI.

Namespace

Drupal\Tests\contact\Functional\migrate_drupal_ui\d7

Code

protected function setUp() : void {
  parent::setUp();
  $this->loadFixture($this->getModulePath('contact') . '/tests/fixtures/drupal7.php');
  $this->expectedLoggedErrors = 18;
  // If saving the logs, then set the admin user.
  if ($this->outputLogs) {
    $this->migratedAdminUserName = 'admin';
  }
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.