function MigrateTestBase::getMigration

Same name in other branches
  1. 9 core/modules/migrate/tests/src/Kernel/MigrateTestBase.php \Drupal\Tests\migrate\Kernel\MigrateTestBase::getMigration()
  2. 10 core/modules/migrate/tests/src/Kernel/MigrateTestBase.php \Drupal\Tests\migrate\Kernel\MigrateTestBase::getMigration()
  3. 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.

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.

... See full list

File

core/modules/migrate/tests/src/Kernel/MigrateTestBase.php, line 262

Class

MigrateTestBase
Creates abstract base class for migration tests.

Namespace

Drupal\Tests\migrate\Kernel

Code

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.