diff --git a/cake/tests/cases/libs/cake_test_case.test.php b/cake/tests/cases/libs/cake_test_case.test.php index 974f41b9b..eee6316ff 100644 --- a/cake/tests/cases/libs/cake_test_case.test.php +++ b/cake/tests/cases/libs/cake_test_case.test.php @@ -255,7 +255,8 @@ class CakeTestCaseTest extends CakeTestCase { 'return' => 'vars', 'method' => 'get', )); - $this->assertEqual(array_keys($result['params']['url']), array('case', 'output', 'url')); + $this->assertTrue(isset($result['params']['url']['url'])); + $this->assertTrue(isset($result['params']['url']['output'])); $this->assertEqual(array_keys($result['params']['named']), array('var1', 'var2')); $result = $this->Case->testAction('/tests_apps_posts/url_var/gogo/val2', array( @@ -272,7 +273,10 @@ class CakeTestCaseTest extends CakeTestCase { 'blue' => 'mana' ) )); - $this->assertEqual(array_keys($result['params']['url']), array('case', 'output', 'red', 'blue', 'url')); + $this->assertTrue(isset($result['params']['url']['output'])); + $this->assertTrue(isset($result['params']['url']['red'])); + $this->assertTrue(isset($result['params']['url']['blue'])); + $this->assertTrue(isset($result['params']['url']['url'])); $result = $this->Case->testAction('/tests_apps_posts/post_var', array( 'return' => 'vars', diff --git a/cake/tests/lib/cake_test_case.php b/cake/tests/lib/cake_test_case.php index 483e99d4d..aec627030 100644 --- a/cake/tests/lib/cake_test_case.php +++ b/cake/tests/lib/cake_test_case.php @@ -377,6 +377,7 @@ class CakeTestCase extends UnitTestCase { foreach ($this->_fixtures as $fixture) { if (in_array($fixture->table, $sources)) { $fixture->drop($this->db); + $fixture->create($this->db); } elseif (!in_array($fixture->table, $sources)) { $fixture->create($this->db); }