results in incorrect response body parsing, for example:
Array (size=1) '{"exampleResponseFromServer":"data processed successfully"}' => string '' (length=0)
(the entire raw response body is put in an array key and the array value is empty string)
When ->expectsJson() is called after ->body() the response JSON is parsed correctly.
results in incorrect response body parsing, for example:
Array (size=1) '{"exampleResponseFromServer":"data processed successfully"}' => string '' (length=0)
(the entire raw response body is put in an array key and the array value is empty string)When
->expectsJson()
is called after->body()
the response JSON is parsed correctly.