Finish re-working tests to run on test database
This commit is contained in:
parent
09fc211623
commit
1abca77bdc
50 changed files with 535 additions and 265 deletions
|
@ -27,8 +27,8 @@ class PlacesTest extends TestCase
|
|||
*/
|
||||
public function singlePlacePageLoads(): void
|
||||
{
|
||||
$place = Place::where('slug', 'the-bridgewater-pub')->first();
|
||||
$response = $this->get('/places/the-bridgewater-pub');
|
||||
$place = Place::factory()->create();
|
||||
$response = $this->get($place->longurl);
|
||||
$response->assertViewHas('place', $place);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue