Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
public function testPartialJsonResponse()
{
    $response = $this->json('GET', '/api/users/1');

    $response
        ->assertStatus(200)
        ->assertJsonFragment([
            'name' => 'Anakin Skywalker',
        ]);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.