Browse Source

Update config check to not skip tests.

The config key changed but the tests were left behind.
mark_story 12 years ago
parent
commit
74c6effd22

+ 1 - 1
tests/TestCase/Database/Schema/MysqlSchemaTest.php

@@ -33,7 +33,7 @@ class MysqlSchemaTest extends TestCase {
  */
 	protected function _needsConnection() {
 		$config = ConnectionManager::config('test');
-		$this->skipIf(strpos($config['className'], 'Mysql') === false, 'Not using Mysql for test config');
+		$this->skipIf(strpos($config['driver'], 'Mysql') === false, 'Not using Mysql for test config');
 	}
 
 /**

+ 1 - 1
tests/TestCase/Database/Schema/SqliteSchemaTest.php

@@ -33,7 +33,7 @@ class SqliteSchemaTest extends TestCase {
  */
 	protected function _needsConnection() {
 		$config = ConnectionManager::config('test');
-		$this->skipIf(strpos($config['className'], 'Sqlite') === false, 'Not using Sqlite for test config');
+		$this->skipIf(strpos($config['driver'], 'Sqlite') === false, 'Not using Sqlite for test config');
 	}
 
 /**