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