protected function MigrateTestBase::executeMigrations in Drupal 8
Same name and namespace in other branches
- 9 core/modules/migrate/tests/src/Kernel/MigrateTestBase.php \Drupal\Tests\migrate\Kernel\MigrateTestBase::executeMigrations()
- 10 core/modules/migrate/tests/src/Kernel/MigrateTestBase.php \Drupal\Tests\migrate\Kernel\MigrateTestBase::executeMigrations()
Executes a set of migrations in dependency order.
Parameters
string[] $ids: Array of migration IDs, in any order. If any of these migrations use a deriver, the derivatives will be made before execution.
121 calls to MigrateTestBase::executeMigrations()
- EntityContentBaseTest::setUp in core/
modules/ migrate_drupal/ tests/ src/ Kernel/ d6/ EntityContentBaseTest.php - FieldDiscoveryTest::setUp in core/
modules/ migrate_drupal/ tests/ src/ Kernel/ d7/ FieldDiscoveryTest.php - FollowUpMigrationsTest::setUp in core/
modules/ migrate_drupal/ tests/ src/ Kernel/ d7/ FollowUpMigrationsTest.php - FollowUpMigrationsTest::setUp in core/
modules/ migrate_drupal/ tests/ src/ Kernel/ d6/ FollowUpMigrationsTest.php - FollowUpMigrationsTest::testEntityReferenceTranslations in core/
modules/ migrate_drupal/ tests/ src/ Kernel/ d7/ FollowUpMigrationsTest.php - Test entity reference translations.
File
- core/
modules/ migrate/ tests/ src/ Kernel/ MigrateTestBase.php, line 190
Class
- MigrateTestBase
- Creates abstract base class for migration tests.
Namespace
Drupal\Tests\migrate\KernelCode
protected function executeMigrations(array $ids) {
$manager = $this->container
->get('plugin.manager.migration');
array_walk($ids, function ($id) use ($manager) {
// This is possibly a base plugin ID and we want to run all derivatives.
$instances = $manager
->createInstances($id);
$this
->assertNotEmpty($instances, sprintf("No migrations created for id '%s'.", $id));
array_walk($instances, [
$this,
'executeMigration',
]);
});
}