Modify route options and do test

This commit is contained in:
2017-08-31 15:58:06 +07:00
parent 836a4d8995
commit 58264e39db
2 changed files with 3 additions and 3 deletions

View File

@@ -24,9 +24,9 @@ class RouterTest extends \PHPUnit\Framework\TestCase
['controller' => 'posts', 'action' => 'new']
],
[
'{controller}/{id:\d+}/{action}',
'{controller}/{action}/{id:\d+}',
[],
'posts/3/edit',
'posts/edit/3',
['controller' => 'posts', 'action' => 'edit', 'id' => '3']
],
[