protected function MigrateUpgradeTestBase::loadFixture in Drupal 8
Same name and namespace in other branches
- 9 core/modules/migrate_drupal_ui/tests/src/Functional/MigrateUpgradeTestBase.php \Drupal\Tests\migrate_drupal_ui\Functional\MigrateUpgradeTestBase::loadFixture()
Loads a database fixture into the source database connection.
Parameters
string $path: Path to the dump file.
8 calls to MigrateUpgradeTestBase::loadFixture()
- IdConflictTest::setUp in core/
modules/ migrate_drupal_ui/ tests/ src/ Functional/ d6/ IdConflictTest.php - IdConflictTest::setUp in core/
modules/ migrate_drupal_ui/ tests/ src/ Functional/ d7/ IdConflictTest.php - MultilingualReviewPageTest::setUp in core/
modules/ migrate_drupal_ui/ tests/ src/ Functional/ d6/ MultilingualReviewPageTest.php - MultilingualReviewPageTest::setUp in core/
modules/ migrate_drupal_ui/ tests/ src/ Functional/ d7/ MultilingualReviewPageTest.php - NodeClassicTest::setUp in core/
modules/ migrate_drupal_ui/ tests/ src/ Functional/ d6/ NodeClassicTest.php
File
- core/
modules/ migrate_drupal_ui/ tests/ src/ Functional/ MigrateUpgradeTestBase.php, line 52
Class
- MigrateUpgradeTestBase
- Provides a base class for testing migration upgrades in the UI.
Namespace
Drupal\Tests\migrate_drupal_ui\FunctionalCode
protected function loadFixture($path) {
$default_db = Database::getConnection()
->getKey();
Database::setActiveConnection($this->sourceDatabase
->getKey());
if (substr($path, -3) == '.gz') {
$path = 'compress.zlib://' . $path;
}
require $path;
Database::setActiveConnection($default_db);
}