File tree Expand file tree Collapse file tree 4 files changed +8
-6
lines changed
Utilities/Routes/AutoRouterImproved Expand file tree Collapse file tree 4 files changed +8
-6
lines changed Original file line number Diff line number Diff line change 1515
1616class Newautorouting extends Controller
1717{
18- public function getIndex ()
18+ public function getIndex (string $ m = '' )
1919 {
2020 return 'Hello ' ;
2121 }
Original file line number Diff line number Diff line change @@ -129,7 +129,7 @@ public function testRoutesCommandAutoRouteImproved()
129129 | TRACE | testing | testing-index | \App\Controllers\TestController::index | | toolbar |
130130 | CONNECT | testing | testing-index | \App\Controllers\TestController::index | | toolbar |
131131 | CLI | testing | testing-index | \App\Controllers\TestController::index | | |
132- | GET(auto) | newautorouting | | \Tests\Support\Controllers\Newautorouting::getIndex | | toolbar |
132+ | GET(auto) | newautorouting[/..] | | \Tests\Support\Controllers\Newautorouting::getIndex | | toolbar |
133133 | POST(auto) | newautorouting/save/../..[/..] | | \Tests\Support\Controllers\Newautorouting::postSave | | toolbar |
134134 +------------+--------------------------------+---------------+-----------------------------------------------------+----------------+---------------+
135135 EOL;
Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ public function testGetFilterMatches()
6262 $ expected = [
6363 0 => [
6464 'GET(auto) ' ,
65- 'newautorouting ' ,
65+ 'newautorouting[/..] ' ,
6666 '' ,
6767 '\\Tests \\Support \\Controllers \\Newautorouting::getIndex ' ,
6868 '' ,
@@ -90,7 +90,7 @@ public function testGetFilterDoesNotMatch()
9090 $ expected = [
9191 0 => [
9292 'GET(auto) ' ,
93- 'newautorouting ' ,
93+ 'newautorouting[/..] ' ,
9494 '' ,
9595 '\\Tests \\Support \\Controllers \\Newautorouting::getIndex ' ,
9696 '' ,
Original file line number Diff line number Diff line change @@ -43,9 +43,11 @@ public function testRead()
4343 0 => [
4444 'method ' => 'get ' ,
4545 'route ' => 'newautorouting ' ,
46- 'route_params ' => '' ,
46+ 'route_params ' => '[/..] ' ,
4747 'handler ' => '\Tests\Support\Controllers\Newautorouting::getIndex ' ,
48- 'params ' => [],
48+ 'params ' => [
49+ 'm ' => false ,
50+ ],
4951 ],
5052 [
5153 'method ' => 'post ' ,
You can’t perform that action at this time.
0 commit comments