Skip to content

Commit

Permalink
Adding an additional test for plugin + prefix routing.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Apr 11, 2010
1 parent 955192a commit 561e5fa
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cake/tests/cases/libs/router.test.php
Expand Up @@ -1149,6 +1149,12 @@ function testPrefixRoutingAndPlugins() {
$expected = '/admin/test_plugin/show_tickets/edit/6';
$this->assertEqual($result, $expected);

$result = Router::url(array(
'plugin' => 'test_plugin', 'controller' => 'show_tickets', 'action' => 'index', 'admin' => true
));
$expected = '/admin/test_plugin/show_tickets';
$this->assertEqual($result, $expected);

App::build(array('plugins' => $paths));
}

Expand Down

0 comments on commit 561e5fa

Please sign in to comment.