Skip to content

Commit

Permalink
Updated REQUEST_METHOD to be POST
Browse files Browse the repository at this point in the history
  • Loading branch information
cjquinn committed Oct 10, 2016
1 parent fc1a439 commit 8793b83
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tests/TestCase/Routing/Middleware/RoutingMiddlewareTest.php
Expand Up @@ -146,7 +146,14 @@ public function testFakedRequestMethodParsed()
'action' => 'index',
'_method' => 'PATCH'
]);
$request = ServerRequestFactory::fromGlobals(['REQUEST_URI' => '/articles-patch'], null, ['_method' => 'PATCH']);
$request = ServerRequestFactory::fromGlobals(
[
'REQUEST_METHOD' => 'POST',
'REQUEST_URI' => '/articles-patch'
],
null,
['_method' => 'PATCH']
);
$response = new Response();
$next = function ($req, $res) {
$expected = [
Expand Down

0 comments on commit 8793b83

Please sign in to comment.