TenantAtlas/tests/Feature/ProviderConnections
ahmido dc46c4fa58 feat: complete provider truth cleanup (#207)
## Summary
- implement Spec 179 to make tenant lifecycle, provider consent, and provider verification the primary truth axes on the targeted Filament surfaces
- demote legacy tenant app status and legacy provider status and health to diagnostic-only roles, add centralized badge mappings for provider consent and verification, and keep provider connections excluded from global search
- add the full Spec 179 artifact set under `specs/179-provider-truth-cleanup/` plus focused Pest coverage for tenant truth cleanup, provider truth cleanup, RBAC, discovery safety, and badge semantics
- fix the numeric out-of-scope tenant route regression so inaccessible `/admin/tenants/{id}` paths return `404 Not Found` instead of `500`

## Testing
- `vendor/bin/sail artisan test --compact tests/Feature/Filament/TenantLifecycleStatusDomainSeparationTest.php`
- `vendor/bin/sail artisan test --compact tests/Feature/Filament/TenantTruthCleanupSpec179Test.php`
- `vendor/bin/sail artisan test --compact tests/Feature/Filament/ProviderConnectionsDbOnlyTest.php`
- `vendor/bin/sail artisan test --compact tests/Feature/ProviderConnections/ProviderConnectionTruthCleanupSpec179Test.php`
- `vendor/bin/sail artisan test --compact tests/Feature/ProviderConnections/RequiredFiltersTest.php`
- `vendor/bin/sail artisan test --compact tests/Feature/Tenants/TenantProviderConnectionsCtaTest.php`
- `vendor/bin/sail artisan test --compact tests/Feature/Rbac/TenantResourceAuthorizationTest.php`
- `vendor/bin/sail artisan test --compact tests/Feature/ProviderConnections/ProviderConnectionListAuthorizationTest.php`
- `vendor/bin/sail artisan test --compact tests/Feature/ProviderConnections/ProviderConnectionAuthorizationTest.php`
- `vendor/bin/sail artisan test --compact tests/Feature/Rbac/AdminGlobalSearchContextSafetyTest.php`
- `vendor/bin/sail artisan test --compact tests/Feature/Filament/TenantGlobalSearchLifecycleScopeTest.php`
- `vendor/bin/sail artisan test --compact tests/Feature/Filament/TenantScopingTest.php`
- `vendor/bin/sail artisan test --compact tests/Unit/Badges/TenantBadgesTest.php`
- `vendor/bin/sail artisan test --compact tests/Unit/Badges/ProviderConnectionBadgesTest.php`

## Manual validation
- integrated-browser smoke on `/admin/tenants`, tenant detail, `/admin/provider-connections`, provider detail, and provider edit
- verified out-of-scope tenant and provider URLs return `404 Not Found` with the current session

## Notes
- branch: `179-provider-truth-cleanup`
- commit: `e54c6632`
- target: `dev`

Co-authored-by: Ahmed Darrazi <ahmed.darrazi@live.de>
Reviewed-on: #207
2026-04-05 00:48:31 +00:00
..
AuthorizationSemanticsTest.php fix: consolidate tenant creation + harden selection flows (#131) 2026-02-22 19:54:24 +00:00
CapabilityForbiddenTest.php feat(spec-089): provider connections tenantless UI (#107) 2026-02-12 16:35:13 +00:00
CredentialLeakGuardTest.php feat: unify provider connection actions and notifications (#73) 2026-01-25 01:01:37 +00:00
DisabledActionsTooltipTest.php feat(spec-089): provider connections tenantless UI (#107) 2026-02-12 16:35:13 +00:00
LegacyRedirectTest.php fix: consolidate tenant creation + harden selection flows (#131) 2026-02-22 19:54:24 +00:00
ManageCapabilityEnforcementTest.php feat(spec-089): provider connections tenantless UI (#107) 2026-02-12 16:35:13 +00:00
MvpProviderScopeTest.php feat(spec-089): provider connections tenantless UI (#107) 2026-02-12 16:35:13 +00:00
NavigationPlacementTest.php feat(spec-089): provider connections tenantless UI (#107) 2026-02-12 16:35:13 +00:00
ProviderComplianceSnapshotJobTest.php feat: unify provider connection actions and notifications (#73) 2026-01-25 01:01:37 +00:00
ProviderConnectionAuthorizationSpec081Test.php feat: complete admin canonical tenant rollout (#165) 2026-03-13 08:09:20 +00:00
ProviderConnectionAuthorizationTest.php feat: complete provider truth cleanup (#207) 2026-04-05 00:48:31 +00:00
ProviderConnectionCutoverSpec081Test.php feat: standardize platform provider identity (#166) 2026-03-13 16:29:08 +00:00
ProviderConnectionDedicatedAuthorizationTest.php feat: standardize platform provider identity (#166) 2026-03-13 16:29:08 +00:00
ProviderConnectionDefaultInvariantSpec081Test.php Spec 081: Provider connection cutover (#98) 2026-02-08 11:28:51 +00:00
ProviderConnectionEnableDisableTest.php Spec 081: Provider connection cutover (#98) 2026-02-08 11:28:51 +00:00
ProviderConnectionHealthCheckJobTest.php feat: standardize platform provider identity (#166) 2026-03-13 16:29:08 +00:00
ProviderConnectionHealthCheckStartSurfaceTest.php feat: standardize platform provider identity (#166) 2026-03-13 16:29:08 +00:00
ProviderConnectionListAuthorizationTest.php Spec 094: Assignment ops observability hardening (#113) 2026-02-15 14:08:14 +00:00
ProviderConnectionMigrationClassificationTest.php feat: standardize platform provider identity (#166) 2026-03-13 16:29:08 +00:00
ProviderConnectionTruthCleanupSpec179Test.php feat: complete provider truth cleanup (#207) 2026-04-05 00:48:31 +00:00
ProviderConnectionViewsDbOnlyRenderingSpec081Test.php feat: standardize platform provider identity (#166) 2026-03-13 16:29:08 +00:00
ProviderCredentialSecurityTest.php feat: unify provider connection actions and notifications (#73) 2026-01-25 01:01:37 +00:00
ProviderGatewayRuntimeSmokeSpec081Test.php feat: add shared reason translation contract (#187) 2026-03-22 20:19:43 +00:00
ProviderOperationBlockedGuidanceSpec081Test.php feat: add shared reason translation contract (#187) 2026-03-22 20:19:43 +00:00
ProviderOperationConcurrencyTest.php feat: standardize platform provider identity (#166) 2026-03-13 16:29:08 +00:00
ProviderRbacCapabilitiesTest.php feat: unify provider connection actions and notifications (#73) 2026-01-25 01:01:37 +00:00
RecordAccessNotFoundTest.php feat(spec-089): provider connections tenantless UI (#107) 2026-02-12 16:35:13 +00:00
RequiredFiltersTest.php feat: complete provider truth cleanup (#207) 2026-04-05 00:48:31 +00:00
TenantFilterOverrideTest.php feat: standardize filter UX across key resources (#154) 2026-03-09 06:27:22 +00:00
TenantlessListRouteTest.php fix: consolidate tenant creation + harden selection flows (#131) 2026-02-22 19:54:24 +00:00
TenantlessListScopingTest.php feat(spec-089): provider connections tenantless UI (#107) 2026-02-12 16:35:13 +00:00