Skip to content

Commit d93340e

Browse files
committed
test: update tests
1 parent 63677bb commit d93340e

File tree

4 files changed

+8
-6
lines changed

4 files changed

+8
-6
lines changed

tests/_support/Controllers/Newautorouting.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
class Newautorouting extends Controller
1717
{
18-
public function getIndex()
18+
public function getIndex(string $m = '')
1919
{
2020
return 'Hello';
2121
}

tests/system/Commands/RoutesTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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;

tests/system/Commands/Utilities/Routes/AutoRouterImproved/AutoRouteCollectorTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
'',

tests/system/Commands/Utilities/Routes/AutoRouterImproved/ControllerMethodReaderTest.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff 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',

0 commit comments

Comments
 (0)