Open skrskr opened 6 months ago
I'm tring to test api using pest and i'm looking for alternative functions for assertOk(), assertJsonStructure
assertOk()
assertJsonStructure
$response->assertOk()->assertJsonStructure([ 'data' => [ 'event', ], 'message', ]);
I used expect()->extend()
expect()->extend('toBeOk', function () { return $this->toBe(Response::HTTP_OK); });
If there is any functions to handle this directly in pest ? I did some search on docs but couldn't find it.
Not directly in pest, but this pest plugin adds some nice expectations for working with Laravel and Pest.
I'm tring to test api using pest and i'm looking for alternative functions for
assertOk()
,assertJsonStructure
I used expect()->extend()
If there is any functions to handle this directly in pest ? I did some search on docs but couldn't find it.