protected function MigrateTestBase::getMigration in Drupal 10
Same name and namespace in other branches
- 8 core/modules/migrate/tests/src/Kernel/MigrateTestBase.php \Drupal\Tests\migrate\Kernel\MigrateTestBase::getMigration()
- 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.
64 calls to MigrateTestBase::getMigration()
- CommentEntityTranslationCheckRequirementsTest::testCheckRequirements in core/
modules/ comment/ tests/ src/ Kernel/ Migrate/ d7/ CommentEntityTranslationCheckRequirementsTest.php - Tests exception thrown when the given module is not enabled in the source.
- CommentTypeRequirementsTest::testCheckCommentTypeRequirements in core/
modules/ comment/ tests/ src/ Kernel/ Plugin/ migrate/ source/ CommentTypeRequirementsTest.php - Tests thrown exceptions when node or comment aren't enabled on source.
- MigrateBlockTest::testBlockMigration in core/
modules/ block/ tests/ src/ Kernel/ Migrate/ d6/ MigrateBlockTest.php - Tests the block migration.
- MigrateContactCategoryTest::testContactCategory in core/
modules/ contact/ tests/ src/ Kernel/ Migrate/ MigrateContactCategoryTest.php - The Drupal 6 and 7 contact categories to Drupal 8 migration.
- MigrateDateFormatTest::testDateFormats in core/
modules/ system/ tests/ src/ Kernel/ Migrate/ d6/ MigrateDateFormatTest.php - Tests the Drupal 6 date formats to Drupal 8 migration.
File
- core/
modules/ migrate/ tests/ src/ Kernel/ MigrateTestBase.php, line 259
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);
}