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.
2 parents 663b03f + b41aa0b commit 0aea212Copy full SHA for 0aea212
guides/10-APITesting.md
@@ -136,7 +136,8 @@ $response = $I->send('TRACE', '/posts');
136
If API endpoint accepts JSON you can use `send` methods with `AsJson` suffix to convert data automatically.
137
In this case `Content-Type` header is sent with `application/json` value and response if JSON is parsed:
138
139
-```php$I->sendPostAsJson('/users', ['name' => 'old name']);
+```php
140
+$I->sendPostAsJson('/users', ['name' => 'old name']);
141
$users = $I->sendGetAsJson('/users');
142
$I->sendPutAsJson('/users/' . $users[0]['id'], ['name' => 'new name']);
143
$I->sendDeleteAsJson('/users/' . $users[1]['id']);
0 commit comments