Browse Source

Fix failing testWrongCredentials test

Jose Diaz-Gonzalez 11 years ago
parent
commit
249b792931
1 changed files with 1 additions and 0 deletions
  1. 1 0
      tests/TestCase/Database/ConnectionTest.php

+ 1 - 0
tests/TestCase/Database/ConnectionTest.php

@@ -114,6 +114,7 @@ class ConnectionTest extends TestCase {
  */
 	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();
 	}