TenantAtlas/tests/Unit
ahmido 98e2b5acd9 feat: managed tenant onboarding draft identity and resume semantics (#167)
## Summary
- add canonical managed-tenant onboarding draft routing with explicit draft identity and landing vs concrete draft behavior
- implement draft lifecycle, authorization, attribution, picker UX, resume-stage resolution, and auditable cancel or completion semantics
- add focused feature, unit, and browser coverage plus Spec 138 artifacts for the onboarding draft resume flow

## Validation
- `vendor/bin/sail artisan test --compact tests/Feature/ManagedTenantOnboardingWizardTest.php tests/Feature/Audit/OnboardingDraftAuditTest.php tests/Feature/Onboarding/OnboardingDraftAccessTest.php tests/Feature/Onboarding/OnboardingDraftAuthorizationTest.php tests/Feature/Onboarding/OnboardingDraftLifecycleTest.php tests/Feature/Onboarding/OnboardingDraftMultiTabTest.php tests/Feature/Onboarding/OnboardingDraftPickerTest.php tests/Feature/Onboarding/OnboardingDraftRoutingTest.php tests/Feature/Onboarding/OnboardingRbacSemanticsTest.php tests/Feature/Onboarding/OnboardingVerificationClustersTest.php tests/Feature/Onboarding/OnboardingVerificationTest.php tests/Feature/Onboarding/OnboardingVerificationV1_5UxTest.php tests/Feature/Verification/VerificationReportViewerDbOnlyTest.php tests/Unit/Onboarding tests/Unit/VerificationReportSanitizerEvidenceKindsTest.php tests/Browser/OnboardingDraftRefreshTest.php tests/Browser/OnboardingDraftVerificationResumeTest.php`
- passed: 69 tests, 251 assertions

Co-authored-by: Ahmed Darrazi <ahmed.darrazi@live.de>
Reviewed-on: #167
2026-03-13 23:45:23 +00:00
..
Alerts feat(alerts): Monitoring cluster + v1 resources (spec 099) (#121) 2026-02-18 15:20:43 +00:00
Audit feat: lay audit log foundation (#163) 2026-03-11 09:39:37 +00:00
Auth Spec 094: Assignment ops observability hardening (#113) 2026-02-15 14:08:14 +00:00
BackupScheduling fix(tests): remove per-file TestCase uses (#45) 2026-01-08 00:41:46 +00:00
Badge feat: provider access hardening (RBAC write gate) (#132) 2026-02-23 00:49:37 +00:00
Badges feat: lay audit log foundation (#163) 2026-03-11 09:39:37 +00:00
Baselines feat: add structured baseline snapshot rendering (#158) 2026-03-10 08:28:06 +00:00
DirectoryGroups 051-entra-group-directory-cache (#57) 2026-01-11 23:24:12 +00:00
Filament feat(spec-089): provider connections tenantless UI (#107) 2026-02-12 16:35:13 +00:00
Findings feat(111): findings workflow + SLA settings (#135) 2026-02-25 01:48:01 +00:00
Hardening feat: provider access hardening (RBAC write gate) (#132) 2026-02-23 00:49:37 +00:00
Intune feat: complete admin canonical tenant rollout (#165) 2026-03-13 08:09:20 +00:00
Inventory feat: add Intune RBAC baseline compare support (#156) 2026-03-09 18:49:20 +00:00
Onboarding feat: managed tenant onboarding draft identity and resume semantics (#167) 2026-03-13 23:45:23 +00:00
Operations 056-remove-legacy-bulkops (#65) 2026-01-19 23:27:52 +00:00
OpsUx feat: complete admin canonical tenant rollout (#165) 2026-03-13 08:09:20 +00:00
Policies feat: standardize platform provider identity (#166) 2026-03-13 16:29:08 +00:00
Providers feat: standardize platform provider identity (#166) 2026-03-13 16:29:08 +00:00
Settings feat(111): findings workflow + SLA settings (#135) 2026-02-25 01:48:01 +00:00
SettingsFoundation Settings foundation: workspace controls (#119) 2026-02-16 01:11:24 +00:00
Support feat: standardize enterprise detail pages (#162) 2026-03-10 23:06:26 +00:00
AppProtectionPolicyNormalizerTest.php fix(tests): remove per-file TestCase uses (#45) 2026-01-08 00:41:46 +00:00
AssignmentBackupServiceTest.php feat: add resolved reference presentation layer (#161) 2026-03-10 18:52:52 +00:00
AssignmentFetcherTest.php feat: add resolved reference presentation layer (#161) 2026-03-10 18:52:52 +00:00
AssignmentFilterResolverTest.php feat(spec-088): remove tenant graphOptions legacy path (#105) 2026-02-12 10:14:44 +00:00
AssignmentRestoreServiceTest.php Spec 094: Assignment ops observability hardening (#113) 2026-02-15 14:08:14 +00:00
AuditContextSanitizerTest.php Spec 120: harden secret redaction integrity (#146) 2026-03-07 16:43:01 +00:00
BackupItemTest.php fix(tests): remove per-file TestCase uses (#45) 2026-01-08 00:41:46 +00:00
BulkActionPermissionTest.php fix(tests): remove per-file TestCase uses (#45) 2026-01-08 00:41:46 +00:00
BulkBackupSetDeleteJobTest.php 056-remove-legacy-bulkops (#65) 2026-01-19 23:27:52 +00:00
BulkBackupSetForceDeleteJobTest.php 056-remove-legacy-bulkops (#65) 2026-01-19 23:27:52 +00:00
BulkBackupSetRestoreJobTest.php 056-remove-legacy-bulkops (#65) 2026-01-19 23:27:52 +00:00
BulkOperationAbortMethodTest.php 056-remove-legacy-bulkops (#65) 2026-01-19 23:27:52 +00:00
BulkOperationRunProgressTest.php 056-remove-legacy-bulkops (#65) 2026-01-19 23:27:52 +00:00
BulkOperationRunStatusBucketTest.php 056-remove-legacy-bulkops (#65) 2026-01-19 23:27:52 +00:00
BulkPolicyDeleteJobTest.php 056-remove-legacy-bulkops (#65) 2026-01-19 23:27:52 +00:00
BulkPolicyExportJobTest.php 056-remove-legacy-bulkops (#65) 2026-01-19 23:27:52 +00:00
BulkPolicyVersionForceDeleteJobTest.php Spec 119: Drift cutover to Baseline Compare (golden master) (#144) 2026-03-06 14:30:49 +00:00
BulkPolicyVersionPruneJobTest.php Spec 119: Drift cutover to Baseline Compare (golden master) (#144) 2026-03-06 14:30:49 +00:00
BulkPolicyVersionRestoreJobTest.php 056-remove-legacy-bulkops (#65) 2026-01-19 23:27:52 +00:00
BulkRestoreRunDeleteJobTest.php 056-remove-legacy-bulkops (#65) 2026-01-19 23:27:52 +00:00
BulkRestoreRunRestoreJobTest.php 056-remove-legacy-bulkops (#65) 2026-01-19 23:27:52 +00:00
CircuitBreakerTest.php 056-remove-legacy-bulkops (#65) 2026-01-19 23:27:52 +00:00
CompliancePolicyNormalizerTest.php Spec 119: Drift cutover to Baseline Compare (golden master) (#144) 2026-03-06 14:30:49 +00:00
CoverageCapabilitiesResolverTest.php feat/047-inventory-foundations-nodes (#51) 2026-01-10 20:47:29 +00:00
DefaultPolicyNormalizerDiffTest.php fix(tests): remove per-file TestCase uses (#45) 2026-01-08 00:41:46 +00:00
DependencyExtractionServiceTest.php feat/042-inventory-dependencies-graph (#50) 2026-01-10 12:50:08 +00:00
DependencyTargetResolverTest.php feat/042-inventory-dependencies-graph (#50) 2026-01-10 12:50:08 +00:00
DeviceConfigurationPolicyNormalizerTest.php fix(tests): remove per-file TestCase uses (#45) 2026-01-08 00:41:46 +00:00
EntraAdminRolesReportServiceTest.php feat(112): LIST $expand parity + Entra principal names (#136) 2026-02-25 23:54:20 +00:00
ExampleTest.php Initial commit from Specify template 2025-12-10 22:27:21 +01:00
FoundationMappingServiceTest.php feat(spec-088): remove tenant graphOptions legacy path (#105) 2026-02-12 10:14:44 +00:00
FoundationSnapshotServiceTest.php feat: add Intune RBAC inventory and backup support (#155) 2026-03-09 10:40:51 +00:00
GraphClientEndpointResolutionTest.php fix(tests): remove per-file TestCase uses (#45) 2026-01-08 00:41:46 +00:00
GraphClientScopeTest.php fix(tests): remove per-file TestCase uses (#45) 2026-01-08 00:41:46 +00:00
GraphContractFallbackTest.php fix(tests): remove per-file TestCase uses (#45) 2026-01-08 00:41:46 +00:00
GraphContractRegistryActualDataTest.php fix(tests): remove per-file TestCase uses (#45) 2026-01-08 00:41:46 +00:00
GraphContractRegistryOnboardingProbesTest.php 073-unified-managed-tenant-onboarding-wizard (#90) 2026-02-04 23:30:55 +00:00
GraphContractRegistrySettingsApplySanitizerTest.php fix(tests): remove per-file TestCase uses (#45) 2026-01-08 00:41:46 +00:00
GraphContractRegistrySettingsWriteStrategyTest.php fix(tests): remove per-file TestCase uses (#45) 2026-01-08 00:41:46 +00:00
GraphContractRegistryTest.php feat: add Intune RBAC inventory and backup support (#155) 2026-03-09 10:40:51 +00:00
GroupResolverTest.php fix(tests): remove per-file TestCase uses (#45) 2026-01-08 00:41:46 +00:00
IntuneRoleAssignmentNormalizerTest.php feat: add Intune RBAC inventory and backup support (#155) 2026-03-09 10:40:51 +00:00
IntuneRoleDefinitionNormalizerTest.php feat: add Intune RBAC baseline compare support (#156) 2026-03-09 18:49:20 +00:00
InventoryLinkTest.php feat/042-inventory-dependencies-graph (#49) 2026-01-10 00:20:14 +00:00
ManagedDeviceAppConfigurationNormalizerTest.php fix(tests): remove per-file TestCase uses (#45) 2026-01-08 00:41:46 +00:00
MicrosoftGraphClientListPoliciesSelectTest.php feat(112): LIST $expand parity + Entra principal names (#136) 2026-02-25 23:54:20 +00:00
MicrosoftGraphClientRetryPolicyTest.php 056-remove-legacy-bulkops (#65) 2026-01-19 23:27:52 +00:00
MicrosoftGraphClientTest.php fix(tests): remove per-file TestCase uses (#45) 2026-01-08 00:41:46 +00:00
ODataTypeValidationTest.php feat/011-restore-run-wizard (#37) 2026-01-07 01:40:04 +00:00
PolicyCaptureOrchestratorTest.php Spec 119: Drift cutover to Baseline Compare (golden master) (#144) 2026-03-06 14:30:49 +00:00
PolicyNormalizerRoutingTest.php fix(tests): remove per-file TestCase uses (#45) 2026-01-08 00:41:46 +00:00
PolicyNormalizerSettingsCatalogFlattenTest.php fix(tests): remove per-file TestCase uses (#45) 2026-01-08 00:41:46 +00:00
PolicyNormalizerSettingsCatalogTest.php fix(tests): remove per-file TestCase uses (#45) 2026-01-08 00:41:46 +00:00
PolicyNormalizerTest.php fix(tests): remove per-file TestCase uses (#45) 2026-01-08 00:41:46 +00:00
PolicyPickerOptionLabelTest.php fix(tests): remove per-file TestCase uses (#45) 2026-01-08 00:41:46 +00:00
PolicySnapshotServiceTest.php feat: standardize platform provider identity (#166) 2026-03-13 16:29:08 +00:00
PolicyVersionEligibilityTest.php fix(tests): remove per-file TestCase uses (#45) 2026-01-08 00:41:46 +00:00
RbacOnboardingServiceTest.php feat: standardize platform provider identity (#166) 2026-03-13 16:29:08 +00:00
RequiredPermissionsLinksTest.php feat(spec-080): workspace-managed tenant administration migration (#97) 2026-02-07 19:45:13 +00:00
RestoreRunDeletableTest.php fix(tests): remove per-file TestCase uses (#45) 2026-01-08 00:41:46 +00:00
RestoreRunTest.php fix(tests): remove per-file TestCase uses (#45) 2026-01-08 00:41:46 +00:00
RunIdempotencyTest.php 056-remove-legacy-bulkops (#65) 2026-01-19 23:27:52 +00:00
ScopeTagResolverTest.php feat: standardize platform provider identity (#166) 2026-03-13 16:29:08 +00:00
ScriptsPolicyNormalizerTest.php fix(tests): remove per-file TestCase uses (#45) 2026-01-08 00:41:46 +00:00
SettingsCatalogPolicyNormalizerTest.php fix(tests): remove per-file TestCase uses (#45) 2026-01-08 00:41:46 +00:00
TenantCurrentTest.php feat: unified managed tenant onboarding wizard (#88) 2026-02-03 17:30:15 +00:00
TenantPermissionCheckClustersTest.php Spec 081: Provider connection cutover (#98) 2026-02-08 11:28:51 +00:00
TenantPermissionServiceTest.php Fix tenant permission inserts missing workspace_id (#118) 2026-02-16 00:58:34 +00:00
TenantRequiredPermissionsCopyPayloadTest.php Spec 076: Tenant Required Permissions (enterprise remediation UX) (#92) 2026-02-05 22:08:51 +00:00
TenantRequiredPermissionsFeatureImpactTest.php Spec 076: Tenant Required Permissions (enterprise remediation UX) (#92) 2026-02-05 22:08:51 +00:00
TenantRequiredPermissionsFilteringTest.php Spec 076: Tenant Required Permissions (enterprise remediation UX) (#92) 2026-02-05 22:08:51 +00:00
TenantRequiredPermissionsFreshnessTest.php Spec 083: Required permissions hardening (canonical /admin/tenants, DB-only, 404 semantics) (#101) 2026-02-08 23:13:25 +00:00
TenantRequiredPermissionsOverallStatusTest.php Spec 083: Required permissions hardening (canonical /admin/tenants, DB-only, 404 semantics) (#101) 2026-02-08 23:13:25 +00:00
TenantResourceConsentUrlTest.php feat: standardize platform provider identity (#166) 2026-03-13 16:29:08 +00:00
TenantScopeTest.php fix(tests): remove per-file TestCase uses (#45) 2026-01-08 00:41:46 +00:00
VerificationReportSanitizerEvidenceKindsTest.php feat: managed tenant onboarding draft identity and resume semantics (#167) 2026-03-13 23:45:23 +00:00
VerificationReportSanitizerNextStepsUrlTest.php fix(onboarding): preserve workspace scope and consent flow (#117) 2026-02-15 22:27:55 +00:00
VersionDiffTest.php feat: TenantPilot v1 - Complete implementation (Phases 1-12) 2025-12-12 02:27:54 +01:00
WindowsDriverUpdateProfileNormalizerTest.php fix(tests): remove per-file TestCase uses (#45) 2026-01-08 00:41:46 +00:00