Laravel - HTTP Tests - Assert Session Has All

Assert that the session contains a given array of key / value pairs:

    
    $response->assertSessionHasAll(array $data);
	

For example, if your application's session contains name and status keys, you may assert that both exist and have the specified values like so:

    
    $response->assertSessionHasAll([
        'name' => 'Taylor Otwell',
        'status' => 'active',
    ]);