Laravel - HTTP Tests - Assert Json Fragment

Assert that the response contains the given JSON data anywhere in the response:

    
    Route::get('/users', function () {
        return [
            'users' => [
                [
                    'name' => 'Taylor Otwell',
                ],
            ],
        ];
    });
    
    $response->assertJsonFragment(['name' => 'Taylor Otwell']);