administrativeApprover()->create(); User::factory() ->hasProfile(["employment_form" => EmploymentForm::EmploymentContract]) ->count(10) ->create(); $this->actingAs($administrativeApprover) ->get("/vacation/timesheet/january") ->assertOk(); } public function testEmployeeCannotDownloadTimesheet(): void { $user = User::factory()->create(); $this->actingAs($user) ->get("/vacation/timesheet/january") ->assertForbidden(); } }