function 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\KernelCode
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);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.