mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-18 18:46:17 +00:00
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:
parent
9ac249631b
commit
b5e3a55e03
1 changed files with 5 additions and 0 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Reference in a new issue