mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
Adding test for previous commit.
This commit is contained in:
parent
a8f79f9fe5
commit
a5a02925d8
1 changed files with 5 additions and 0 deletions
|
@ -2188,6 +2188,11 @@ class RouterRouteTestCase extends CakeTestCase {
|
|||
$this->assertFalse($result);
|
||||
|
||||
|
||||
$route =& new RouterRoute('/foo/:controller/:action', array('action' => 'index'));
|
||||
$result = $route->match(array('controller' => 'posts', 'action' => 'view'));
|
||||
$this->assertEqual($result, '/foo/posts/view');
|
||||
|
||||
|
||||
$route =& new RouterRoute('/:plugin/:id/*', array('controller' => 'posts', 'action' => 'view'));
|
||||
$result = $route->match(array('plugin' => 'test', 'controller' => 'posts', 'action' => 'view', 'id' => '1'));
|
||||
$this->assertEqual($result, '/test/1/');
|
||||
|
|
Loading…
Reference in a new issue