Skip to content

Commit 3ed959d

Browse files
committed
fixed a test in postgres
1 parent e837a57 commit 3ed959d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/TDBMSchemaAnalyzerTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,10 @@ public function testSchemaLock(): void
4444
$schemaFromConnec = self::getConnection()->getSchemaManager()->createSchema();
4545
$tableNames = [];
4646
//lock file doesn't save the database name so we have to replace it manually.
47+
ImmutableCaster::castSchemaToImmutable($schemaFromConnec);
4748
foreach ($schemaFromConnec->getTableNames() as $tableName) {
48-
$tableNames[] = str_replace('tdbm_testcase', 'public', $tableName);
49+
$tableNames[] = str_replace(['tdbm_testcase', 'postgres'], 'public', $tableName);
4950
}
50-
ImmutableCaster::castSchemaToImmutable($schemaFromConnec);
5151

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

0 commit comments

Comments
 (0)