Method | Description | |
---|---|---|
seeJson ( array $data = null, boolean $negate = false ) | Assert that the response contains JSON. | |
seeJsonEquals ( array $data ) | Assert that the response contains an exact JSON array. | |
seeJsonStructure ( array $structure = null, array | null $responseData = null ) | Assert that the JSON response has a given structure. |
Method | Description | |
---|---|---|
decodeResponseJson ( ) : array | Validate and return the decoded response JSON. | |
getSuccessData ( string | array | null $attributes = null ) : array | Decodes JSON response and returns the data. | |
seeError ( string $error, integer $status = null ) | Assert that the response is a valid error response. | |
seeJsonSubset ( array $data ) | Assert that the response is a superset of the given JSON. | |
seeStatusCode ( integer $status ) | Asserts that the status code of the response matches the given code. | |
seeSuccess ( mixed $data = null, integer $status = 200 ) | Assert that the response is a valid success response. | |
seeSuccessData ( mixed $data = null ) | Assert that the response data contains given values. | |
seeSuccessEquals ( mixed $data = null, integer $status = 200 ) | Assert that the response is a valid success response. | |
seeSuccessResponse ( mixed $data = null, integer $status = 200 ) : Illuminate\Http\JsonResponse | Assert that the response is a valid success response. | |
seeSuccessStructure ( mixed $data = null ) | Assert that the response data contains the given structure. |
abstract protected decodeResponseJson ( ) : array | ||
return | array |
abstract public seeJsonEquals ( array $data ) | ||
$data | array |
abstract protected seeJsonSubset ( array $data ) | ||
$data | array |
abstract protected seeStatusCode ( integer $status ) | ||
$status | integer |
protected seeSuccess ( mixed $data = null, integer $status = 200 ) | ||
$data | mixed | |
$status | integer |
protected seeSuccessData ( mixed $data = null ) | ||
$data | mixed |
protected seeSuccessEquals ( mixed $data = null, integer $status = 200 ) | ||
$data | mixed | |
$status | integer |
protected seeSuccessResponse ( mixed $data = null, integer $status = 200 ) : Illuminate\Http\JsonResponse | ||
$data | mixed | |
$status | integer | |
return | Illuminate\Http\JsonResponse |
protected seeSuccessStructure ( mixed $data = null ) | ||
$data | mixed |