protected function MigrateTestBase::getMigration in Drupal 8
Same name and namespace in other branches
- 9 core/modules/migrate/tests/src/Kernel/MigrateTestBase.php \Drupal\Tests\migrate\Kernel\MigrateTestBase::getMigration()
Gets the migration plugin.
Parameters
$plugin_id: The plugin ID of the migration to get.
Return value
\Drupal\migrate\Plugin\Migration The migration plugin.
36 calls to MigrateTestBase::getMigration()
- MigrateDateFormatTest::testDateFormats in core/
modules/ system/ tests/ src/ Kernel/ Migrate/ d6/ MigrateDateFormatTest.php - Tests the Drupal 6 date formats to Drupal 8 migration.
- MigrateDependenciesTest::testAggregatorMigrateDependencies in core/
modules/ migrate_drupal/ tests/ src/ Kernel/ dependencies/ MigrateDependenciesTest.php - Tests dependencies on the migration of aggregator feeds & items.
- MigrateDrupal6AuditIdsTest::testDraftRevisionIdConflicts in core/
modules/ migrate_drupal/ tests/ src/ Kernel/ d6/ MigrateDrupal6AuditIdsTest.php - Tests draft revisions ID conflicts.
- MigrateDrupal6AuditIdsTest::testMultipleMigrationWithoutIdConflicts in core/
modules/ migrate_drupal/ tests/ src/ Kernel/ d6/ MigrateDrupal6AuditIdsTest.php - Tests multiple migrations to the same destination with no ID conflicts.
- MigrateDrupal6AuditIdsTest::testNodeGrantsIdConflicts in core/
modules/ migrate_drupal/ tests/ src/ Kernel/ d6/ MigrateDrupal6AuditIdsTest.php - Tests ID conflicts for inaccessible nodes.
File
- core/
modules/ migrate/ tests/ src/ Kernel/ MigrateTestBase.php, line 262
Class
- MigrateTestBase
- Creates abstract base class for migration tests.
Namespace
Drupal\Tests\migrate\KernelCode
protected function getMigration($plugin_id) {
return $this->container
->get('plugin.manager.migration')
->createInstance($plugin_id);
}