/**
* Tests that ensureTables creates the migrate map table.
*
* @dataProvider providerTestEnsureTables
*/
public function testEnsureTables($ids) { $this->migrationDefinition
['source'
]['ids'
] =
$ids;
$migration =
$this->migrationPluginManager->
createStubMigration($this->migrationDefinition
);
$map =
new TestSqlIdMap($this->database,
[], 'test',
[],
$migration,
$this->eventDispatcher,
$this->migrationPluginManager
);
$map->
ensureTables();
// Checks that the map table was created.
$exists =
$this->database->
schema()->
tableExists('migrate_map_test'
);
$this->
assertTrue($exists);
} /**
* Provides data for testEnsureTables.
*/
public function providerTestEnsureTables() { return [