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