Adding an additional test for plugin + prefix routing.

This commit is contained in:
Mark Story 2010-04-10 21:15:56 -04:00
parent 955192a4ca
commit 561e5fa556

View file

@ -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));
}