From a1c2beb960f7106b7dddba51873dcfccdbe1b14a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Vo=C5=99=C3=AD=C5=A1ek?= Date: Mon, 11 Jul 2022 18:26:51 +0200 Subject: [PATCH] fix pgsql/mssql/oracle missing quote --- tests/Schema/MigratorTest.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/tests/Schema/MigratorTest.php b/tests/Schema/MigratorTest.php index 8228a77e38..e8ab037259 100644 --- a/tests/Schema/MigratorTest.php +++ b/tests/Schema/MigratorTest.php @@ -14,6 +14,7 @@ use Doctrine\DBAL\Platforms\OraclePlatform; use Doctrine\DBAL\Platforms\PostgreSQLPlatform; use Doctrine\DBAL\Platforms\SQLServerPlatform; +use Doctrine\DBAL\Schema\Identifier as DbalIdentifier; class MigratorTest extends TestCase { @@ -35,7 +36,14 @@ protected function createDemoMigrator(string $table): Migrator protected function isTableExist(string $table): bool { - return $this->createSchemaManager()->tablesExist([$table]); + foreach ($this->createSchemaManager()->listTableNames() as $v) { + $vUnquoted = (new DbalIdentifier($v))->getName(); + if ($vUnquoted === $table) { + return true; + } + } + + return false; } public function testCreate(): void