Skip to content

Commit f3302a4

Browse files
committed
test: fix $routes->match() HTTP verbs
1 parent 8b85036 commit f3302a4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/system/Router/RouteCollectionTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ public function testAddWorksWithCurrentHTTPMethods(): void
148148

149149
$routes = $this->getCollector();
150150

151-
$routes->match(['get'], 'home', 'controller');
151+
$routes->match(['GET'], 'home', 'controller');
152152

153153
$expects = [
154154
'home' => '\controller',
@@ -180,7 +180,7 @@ public function testMatchIgnoresInvalidHTTPMethods(): void
180180

181181
$routes = $this->getCollector();
182182

183-
$routes->match(['put'], 'home', 'controller');
183+
$routes->match(['PUT'], 'home', 'controller');
184184

185185
$routes = $routes->getRoutes();
186186

@@ -816,12 +816,12 @@ public function testMatchSupportsMultipleMethods(): void
816816

817817
$expected = ['here' => '\there'];
818818

819-
$routes->match(['get', 'post'], 'here', 'there');
819+
$routes->match(['GET', 'POST'], 'here', 'there');
820820
$this->assertSame($expected, $routes->getRoutes());
821821

822822
Services::request()->setMethod('post');
823823
$routes = $this->getCollector();
824-
$routes->match(['get', 'post'], 'here', 'there');
824+
$routes->match(['GET', 'POST'], 'here', 'there');
825825
$this->assertSame($expected, $routes->getRoutes());
826826
}
827827

0 commit comments

Comments
 (0)