File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -128,7 +128,8 @@ To send a request with custom method use `send` action:
128128
129129` ` ` php
130130<?php
131- $response = $I->send('TRACE', '/posts');` ` `
131+ $response = $I->send('TRACE', '/posts');
132+ ` ` `
132133
133134> sendAsJson methods were introduced in module-rest 1.4.1
134135
@@ -138,7 +139,8 @@ In this case `Content-Type` header is sent with `application/json` value and res
138139` ` ` php$I->sendPostAsJson('/users', ['name' => 'old name']);
139140$users = $I->sendGetAsJson('/users');
140141$I->sendPutAsJson('/users/' . $users[0]['id'], ['name' => 'new name']);
141- $I->sendDeleteAsJson('/users/' . $users[1]['id']);` ` `
142+ $I->sendDeleteAsJson('/users/' . $users[1]['id']);
143+ ` ` `
142144
143145To enable steps with `AsJson` suffix enable `Codeception\Step\AsJson` step decorator in suite config :
144146
You can’t perform that action at this time.
0 commit comments