actingAs(User::factory()->create()) ->get(route('depreciations.index')) ->assertForbidden(); } public function testUserCanListDepreciations() { $this->actingAs(User::factory()->admin()->create()) ->get(route('depreciations.index')) ->assertOk(); } }