Complete the code to assert the HTTP response status is 200.
response()->get('/home')->assert[1](200);
The assertStatus method checks the HTTP response status code.
Complete the code to assert the response contains the text 'Welcome'.
response()->get('/')->assert[1]('Welcome');
assertSee with assertDontSee.The assertSee method checks if the response contains the given text.
Complete the code to assert the response JSON has a key 'success'.
response()->get('/api/test')->assert[1](['success']);
The assertJsonStructure method checks if the JSON response has the given keys.
Fill both blanks to assert the response redirects to '/dashboard' and has a session key 'status'.
response()->post('/login')->assert[1]('/dashboard')->assert[2]('status');
assertRedirect checks the redirect URL, and assertSessionHas checks for the session key.
Fill all three blanks to assert the response has JSON with key 'user', the 'name' field equals 'Alice', and status 201.
response()->post('/api/users')->assert[1](['user'])->assertJsonPath('user.name', [2])->assert[3](201);
assertJsonFragment instead of assertJsonStructure for keys.assertJsonStructure checks the JSON keys, assertJsonPath checks the value at a path, and assertStatus checks the HTTP status code.