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.



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2LKjhBv
via IFTTT

Aucun commentaire:

Enregistrer un commentaire