From 561e5fa5564aa45f7e1ed77a84830bfdea6392ec Mon Sep 17 00:00:00 2001 From: Mark Story Date: Sat, 10 Apr 2010 21:15:56 -0400 Subject: [PATCH] Adding an additional test for plugin + prefix routing. --- cake/tests/cases/libs/router.test.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cake/tests/cases/libs/router.test.php b/cake/tests/cases/libs/router.test.php index 6bdecd5df..c7549da5e 100644 --- a/cake/tests/cases/libs/router.test.php +++ b/cake/tests/cases/libs/router.test.php @@ -1149,6 +1149,12 @@ class RouterTest extends CakeTestCase { $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)); }