Method | Description | |
---|---|---|
apiShouldReturn ( array | null $response = [], integer $times = 1, string $method = 'exec' ) | ||
apiShouldReturnData ( mixed $data, integer $times = 1 ) | ||
apiShouldReturnEmpty ( integer $times = 1 ) | ||
apiShouldReturnError ( integer $times = 1 ) | ||
apiShouldReturnPagination ( ) | ||
apiShouldReturnSuccess ( integer $times = 1 ) | ||
assertIsPaginatedResponse ( mixed $response, integer $count = 2 ) | ||
createApiResponse ( array $data = [] ) : array | Create a dummy response from Pinterest. | |
createErrorApiResponse ( string $error = 'error' ) : array | Create an error dummy response. | |
createPaginatedResponse ( ) : array | Create a dummy paginated response. | |
createSuccessApiResponse ( ) : array | Create a success dummy response. |
public apiShouldReturnData ( mixed $data, integer $times = 1 ) | ||
$data | mixed | |
$times | integer |
public apiShouldReturnEmpty ( integer $times = 1 ) | ||
$times | integer |
public apiShouldReturnError ( integer $times = 1 ) | ||
$times | integer |
public apiShouldReturnSuccess ( integer $times = 1 ) | ||
$times | integer |
public assertIsPaginatedResponse ( mixed $response, integer $count = 2 ) | ||
$response | mixed | |
$count | integer |
public createApiResponse ( array $data = [] ) : array | ||
$data | array | |
return | array |
public createErrorApiResponse ( string $error = 'error' ) : array | ||
$error | string | |
return | array |
public createPaginatedResponse ( ) : array | ||
return | array |
public createSuccessApiResponse ( ) : array | ||
return | array |