Fixing errors in CakeTestCase::testAction tests case caused by changes in test suite not always forcing an output parameter.

This commit is contained in:
Mark Story 2010-01-16 20:18:20 -05:00
parent 92ff9ccae0
commit 3be28fc749

View file

@ -343,7 +343,6 @@ class CakeTestCaseTest extends CakeTestCase {
'method' => 'get', 'method' => 'get',
)); ));
$this->assertTrue(isset($result['params']['url']['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')); $this->assertEqual(array_keys($result['params']['named']), array('var1', 'var2'));
$result = $this->Case->testAction('/tests_apps_posts/url_var/gogo/val2', array( $result = $this->Case->testAction('/tests_apps_posts/url_var/gogo/val2', array(
@ -361,7 +360,6 @@ class CakeTestCaseTest extends CakeTestCase {
'blue' => 'mana' 'blue' => 'mana'
) )
)); ));
$this->assertTrue(isset($result['params']['url']['output']));
$this->assertTrue(isset($result['params']['url']['red'])); $this->assertTrue(isset($result['params']['url']['red']));
$this->assertTrue(isset($result['params']['url']['blue'])); $this->assertTrue(isset($result['params']['url']['blue']));
$this->assertTrue(isset($result['params']['url']['url'])); $this->assertTrue(isset($result['params']['url']['url']));