From 1316daf43998152c61db9a47a456ca0276fd32f7 Mon Sep 17 00:00:00 2001 From: Jose Lorenzo Rodriguez Date: Sun, 30 Mar 2014 11:06:29 +0200 Subject: [PATCH] More blind condig pt. 3 --- tests/TestCase/Database/ConnectionTest.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/TestCase/Database/ConnectionTest.php b/tests/TestCase/Database/ConnectionTest.php index 9120ae92dae..4235cd1d438 100644 --- a/tests/TestCase/Database/ConnectionTest.php +++ b/tests/TestCase/Database/ConnectionTest.php @@ -33,6 +33,9 @@ public function tearDown() { try { $this->connection->execute('DROP TABLE IF EXISTS things'); } catch (\Exception $e) { + $config = ConnectionManager::config('test'); + ConnectionManager::drop('test'); + ConnectionManager::config('test', $config); } $this->connection->useSavePoints(false); unset($this->connection);