diff --git a/cake/tests/cases/libs/router.test.php b/cake/tests/cases/libs/router.test.php index 6aa7c798f..099d29a09 100644 --- a/cake/tests/cases/libs/router.test.php +++ b/cake/tests/cases/libs/router.test.php @@ -213,12 +213,16 @@ class RouterTest extends UnitTestCase { 'webservices' => null ) )); - $this->router->connect('short_controller_name/index/*', array('controller' => 'real_controller_name')); + $this->router->connect('short_controller_name/:action/*', array('controller' => 'real_controller_name')); $result = $this->router->url(array('controller' => 'real_controller_name', 'page' => '1')); $expected = '/short_controller_name/index/page:1'; $this->assertEqual($result, $expected); + $result = $this->router->url(array('action' => 'add')); + $expected = '/short_controller_name/add/'; + $this->assertEqual($result, $expected); + $this->router->reload(); $this->router->connect(