actingAs(User::factory()->create()) ->get(route('locations.index')) ->assertForbidden(); } public function testUserCanListLocations() { $this->actingAs(User::factory()->superuser()->create()) ->get(route('locations.index')) ->assertOk(); } }