TenantAtlas/tests/Unit/Badges
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
..
AuditBadgesTest.php feat: lay audit log foundation (#163) 2026-03-11 09:39:37 +00:00
BackupSetBadgesTest.php 059-unified-badges (#71) 2026-01-22 23:44:51 +00:00
BadgeCatalogTest.php feat: normalize operator outcome taxonomy (#186) 2026-03-22 12:13:34 +00:00
BooleanEnabledBadgesTest.php feat: tag badge catalog (060) (#72) 2026-01-23 23:05:55 +00:00
DiffRowStatusBadgeTest.php feat: add shared diff presentation foundation (#170) 2026-03-14 12:32:08 +00:00
FindingBadgesTest.php feat: harden finding governance health surfaces (#197) 2026-03-28 10:11:12 +00:00
GovernanceArtifactTruthTest.php feat: implement operator explanation layer (#191) 2026-03-24 11:24:33 +00:00
OperationRunBadgesTest.php feat: consolidate operation naming surfaces (#202) 2026-03-30 22:51:06 +00:00
OperatorOutcomeTaxonomyTest.php feat: implement operator explanation layer (#191) 2026-03-24 11:24:33 +00:00
PolicyBadgesTest.php feat: add Intune RBAC inventory and backup support (#155) 2026-03-09 10:40:51 +00:00
ProviderConnectionBadgesTest.php feat: complete provider truth cleanup (#207) 2026-04-05 00:48:31 +00:00
RestoreRunBadgesTest.php feat: normalize operator outcome taxonomy (#186) 2026-03-22 12:13:34 +00:00
RestoreUiBadgesTest.php feat: normalize operator outcome taxonomy (#186) 2026-03-22 12:13:34 +00:00
RunStatusBadgesTest.php feat: consolidate operation naming surfaces (#202) 2026-03-30 22:51:06 +00:00
TagBadgeCatalogTest.php feat: tag badge catalog (060) (#72) 2026-01-23 23:05:55 +00:00
TagBadgePaletteInvariantTest.php feat: tag badge catalog (060) (#72) 2026-01-23 23:05:55 +00:00
TenantBadgesTest.php feat: complete provider truth cleanup (#207) 2026-04-05 00:48:31 +00:00
VerificationBadgesTest.php feat: verification report framework (074) (#89) 2026-02-03 23:58:17 +00:00