mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
Adding an additional test for plugin + prefix routing.
This commit is contained in:
parent
955192a4ca
commit
561e5fa556
1 changed files with 6 additions and 0 deletions
|
@ -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));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue