You are here

public function NodeMigrationTypePluginAlterTest::testMigrationPluginAlter in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/migrate_drupal/tests/src/Kernel/NodeMigrationTypePluginAlterTest.php \Drupal\Tests\migrate_drupal\Kernel\NodeMigrationTypePluginAlterTest::testMigrationPluginAlter()
  2. 10 core/modules/migrate_drupal/tests/src/Kernel/NodeMigrationTypePluginAlterTest.php \Drupal\Tests\migrate_drupal\Kernel\NodeMigrationTypePluginAlterTest::testMigrationPluginAlter()

Tests the assignment of the node migration type.

@dataProvider providerMigrationPluginAlter

Parameters

string $type: The type of node migration, 'classic' or 'complete'.

array $migration_definitions: An array of migration definitions.

array $expected: The expected results.

Throws

\Exception

File

core/modules/migrate_drupal/tests/src/Kernel/NodeMigrationTypePluginAlterTest.php, line 45

Class

NodeMigrationTypePluginAlterTest
Tests the assignment of the node migration type in migrations_plugin_alter.

Namespace

Drupal\Tests\migrate_drupal\Kernel

Code

public function testMigrationPluginAlter($type, array $migration_definitions, array $expected) {
  $this
    ->makeNodeMigrateMapTable($type, '7');
  migrate_drupal_migration_plugins_alter($migration_definitions);
  $this
    ->assertSame($expected, $migration_definitions);
}