dimanche 2 septembre 2018

Print custom message if Laravel phpunit test fail

I'm working with Laravel and my code is like that

$this->actingAs($user)
    ->json('post', '/graphql/admin', ['query' => $query])
    ->assertStatus(200)
    ->assertJsonStructure($expected);

I would like to print the variable $query if this test fails.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire