function NodeMigrateTypeTestTrait::removeNodeMigrateMapTable
Same name in other branches
- 9 core/modules/migrate_drupal/tests/src/Traits/NodeMigrateTypeTestTrait.php \Drupal\Tests\migrate_drupal\Traits\NodeMigrateTypeTestTrait::removeNodeMigrateMapTable()
- 8.9.x core/modules/migrate_drupal/tests/src/Traits/NodeMigrateTypeTestTrait.php \Drupal\Tests\migrate_drupal\Traits\NodeMigrateTypeTestTrait::removeNodeMigrateMapTable()
- 11.x core/modules/migrate_drupal/tests/src/Traits/NodeMigrateTypeTestTrait.php \Drupal\Tests\migrate_drupal\Traits\NodeMigrateTypeTestTrait::removeNodeMigrateMapTable()
Remove the node migrate map table.
Parameters
string $type: The type of node migration, 'complete' or 'classic'.
string $version: The source database version.
Throws
\Exception
2 calls to NodeMigrateTypeTestTrait::removeNodeMigrateMapTable()
- MigrateNodeCompleteTest::setUp in core/
modules/ node/ tests/ src/ Kernel/ Migrate/ d7/ MigrateNodeCompleteTest.php - MigrateTermNodeComplete::setUp in core/
modules/ taxonomy/ tests/ src/ Kernel/ Migrate/ d6/ MigrateTermNodeComplete.php
File
-
core/
modules/ migrate_drupal/ tests/ src/ Traits/ NodeMigrateTypeTestTrait.php, line 56
Class
- NodeMigrateTypeTestTrait
- Helper functions to test complete and classic node migrations.
Namespace
Drupal\Tests\migrate_drupal\TraitsCode
protected function removeNodeMigrateMapTable($type, $version) {
$name = $this->getTableName($type, $version);
\Drupal::database()->schema()
->dropTable($name);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.