Browse Source

Fixing last failing test case

Jose Lorenzo Rodriguez 12 years ago
parent
commit
0515b86641

+ 1 - 1
src/TestSuite/Fixture/FixtureManager.php

@@ -287,7 +287,7 @@ class FixtureManager {
 			}
 
 			if (!in_array($db->configName(), (array)$fixture->created)) {
-				$this->_setupTable($fixture, $db, $test->dropTables);
+				$this->_setupTable($fixture, $db, $dropTables);
 			}
 			$fixture->truncate($db);
 			$fixture->insert($db);

+ 1 - 0
tests/TestCase/Console/Command/Task/ModelTaskTest.php

@@ -97,6 +97,7 @@ class ModelTaskTest extends TestCase {
 	public function tearDown() {
 		parent::tearDown();
 		unset($this->Task);
+		$this->fixtureManager->shutDown();
 	}
 
 /**