// This just tests mysql, as other PDO integrations allow longer indexes.
if (Database::
getConnection()->
databaseType() !== 'mysql'
) { $this->
markTestSkipped("This test only runs for MySQL"
);
} $this->migrationDefinition
['source'
]['ids'
] =
$ids;
$migration =
$this->container
->
get('plugin.manager.migration'
) ->
createStubMigration($this->migrationDefinition
);
// Use local id map plugin to force an error.
$map =
new SqlIdMapTest($this->database,
[], 'test',
[],
$migration,
$this->eventDispatcher,
$this->migrationPluginManager
);
$this->
expectException(DatabaseExceptionWrapper::
class);
$this->
expectExceptionMessage("Syntax error or access violation: 1074 Column length too big for column 'sourceid1' (max = 16383); use BLOB or TEXT instead:"
);
$map->
ensureTables();
} /**
* Provides data for testFailEnsureTables.
*/
public function providerTestFailEnsureTables() { return [