Skip to content

Commit 1039abc

Browse files
committed
fix tests.
1 parent c630102 commit 1039abc

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

pkg/dbal/Tests/Spec/CreateDbalContextTrait.php

+5-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,11 @@ protected function createDbalContext()
1515
$factory = new DbalConnectionFactory($env);
1616

1717
$context = $factory->createContext();
18-
$context->getDbalConnection()->getSchemaManager()->dropTable($context->getTableName());
18+
19+
if ($context->getDbalConnection()->getSchemaManager()->tablesExist([$context->getTableName()])) {
20+
$context->getDbalConnection()->getSchemaManager()->dropTable($context->getTableName());
21+
}
22+
1923
$context->createDataBaseTable();
2024

2125
return $context;

0 commit comments

Comments
 (0)