Skip to content

Commit

Permalink
Adding test for previous commit.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Dec 1, 2009
1 parent a8f79f9 commit a5a0292
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cake/tests/cases/libs/router.test.php
Expand Up @@ -2188,6 +2188,11 @@ function testMatchBasic() {
$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/');
Expand Down

0 comments on commit a5a0292

Please sign in to comment.