Improve exception handling and model binding
This commit is contained in:
parent
e9ca934cb4
commit
0fca80e7e4
22 changed files with 148 additions and 82 deletions
|
@ -29,4 +29,11 @@ class PlacesTest extends TestCase
|
|||
$response = $this->get('/places/the-bridgewater-pub');
|
||||
$response->assertViewHas('place', $place);
|
||||
}
|
||||
|
||||
/** @test */
|
||||
public function unknownPlaceGives404()
|
||||
{
|
||||
$response = $this->get('/places/unknown');
|
||||
$response->assertNotFound();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue