actingAs(User::factory()->create()) ->get(route('groups.index')) ->assertForbidden(); // $this->followRedirects($response)->assertSee('sad-panda.png'); } public function test_user_can_list_groups() { $this->actingAs(User::factory()->superuser()->create()) ->get(route('groups.index')) ->assertOk(); } }