function MigrateTestBase::setUp
Same name in other branches
- 9 core/modules/migrate/tests/src/Kernel/MigrateTestBase.php \Drupal\Tests\migrate\Kernel\MigrateTestBase::setUp()
- 8.9.x core/modules/migrate/tests/src/Kernel/MigrateTestBase.php \Drupal\Tests\migrate\Kernel\MigrateTestBase::setUp()
- 10 core/modules/migrate/tests/src/Kernel/MigrateTestBase.php \Drupal\Tests\migrate\Kernel\MigrateTestBase::setUp()
Overrides KernelTestBase::setUp
18 calls to MigrateTestBase::setUp()
- EntityRevisionTest::setUp in core/
modules/ migrate/ tests/ src/ Kernel/ Plugin/ EntityRevisionTest.php - HighWaterTest::setUp in core/
modules/ migrate/ tests/ src/ Kernel/ HighWaterTest.php - MigrateBundleTest::setUp in core/
modules/ migrate/ tests/ src/ Kernel/ MigrateBundleTest.php - MigrateDrupalTestBase::setUp in core/
modules/ migrate_drupal/ tests/ src/ Kernel/ MigrateDrupalTestBase.php - MigrateExecutableTest::setUp in core/
modules/ migrate/ tests/ src/ Kernel/ MigrateExecutableTest.php
18 methods override MigrateTestBase::setUp()
- EntityRevisionTest::setUp in core/
modules/ migrate/ tests/ src/ Kernel/ Plugin/ EntityRevisionTest.php - HighWaterTest::setUp in core/
modules/ migrate/ tests/ src/ Kernel/ HighWaterTest.php - MigrateBundleTest::setUp in core/
modules/ migrate/ tests/ src/ Kernel/ MigrateBundleTest.php - MigrateDrupalTestBase::setUp in core/
modules/ migrate_drupal/ tests/ src/ Kernel/ MigrateDrupalTestBase.php - MigrateExecutableTest::setUp in core/
modules/ migrate/ tests/ src/ Kernel/ MigrateExecutableTest.php
File
-
core/
modules/ migrate/ tests/ src/ Kernel/ MigrateTestBase.php, line 71
Class
- MigrateTestBase
- Creates abstract base class for migration tests.
Namespace
Drupal\Tests\migrate\KernelCode
protected function setUp() : void {
parent::setUp();
$this->createMigrationConnection();
$this->sourceDatabase = Database::getConnection('default', 'migrate');
// Attach the original test prefix as a database, for SQLite to attach its
// database file.
$this->sourceDatabase
->attachDatabase(substr($this->sourceDatabase
->getConnectionOptions()['prefix'], 0, -1));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.