function NodeMigrationTypePluginAlterTest::testMigrationPluginAlter
Same name in other branches
- 9 core/modules/migrate_drupal/tests/src/Kernel/NodeMigrationTypePluginAlterTest.php \Drupal\Tests\migrate_drupal\Kernel\NodeMigrationTypePluginAlterTest::testMigrationPluginAlter()
- 8.9.x core/modules/migrate_drupal/tests/src/Kernel/NodeMigrationTypePluginAlterTest.php \Drupal\Tests\migrate_drupal\Kernel\NodeMigrationTypePluginAlterTest::testMigrationPluginAlter()
- 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 47
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) : void {
$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.