TenantAtlas/apps/platform/tests/Feature/Auth
ahmido c7b38606a9 feat: implement spec 285 workspace-first environment access (#344)
Implements platform feature branch `285-workspace-rbac-environment-access`.

Summary:
- switch managed environment authorization to workspace-first role resolution with explicit environment-scope narrowing
- rewire Filament pages, resources, policies, and user tenant access helpers to the shared access-scope resolver
- add Spec 285 coverage across unit, feature, and browser tests plus full spec artifacts

Validation:
- `cd apps/platform && ./vendor/bin/sail artisan test --compact tests/Unit/Auth/WorkspaceFirstCapabilityResolverTest.php tests/Unit/Auth/ManagedEnvironmentAccessScopeResolverTest.php`
- `cd apps/platform && ./vendor/bin/sail artisan test --compact tests/Feature/Auth/WorkspaceFirstManagedEnvironmentAccessTest.php tests/Feature/Filament/ManagedEnvironmentAccessScopeManagementTest.php tests/Feature/Filament/WorkspaceMembershipRoleManagementTest.php tests/Feature/Rbac/GovernanceArtifactsWorkspaceFirstAuthorizationTest.php tests/Feature/Rbac/OperationRunWorkspaceFirstAuthorizationTest.php tests/Feature/Rbac/ProviderConnectionWorkspaceFirstPolicyTest.php`
- `cd apps/platform && ./vendor/bin/sail artisan test --compact tests/Feature/Verification/ProviderExecutionReauthorizationTest.php tests/Feature/ProviderConnections/ProviderConnectionHealthCheckStartSurfaceTest.php tests/Feature/Tenants/TenantProviderBackedActionStartTest.php`
- `cd apps/platform && ./vendor/bin/sail artisan test --compact tests/Feature/Audit/TenantMembershipAuditLogTest.php tests/Feature/Filament/TenantMembersTest.php tests/Feature/TenantRBAC/TenantMembershipCrudTest.php tests/Feature/TenantRBAC/TenantSwitcherScopeTest.php`
- `cd apps/platform && ./vendor/bin/sail artisan test --compact tests/Browser/Spec285WorkspaceRbacEnvironmentAccessSmokeTest.php`
- `cd apps/platform && ./vendor/bin/sail bin pint --dirty --format agent`

Target branch: `platform-dev`.

Follow-up integration path after merge:
- `platform-dev` -> `dev`.

Co-authored-by: Ahmed Darrazi <ahmed.darrazi@live.de>
Reviewed-on: #344
2026-05-09 12:40:50 +00:00
..
AdminLocalSmokeLoginTest.php feat: harden governance action semantics (#229) 2026-04-12 21:21:44 +00:00
AdminLoginIsEntraOnlyTest.php Spec 182: relocate Laravel platform to apps/platform (#213) 2026-04-08 08:40:47 +00:00
AdminPanelAuthTest.php Spec 182: relocate Laravel platform to apps/platform (#213) 2026-04-08 08:40:47 +00:00
BackupHealthBrowserFixtureLoginTest.php feat: cut over tenant core to managed environments (#335) 2026-05-07 06:38:14 +00:00
BreakGlassModeTest.php feat: cut over tenant core to managed environments (#335) 2026-05-07 06:38:14 +00:00
BreakGlassWorkspaceOwnerRecoveryTest.php feat: cut over tenant core to managed environments (#335) 2026-05-07 06:38:14 +00:00
CrossScopeAccessTest.php Spec 182: relocate Laravel platform to apps/platform (#213) 2026-04-08 08:40:47 +00:00
DbOnlyPagesDoNotMakeHttpRequestsTest.php Spec 182: relocate Laravel platform to apps/platform (#213) 2026-04-08 08:40:47 +00:00
DisabledUserLoginIsBlockedTest.php Spec 182: relocate Laravel platform to apps/platform (#213) 2026-04-08 08:40:47 +00:00
EntraCallbackRateLimiterTest.php Spec 182: relocate Laravel platform to apps/platform (#213) 2026-04-08 08:40:47 +00:00
EntraCallbackUpsertByTidOidTest.php Spec 182: relocate Laravel platform to apps/platform (#213) 2026-04-08 08:40:47 +00:00
NoAccessPageRendersTest.php Spec 182: relocate Laravel platform to apps/platform (#213) 2026-04-08 08:40:47 +00:00
OidcFailureRedirectsSafelyTest.php Spec 182: relocate Laravel platform to apps/platform (#213) 2026-04-08 08:40:47 +00:00
PostLoginRoutingByMembershipTest.php feat: cut over tenant core to managed environments (#335) 2026-05-07 06:38:14 +00:00
RemoveAcknowledgedCapabilityAliasTest.php feat: remove findings acknowledged compatibility and unify canonical operation types (#296) 2026-04-29 07:34:39 +00:00
SessionSeparationSmokeTest.php feat: cut over tenant core to managed environments (#335) 2026-05-07 06:38:14 +00:00
SystemPanelAuthTest.php feat: cut over tenant core to managed environments (#335) 2026-05-07 06:38:14 +00:00
TenantChooserSelectionTest.php feat: cut over tenant core to managed environments (#335) 2026-05-07 06:38:14 +00:00
WorkspaceFirstManagedEnvironmentAccessTest.php feat: implement spec 285 workspace-first environment access (#344) 2026-05-09 12:40:50 +00:00
WorkspaceLastOwnerGuardTest.php Spec 182: relocate Laravel platform to apps/platform (#213) 2026-04-08 08:40:47 +00:00