Laravel - HTTP Tests - Assert Json Count

Assert that the response JSON has an array with the expected number of items at the given key:

    
    $response->assertJsonCount($count, $key = null);