withPersonalOrganization()->create(); $this->actingAs($user); // Act $response = $this->get('/dashboard'); // Assert $response->assertSuccessful(); } public function test_showing_dashboard_succeeds_for_user_with_employee_role(): void { // Arrange $organization = Organization::factory()->create(); $user = User::factory()->forCurrentOrganization($organization)->create(); $organization->users()->attach($user, ['role' => Role::Employee->value]); $this->actingAs($user); // Act $response = $this->get('/dashboard'); // Assert $response->assertSuccessful(); } }