3 namespace Drupal\Tests\migrate_drupal\Kernel;
5 use Drupal\Tests\migrate_drupal\Kernel\d6\MigrateDrupal6TestBase;
8 * Test that no dummy migrate_map tables are created.
10 * @group migrate_drupal
12 class IdMapTableNoDummyTest extends MigrateDrupal6TestBase {
15 * The migration plugin manager.
17 * @var \Drupal\migrate\Plugin\MigrationPluginManagerInterface
19 protected $pluginManager;
24 public function setUp() {
26 $this->pluginManager = $this->container->get('plugin.manager.migration');
27 $this->pluginManager->createInstance('d6_user');
31 * Test that dummy map tables do not exist.
33 public function testNoDummyTables() {
34 $database = \Drupal::database();
35 $tables = $database->schema()->findTables('%migrate_map%');
36 $dummy_tables = preg_grep("/.*migrate_map_([0-9a-fA-F]){13}/", $tables);
37 $this->assertCount(0, $dummy_tables);