Adding tests for #2520

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4989 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
phpnut 2007-05-02 18:37:28 +00:00
parent 9ac249631b
commit b5e3a55e03

View file

@ -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() {