Skip to content

Commit 1a9ee5b

Browse files
committed
Tweak to featuretest calling
1 parent 0cc5b7d commit 1a9ee5b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

system/Test/FeatureTestCase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,12 +103,12 @@ public function call(string $method, string $path, array $params = null)
103103
$_SESSION = [];
104104

105105
$request = $this->setupRequest($method, $path, $params);
106-
107106
$request = $this->populateGlobals($method, $request, $params);
108107

109108
// Make sure any other classes that might call the request
110109
// instance get the right one.
111110
Services::injectMock('request', $request);
111+
$_SERVER['REQUEST_METHOD'] = $method;
112112

113113
$response = $this->app
114114
->setRequest($request)

0 commit comments

Comments
 (0)