From 249b7929310d027dc8be2d03f250dc70a2535f59 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Mon, 13 Oct 2014 17:35:52 -0400 Subject: [PATCH] Fix failing testWrongCredentials test --- tests/TestCase/Database/ConnectionTest.php | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/TestCase/Database/ConnectionTest.php b/tests/TestCase/Database/ConnectionTest.php index 378b5fbe43d..2c6c5a09209 100644 --- a/tests/TestCase/Database/ConnectionTest.php +++ b/tests/TestCase/Database/ConnectionTest.php @@ -114,6 +114,7 @@ public function testDisabledDriver() { */ public function testWrongCredentials() { $config = ConnectionManager::config('test'); + $this->skipIf(isset($config['url']), 'Datasource has dsn, skipping.'); $connection = new Connection(['database' => '_probably_not_there_'] + ConnectionManager::config('test')); $connection->connect(); }