|
|
@ -62,7 +62,6 @@ class UrlRuleTest extends TestCase |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
protected function getTestsForParseRequest() |
|
|
|
protected function getTestsForParseRequest() |
|
|
|
{ |
|
|
|
{ |
|
|
|
// structure of each test |
|
|
|
// structure of each test |
|
|
@ -162,6 +161,13 @@ class UrlRuleTest extends TestCase |
|
|
|
['posts/1338', 'post/view', ['id' => 1338]], |
|
|
|
['posts/1338', 'post/view', ['id' => 1338]], |
|
|
|
], |
|
|
|
], |
|
|
|
], |
|
|
|
], |
|
|
|
|
|
|
|
[ |
|
|
|
|
|
|
|
'prefix with token', |
|
|
|
|
|
|
|
['controller' => 'post', 'prefix' => 'admin/<name>'], |
|
|
|
|
|
|
|
[ |
|
|
|
|
|
|
|
['admin/aaa/posts', 'post/index', ['name' => 'aaa']], |
|
|
|
|
|
|
|
], |
|
|
|
|
|
|
|
], |
|
|
|
]; |
|
|
|
]; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|