Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Adding an additional test for plugin + prefix routing.

  • Loading branch information...
commit 561e5fa5564aa45f7e1ed77a84830bfdea6392ec 1 parent 955192a
@markstory markstory authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 cake/tests/cases/libs/router.test.php
View
6 cake/tests/cases/libs/router.test.php
@@ -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));
}
Please sign in to comment.
Something went wrong with that request. Please try again.