From b5e3a55e03eb7221cb453fe79e26af819f386b3a Mon Sep 17 00:00:00 2001 From: phpnut Date: Wed, 2 May 2007 18:37:28 +0000 Subject: [PATCH] Adding tests for #2520 git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4989 3807eeeb-6ff5-0310-8944-8be069107fe0 --- cake/tests/cases/libs/router.test.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cake/tests/cases/libs/router.test.php b/cake/tests/cases/libs/router.test.php index 05898dab5..b74b92344 100644 --- a/cake/tests/cases/libs/router.test.php +++ b/cake/tests/cases/libs/router.test.php @@ -151,6 +151,11 @@ class RouterTest extends UnitTestCase { $result = $this->router->url(array('controller' => 'posts', '0', '?' => 'var=test&var2=test2', '#' => 'unencoded string %')); $expected = '/posts/index/0?var=test&var2=test2#unencoded+string+%25'; $this->assertEqual($result, $expected); + + $this->router->connect('/view/*', array('controller' => 'posts', 'action' => 'view')); + $result = $this->router->url(array('controller' => 'posts', 'action' => 'view', '1')); + $expected = '/view/1'; + $this->assertEqual($result, $expected); } function testUrlParsing() {