function IdMapTableNoDummyTest::testNoDummyTables
Same name in other branches
- 9 core/modules/migrate_drupal/tests/src/Kernel/IdMapTableNoDummyTest.php \Drupal\Tests\migrate_drupal\Kernel\IdMapTableNoDummyTest::testNoDummyTables()
- 8.9.x core/modules/migrate_drupal/tests/src/Kernel/IdMapTableNoDummyTest.php \Drupal\Tests\migrate_drupal\Kernel\IdMapTableNoDummyTest::testNoDummyTables()
- 11.x core/modules/migrate_drupal/tests/src/Kernel/IdMapTableNoDummyTest.php \Drupal\Tests\migrate_drupal\Kernel\IdMapTableNoDummyTest::testNoDummyTables()
Tests that dummy map tables do not exist.
File
-
core/
modules/ migrate_drupal/ tests/ src/ Kernel/ IdMapTableNoDummyTest.php, line 35
Class
- IdMapTableNoDummyTest
- Test that no dummy migrate_map tables are created.
Namespace
Drupal\Tests\migrate_drupal\KernelCode
public function testNoDummyTables() : void {
$database = \Drupal::database();
$tables = $database->schema()
->findTables('%migrate_map%');
$dummy_tables = preg_grep("/.*migrate_map_([0-9a-fA-F]){13}/", $tables);
$this->assertCount(0, $dummy_tables);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.