diff --git a/cake/tests/cases/libs/object.test.php b/cake/tests/cases/libs/object.test.php index 21b707bc075..a1224528c79 100644 --- a/cake/tests/cases/libs/object.test.php +++ b/cake/tests/cases/libs/object.test.php @@ -556,6 +556,13 @@ function testRequestActionParamParseAndPass() { $this->assertEqual($result['action'], 'params_pass'); $this->assertEqual($result['form'], array()); $this->assertEqual($result['plugin'], null); + + $result = $this->object->requestAction('/request_action/params_pass/sort:desc/limit:5'); + $expected = array('sort' => 'desc', 'limit' => 5,); + $this->assertEqual($result['named'], $expected); + + $result = $this->object->requestAction(array('controller' => 'request_action', 'action' => 'params_pass'), array('named' => array('sort' => 'desc', 'limit' => 5))); + $this->assertEqual($result['named'], $expected); } /** * test requestAction and POST parameter passing, and not passing when url is an array.