Skip to content

Commit e443a5e

Browse files
NaktibaldaDavertMik
authored andcommitted
[REST] Add response code assertions to json and xml parts (#5184)
1 parent a966d18 commit e443a5e

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/Codeception/Module/REST.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1163,6 +1163,9 @@ public function dontSeeResponseCodeIs($code)
11631163

11641164
/**
11651165
* Checks that the response code is 2xx
1166+
*
1167+
* @part json
1168+
* @part xml
11661169
*/
11671170
public function seeResponseCodeIsSuccessful()
11681171
{
@@ -1171,6 +1174,9 @@ public function seeResponseCodeIsSuccessful()
11711174

11721175
/**
11731176
* Checks that the response code 3xx
1177+
*
1178+
* @part json
1179+
* @part xml
11741180
*/
11751181
public function seeResponseCodeIsRedirection()
11761182
{
@@ -1179,6 +1185,9 @@ public function seeResponseCodeIsRedirection()
11791185

11801186
/**
11811187
* Checks that the response code is 4xx
1188+
*
1189+
* @part json
1190+
* @part xml
11821191
*/
11831192
public function seeResponseCodeIsClientError()
11841193
{
@@ -1187,6 +1196,9 @@ public function seeResponseCodeIsClientError()
11871196

11881197
/**
11891198
* Checks that the response code is 5xx
1199+
*
1200+
* @part json
1201+
* @part xml
11901202
*/
11911203
public function seeResponseCodeIsServerError()
11921204
{

0 commit comments

Comments
 (0)