protected function MigrateTestBase::executeMigration in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/migrate/src/Tests/MigrateTestBase.php \Drupal\migrate\Tests\MigrateTestBase::executeMigration()
Executes a single migration.
Parameters
string|\Drupal\migrate\Entity\MigrationInterface $migration: The migration to execute, or its ID.
107 calls to MigrateTestBase::executeMigration()
- EntityContentBaseTest::testOverwriteAllMappedProperties in core/
modules/ migrate_drupal/ src/ Tests/ d6/ EntityContentBaseTest.php - Tests overwriting all mapped properties in the destination entity (default behavior).
- EntityContentBaseTest::testOverwriteProperties in core/
modules/ migrate_drupal/ src/ Tests/ d6/ EntityContentBaseTest.php - Tests overwriting selected properties in the destination entity, specified in the destination configuration.
- MigrateActionConfigsTest::setUp in core/
modules/ action/ src/ Tests/ Migrate/ d6/ MigrateActionConfigsTest.php - Performs setup tasks before each individual test method is run.
- MigrateAggregatorConfigsTest::setUp in core/
modules/ aggregator/ src/ Tests/ Migrate/ d6/ MigrateAggregatorConfigsTest.php - Performs setup tasks before each individual test method is run.
- MigrateAggregatorFeedTest::setUp in core/
modules/ aggregator/ src/ Tests/ Migrate/ d6/ MigrateAggregatorFeedTest.php - Performs setup tasks before each individual test method is run.
File
- core/
modules/ migrate/ src/ Tests/ MigrateTestBase.php, line 151 - Contains \Drupal\migrate\Tests\MigrateTestBase.
Class
- MigrateTestBase
- Base class for migration tests.
Namespace
Drupal\migrate\TestsCode
protected function executeMigration($migration) {
if (is_string($migration)) {
$this->migration = Migration::load($migration);
}
else {
$this->migration = $migration;
}
if ($this instanceof MigrateDumpAlterInterface) {
static::migrateDumpAlter($this);
}
(new MigrateExecutable($this->migration, $this))
->import();
}