Browse Source

Always skip Mysql tests when not using Mysql for test connection.
Removing unused method which was added in 34489502b082aa1199b160f57b197a50350c526f
Always skipping now, as the test fatals when having only pdo_sqlite.

Ceeram 11 years ago
parent
commit
c73d4225da
1 changed files with 3 additions and 2 deletions
  1. 3 2
      tests/TestCase/Database/Driver/MysqlTest.php

+ 3 - 2
tests/TestCase/Database/Driver/MysqlTest.php

@@ -28,11 +28,12 @@ use \PDO;
 class MysqlTest extends TestCase {
 
 /**
- * Helper method for skipping tests that need a real connection.
+ * setup
  *
  * @return void
  */
-	protected function _needsConnection() {
+	public function setup() {
+		parent::setUp();
 		$config = Configure::read('Datasource.test');
 		$this->skipIf(strpos($config['datasource'], 'Mysql') === false, 'Not using Mysql for test config');
 	}