From 1bed4c29c7d3f3f71192725c7654b396ef509666 Mon Sep 17 00:00:00 2001 From: Sergei Morozov Date: Wed, 26 Aug 2020 08:01:06 -0700 Subject: [PATCH] Mark testDropsDatabaseWithActiveConnections() as incomplete on OraclePlatform --- .../Functional/Schema/SchemaManagerFunctionalTestCase.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tests/Doctrine/Tests/DBAL/Functional/Schema/SchemaManagerFunctionalTestCase.php b/tests/Doctrine/Tests/DBAL/Functional/Schema/SchemaManagerFunctionalTestCase.php index c8ac1200342..11754dc2fc6 100644 --- a/tests/Doctrine/Tests/DBAL/Functional/Schema/SchemaManagerFunctionalTestCase.php +++ b/tests/Doctrine/Tests/DBAL/Functional/Schema/SchemaManagerFunctionalTestCase.php @@ -94,10 +94,16 @@ protected function tearDown(): void public function testDropsDatabaseWithActiveConnections(): void { - if (! $this->schemaManager->getDatabasePlatform()->supportsCreateDropDatabase()) { + $platform = $this->schemaManager->getDatabasePlatform(); + + if (! $platform->supportsCreateDropDatabase()) { $this->markTestSkipped('Cannot drop Database client side with this Driver.'); } + if ($platform instanceof OraclePlatform) { + $this->markTestIncomplete('This functionality is not properly implemented in the Oracle platform.'); + } + $this->schemaManager->dropAndCreateDatabase('test_drop_database'); $knownDatabases = $this->schemaManager->listDatabases();