Improve exception handling and model binding
This commit is contained in:
parent
e9ca934cb4
commit
0fca80e7e4
22 changed files with 148 additions and 82 deletions
|
@ -38,4 +38,11 @@ class ContactsTest extends TestCase
|
|||
$response = $this->get('/contacts/aaron');
|
||||
$response->assertViewHas('image', '/assets/profile-images/aaronparecki.com/image');
|
||||
}
|
||||
|
||||
/** @test */
|
||||
public function unknownContactGives404()
|
||||
{
|
||||
$response = $this->get('/contacts/unknown');
|
||||
$response->assertNotFound();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue