We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8a2c385 commit e8ffda6Copy full SHA for e8ffda6
tests/Api/ControllerTest.php
@@ -103,10 +103,11 @@ function test_exception_trace()
103
*/
104
function test_post_form()
105
{
106
+ $GLOBALS['_POST'] = ['foo' => 'bar', 'baz' => 'bat'];
107
+
108
$config = include __DIR__ . '/../../config/config.php';
109
$config['services']['request'] = ServerRequest::with([
- 'data' => new Value(['foo' => 'bar', 'baz' => 'bat']),
- 'header' => new HttpHeaders(['content-type' => 'application/json']),
110
+ 'header' => new HttpHeaders(['content-type' => 'application/x-www-form-urlencoded']),
111
'method' => new Value('POST'),
112
'uri' => new HttpUri(['path' => '/api'])
113
]);
0 commit comments