Skip to content

Commit 74540e9

Browse files
committed
Fix doc on seeResponseIsSuccessfulJsonType loops
It doesn't checks the first, but actually loops through all elements: https://github.com/Codeception/module-rest/blob/master/src/Codeception/Util/JsonType.php#L102
1 parent 49b0011 commit 74540e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Codeception/Module/REST.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1131,7 +1131,7 @@ public function dontSeeResponseContainsJson($json = [])
11311131
/**
11321132
* Checks that JSON matches provided types.
11331133
* In case you don't know the actual values of JSON data returned you can match them by type.
1134-
* It starts the check with a root element. If JSON data is array it will check the first element of an array.
1134+
* It starts the check with a root element. If JSON data is an array it will check all elements of it.
11351135
* You can specify the path in the json which should be checked with JsonPath
11361136
*
11371137
* Basic example:

0 commit comments

Comments
 (0)