Browse Source

Sacrificing a test for the helth of the rest of the test suite.

That test is doomed to fail in sqlite and it was hard to move elsewhere
I will look into adding it back later
Jose Lorenzo Rodriguez 12 years ago
parent
commit
e6f81d35ae

+ 0 - 16
tests/TestCase/Database/Driver/MysqlTest.php

@@ -105,20 +105,4 @@ class MysqlTest extends TestCase {
 		$driver->connect();
 	}
 
-/**
- * Tests disconnecting from database
- *
- * @return void
- **/
-	public function testDisconnect() {
-		$config = ConnectionManager::config('test');
-		ConnectionManager::config('test_disconnect', $config);
-		$connection = ConnectionManager::get('test_disconnect');
-		$this->assertTrue($connection->connect());
-		$this->assertTrue($connection->isConnected());
-		$connection->disconnect();
-		$this->assertFalse($connection->isConnected());
-		ConnectionManager::drop('test_disconnect');
-	}
-
 }

+ 0 - 17
tests/TestCase/Database/Driver/PostgresTest.php

@@ -166,21 +166,4 @@ class PostgresTest extends \Cake\TestSuite\TestCase {
 		$this->assertEquals('FOO', $query->clause('epilog'));
 	}
 
-/**
- * Tests disconnecting from database
- *
- * @return void
- **/
-	public function testDisconnect() {
-		$config = ConnectionManager::config('test');
-		$this->skipIf(strpos($config['datasource'], 'Postgres') === false, 'Not using Postgres for test config');
-		ConnectionManager::config('test_disconnect', $config);
-		$connection = ConnectionManager::get('test_disconnect');
-		$this->assertTrue($connection->connect());
-		$this->assertTrue($connection->isConnected());
-		$connection->disconnect();
-		$this->assertFalse($connection->isConnected());
-		ConnectionManager::drop('test_disconnect');
-	}
-
 }