function MigrateTestBase::getMigration
Same name and namespace in other branches
- 11.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()
- 8.9.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.
1 call to MigrateTestBase::getMigration()
- MigrateTaxonomyTermStubTest::testStubWithWeightMapping in core/
modules/ taxonomy/ tests/ src/ Kernel/ Migrate/ MigrateTaxonomyTermStubTest.php - Tests creation of stubs when weight is mapped.
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.