Skip to content

Commit 48953df

Browse files
committed
test: remove unnecessary array keys
1 parent c2b490d commit 48953df

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

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

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -59,18 +59,18 @@ public function testGetFilterMatches()
5959

6060
$expected = [
6161
0 => [
62-
0 => 'GET(auto)',
63-
1 => 'newautorouting',
64-
2 => '\\Tests\\Support\\Controllers\\Newautorouting::getIndex',
65-
3 => '',
66-
4 => 'toolbar',
62+
'GET(auto)',
63+
'newautorouting',
64+
'\\Tests\\Support\\Controllers\\Newautorouting::getIndex',
65+
'',
66+
'toolbar',
6767
],
6868
1 => [
69-
0 => 'POST(auto)',
70-
1 => 'newautorouting/save/../..[/..]',
71-
2 => '\\Tests\\Support\\Controllers\\Newautorouting::postSave',
72-
3 => 'honeypot',
73-
4 => 'toolbar',
69+
'POST(auto)',
70+
'newautorouting/save/../..[/..]',
71+
'\\Tests\\Support\\Controllers\\Newautorouting::postSave',
72+
'honeypot',
73+
'toolbar',
7474
],
7575
];
7676
$this->assertSame($expected, $routes);
@@ -85,18 +85,18 @@ public function testGetFilterDoesNotMatch()
8585

8686
$expected = [
8787
0 => [
88-
0 => 'GET(auto)',
89-
1 => 'newautorouting',
90-
2 => '\\Tests\\Support\\Controllers\\Newautorouting::getIndex',
91-
3 => '',
92-
4 => 'toolbar',
88+
'GET(auto)',
89+
'newautorouting',
90+
'\\Tests\\Support\\Controllers\\Newautorouting::getIndex',
91+
'',
92+
'toolbar',
9393
],
9494
1 => [
95-
0 => 'POST(auto)',
96-
1 => 'newautorouting/save/../..[/..]',
97-
2 => '\\Tests\\Support\\Controllers\\Newautorouting::postSave',
98-
3 => '',
99-
4 => 'toolbar',
95+
'POST(auto)',
96+
'newautorouting/save/../..[/..]',
97+
'\\Tests\\Support\\Controllers\\Newautorouting::postSave',
98+
'',
99+
'toolbar',
100100
],
101101
];
102102
$this->assertSame($expected, $routes);

0 commit comments

Comments
 (0)