Skip to content

Commit

Permalink
fixed a test in postgres
Browse files Browse the repository at this point in the history
  • Loading branch information
Kharhamel committed Sep 20, 2019
1 parent e837a57 commit 3ed959d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/TDBMSchemaAnalyzerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ public function testSchemaLock(): void
$schemaFromConnec = self::getConnection()->getSchemaManager()->createSchema();
$tableNames = [];
//lock file doesn't save the database name so we have to replace it manually.
ImmutableCaster::castSchemaToImmutable($schemaFromConnec);
foreach ($schemaFromConnec->getTableNames() as $tableName) {
$tableNames[] = str_replace('tdbm_testcase', 'public', $tableName);
$tableNames[] = str_replace(['tdbm_testcase', 'postgres'], 'public', $tableName);
}
ImmutableCaster::castSchemaToImmutable($schemaFromConnec);

$schemaAnalyzer = new SchemaAnalyzer(self::getConnection()->getSchemaManager(), new ArrayCache(), 'prefix_');
$cache = new ArrayCache();
Expand Down

0 comments on commit 3ed959d

Please sign in to comment.