function MigrateTestBase::getMigration
Same name and namespace in other branches
- 8.9.x core/modules/migrate/tests/src/Kernel/MigrateTestBase.php \Drupal\Tests\migrate\Kernel\MigrateTestBase::getMigration()
- 10 core/modules/migrate/tests/src/Kernel/MigrateTestBase.php \Drupal\Tests\migrate\Kernel\MigrateTestBase::getMigration()
- 11.x 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.
22 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/ aggregator/ tests/ src/ Kernel/ Migrate/ d6/ MigrateDependenciesTest.php - Tests dependencies on the migration of aggregator feeds & items.
- MigrateExternalTranslatedTest::testMigrations in core/
modules/ migrate/ tests/ src/ Kernel/ MigrateExternalTranslatedTest.php - Tests importing and rolling back our data.
- MigrateFilterFormatTest::testFilterFormat in core/
modules/ filter/ tests/ src/ Kernel/ Migrate/ d7/ MigrateFilterFormatTest.php - Tests the Drupal 7 filter format to Drupal 8 migration.
- MigrateMenuTest::testMenu in core/
modules/ system/ tests/ src/ Kernel/ Migrate/ d7/ MigrateMenuTest.php - Tests the Drupal 7 menu to Drupal 8 migration.
File
-
core/
modules/ migrate/ tests/ src/ Kernel/ MigrateTestBase.php, line 260
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);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.