Skip to content

Commit 08aaee5

Browse files
Formatting fixes (#649)
1 parent 6c670b4 commit 08aaee5

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

guides/10-APITesting.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff 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

143145
To enable steps with `AsJson` suffix enable `Codeception\Step\AsJson` step decorator in suite config:
144146

0 commit comments

Comments
 (0)