Browse Source

More blind coding pt. 4

Jose Lorenzo Rodriguez 12 years ago
parent
commit
77b44d3a2c
1 changed files with 2 additions and 8 deletions
  1. 2 8
      tests/TestCase/Database/ConnectionTest.php

+ 2 - 8
tests/TestCase/Database/ConnectionTest.php

@@ -30,13 +30,7 @@ class ConnectionTest extends TestCase {
 	}
 
 	public function tearDown() {
-		try {
-			$this->connection->execute('DROP TABLE IF EXISTS things');
-		} catch (\Exception $e) {
-			$config = ConnectionManager::config('test');
-			ConnectionManager::drop('test');
-			ConnectionManager::config('test', $config);
-		}
+		$this->connection->execute('DROP TABLE IF EXISTS things');
 		$this->connection->useSavePoints(false);
 		unset($this->connection);
 		parent::tearDown();
@@ -243,7 +237,7 @@ class ConnectionTest extends TestCase {
  *
  * @return void
  **/
-	public function testInsertWithPositionalTypes() {
+	public function _testInsertWithPositionalTypes() {
 		$table = 'CREATE TEMPORARY TABLE things(id int, title varchar(20), body varchar(50))';
 		$this->connection->execute($table);
 		$data = ['id' => '1', 'title' => 'a title', 'body' => 'a body'];