You are here

protected function MigrateTestBase::setUp in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 core/modules/migrate/src/Tests/MigrateTestBase.php \Drupal\migrate\Tests\MigrateTestBase::setUp()

Performs setup tasks before each individual test method is run.

Overrides KernelTestBase::setUp

3 calls to MigrateTestBase::setUp()
MigrateDrupalTestBase::setUp in core/modules/migrate_drupal/src/Tests/MigrateDrupalTestBase.php
Performs setup tasks before each individual test method is run.
MigrateRollbackTest::setUp in core/modules/migrate/src/Tests/MigrateRollbackTest.php
Performs setup tasks before each individual test method is run.
MigrateUserAdminPassTest::setUp in core/modules/user/src/Tests/Migrate/MigrateUserAdminPassTest.php
Performs setup tasks before each individual test method is run.
3 methods override MigrateTestBase::setUp()
MigrateDrupalTestBase::setUp in core/modules/migrate_drupal/src/Tests/MigrateDrupalTestBase.php
Performs setup tasks before each individual test method is run.
MigrateRollbackTest::setUp in core/modules/migrate/src/Tests/MigrateRollbackTest.php
Performs setup tasks before each individual test method is run.
MigrateUserAdminPassTest::setUp in core/modules/user/src/Tests/Migrate/MigrateUserAdminPassTest.php
Performs setup tasks before each individual test method is run.

File

core/modules/migrate/src/Tests/MigrateTestBase.php, line 59
Contains \Drupal\migrate\Tests\MigrateTestBase.

Class

MigrateTestBase
Base class for migration tests.

Namespace

Drupal\migrate\Tests

Code

protected function setUp() {
  parent::setUp();
  $this
    ->createMigrationConnection();
  $this->sourceDatabase = Database::getConnection('default', 'migrate');
}