public function MigrateUpdateTest::testUpdateTableNames in Commerce Migrate 8.2
Same name and namespace in other branches
- 3.1.x modules/ubercart/tests/src/Functional/MigrateUpdateTest.php \Drupal\Tests\commerce_migrate_ubercart\Functional\MigrateUpdateTest::testUpdateTableNames()
- 3.0.x modules/ubercart/tests/src/Functional/MigrateUpdateTest.php \Drupal\Tests\commerce_migrate_ubercart\Functional\MigrateUpdateTest::testUpdateTableNames()
Test the update of the map table when the source plugin is uc7_field.
File
- modules/
ubercart/ tests/ src/ Functional/ MigrateUpdateTest.php, line 32
Class
- MigrateUpdateTest
- Tests the update of migrate table names.
Namespace
Drupal\Tests\commerce_migrate_ubercart\FunctionalCode
public function testUpdateTableNames() {
foreach ([
'migration_group',
'migration',
] as $entity_type) {
$definition = \Drupal::entityTypeManager()
->getDefinition($entity_type);
\Drupal::entityDefinitionUpdateManager()
->installEntityType($definition);
}
$this
->runUpdates();
// Assert that a new source id has been added to the d7_field migrate map.
$this
->assertTrue(\Drupal::database()
->schema()
->fieldExists('migrate_map_d7_field', 'sourceid3'));
}