public function testPartialJsonResponse()
{
$response = $this->json('GET', '/api/users/1');
$response
->assertStatus(200)
->assertJsonFragment([
'name' => 'Anakin Skywalker',
]);
}
Created
September 30, 2017 18:20
-
-
Save flyingluscas/865fa61bc0c79f23bd87cde74d07d076 to your computer and use it in GitHub Desktop.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment