Skip to content
Permalink
Browse files

Updated REQUEST_METHOD to be POST

  • Loading branch information...
cjquinn committed Oct 7, 2016
1 parent fc1a439 commit 8793b83ccf50094b502e268c4849510b1a8c296c
Showing with 8 additions and 1 deletion.
  1. +8 −1 tests/TestCase/Routing/Middleware/RoutingMiddlewareTest.php
@@ -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 = [

0 comments on commit 8793b83

Please sign in to comment.
You can’t perform that action at this time.