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