app/Console/Commands/TenantpilotReconcileOperationRuns.php:16:        {--tenant=* : Limit reconciliation to managed_environment_id or tenant external_id}
app/Console/Commands/TenantpilotReconcileOperationRuns.php:47:            'tenant_ids' => $tenantIds,
app/Console/Commands/TestSettingsCatalogCache.php:58:            'managed_environment_id' => $policy->managed_environment_id,
routes/web.php:60:            return redirect()->route('admin.workspace.home', ['workspace' => $workspace]);
routes/web.php:63:        return redirect()->route('filament.admin.pages.choose-workspace');
routes/web.php:203:                $membershipQuery->where('managed_environment_id', (int) $tenant->getKey());
routes/web.php:287:        ? (data_get($fixture, 'blocked_drillthrough.tenant_external_id') ?? data_get($fixture, 'blocked_drillthrough.managed_environment_id'))
routes/web.php:306:        ? (data_get($fixture, 'blocked_drillthrough.managed_environment_id') ?? data_get($fixture, 'blocked_drillthrough.tenant_external_id'))
tests/Pest.php:244:function assertScopedSelectorRejected(mixed $component, string $action, array $data, array $errorKeys = ['managed_environment_id']): mixed
tests/Pest.php:841:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Pest.php:865:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Pest.php:973:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Pest.php:987:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Pest.php:989:            'entra_tenant_id' => (string) ($tenant->managed_environment_id ?? fake()->uuid()),
tests/Pest.php:994:        $entraTenantId = trim((string) $connection->entra_tenant_id);
tests/Pest.php:1028:            $updates['entra_tenant_id'] = (string) ($tenant->managed_environment_id ?? fake()->uuid());
tests/Pest.php:1121:                    'managed_environment_id' => (int) $tenant->getKey(),
tests/Pest.php:1150:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Pest.php:1163:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Pest.php:1178:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Pest.php:1185:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Pest.php:1202:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Pest.php:1213:            'managed_environment_id' => (int) $tenant->getKey(),
app/Console/Commands/PurgeLegacyBaselineGapRuns.php:54:            $query->whereIn('managed_environment_id', $tenantIds);
app/Console/Commands/PurgeLegacyBaselineGapRuns.php:74:                    'ManagedEnvironment' => $run->managed_environment_id !== null ? (string) $run->managed_environment_id : '—',
tests/Browser/Spec299WorkspaceOverviewCutoverSealSmokeTest.php:32:    visit(route('admin.workspace.home', ['workspace' => $workspace]))
app/Console/Commands/TenantpilotBackfillWorkspaceIds.php:261:                ->leftJoin('managed_environments', 'managed_environments.id', '=', sprintf('%s.managed_environment_id', $table))
app/Console/Commands/TenantpilotBackfillWorkspaceIds.php:271:                ->leftJoin('managed_environments', 'managed_environments.id', '=', sprintf('%s.managed_environment_id', $table))
app/Console/Commands/TenantpilotBackfillWorkspaceIds.php:305:                ->join('managed_environments', 'managed_environments.id', '=', sprintf('%s.managed_environment_id', $table))
tests/Feature/Console/TenantpilotPurgeNonPersistentDataTest.php:43:    $policyA = Policy::factory()->create(['managed_environment_id' => $tenantA->id]);
tests/Feature/Console/TenantpilotPurgeNonPersistentDataTest.php:44:    $policyB = Policy::factory()->create(['managed_environment_id' => $tenantB->id]);
tests/Feature/Console/TenantpilotPurgeNonPersistentDataTest.php:47:        'managed_environment_id' => $tenantA->id,
tests/Feature/Console/TenantpilotPurgeNonPersistentDataTest.php:53:        'managed_environment_id' => $tenantB->id,
tests/Feature/Console/TenantpilotPurgeNonPersistentDataTest.php:58:    $backupSetA = BackupSet::factory()->create(['managed_environment_id' => $tenantA->id]);
tests/Feature/Console/TenantpilotPurgeNonPersistentDataTest.php:60:        'managed_environment_id' => $tenantA->id,
tests/Feature/Console/TenantpilotPurgeNonPersistentDataTest.php:66:        'managed_environment_id' => $tenantA->id,
tests/Feature/Console/TenantpilotPurgeNonPersistentDataTest.php:71:        'managed_environment_id' => $tenantA->id,
tests/Feature/Console/TenantpilotPurgeNonPersistentDataTest.php:84:        'managed_environment_id' => $tenantA->id,
tests/Feature/Console/TenantpilotPurgeNonPersistentDataTest.php:90:        'managed_environment_id' => $tenantA->id,
tests/Feature/Console/TenantpilotPurgeNonPersistentDataTest.php:105:    expect(Policy::query()->where('managed_environment_id', $tenantA->id)->count())->toBeGreaterThan(0);
tests/Feature/Console/TenantpilotPurgeNonPersistentDataTest.php:106:    expect(BackupSet::withTrashed()->where('managed_environment_id', $tenantA->id)->count())->toBeGreaterThan(0);
tests/Feature/Console/TenantpilotPurgeNonPersistentDataTest.php:107:    expect(OperationRun::query()->where('managed_environment_id', $tenantA->id)->count())->toBeGreaterThan(0);
tests/Feature/Console/TenantpilotPurgeNonPersistentDataTest.php:115:    expect(Policy::query()->where('managed_environment_id', $tenantA->id)->count())->toBe(0);
tests/Feature/Console/TenantpilotPurgeNonPersistentDataTest.php:116:    expect(PolicyVersion::withTrashed()->where('managed_environment_id', $tenantA->id)->count())->toBe(0);
tests/Feature/Console/TenantpilotPurgeNonPersistentDataTest.php:117:    expect(BackupItem::withTrashed()->where('managed_environment_id', $tenantA->id)->count())->toBe(0);
tests/Feature/Console/TenantpilotPurgeNonPersistentDataTest.php:118:    expect(BackupSet::withTrashed()->where('managed_environment_id', $tenantA->id)->count())->toBe(0);
tests/Feature/Console/TenantpilotPurgeNonPersistentDataTest.php:119:    expect(RestoreRun::withTrashed()->where('managed_environment_id', $tenantA->id)->count())->toBe(0);
tests/Feature/Console/TenantpilotPurgeNonPersistentDataTest.php:120:    expect(AuditLog::query()->where('managed_environment_id', $tenantA->id)->count())->toBe(2);
tests/Feature/Console/TenantpilotPurgeNonPersistentDataTest.php:122:        ->where('managed_environment_id', $tenantA->id)
tests/Feature/Console/TenantpilotPurgeNonPersistentDataTest.php:129:    expect(OperationRun::query()->where('managed_environment_id', $tenantA->id)->count())->toBe(1);
tests/Feature/Console/TenantpilotPurgeNonPersistentDataTest.php:131:        ->where('managed_environment_id', $tenantA->id)
tests/Feature/Console/TenantpilotPurgeNonPersistentDataTest.php:136:        ->where('managed_environment_id', $tenantA->id)
tests/Feature/Console/TenantpilotPurgeNonPersistentDataTest.php:145:    expect(BackupSchedule::query()->where('managed_environment_id', $tenantA->id)->count())->toBe(0);
tests/Feature/Console/TenantpilotPurgeNonPersistentDataTest.php:147:    expect(Policy::query()->where('managed_environment_id', $tenantB->id)->count())->toBe(1);
tests/Feature/Console/TenantpilotPurgeNonPersistentDataTest.php:148:    expect(PolicyVersion::withTrashed()->where('managed_environment_id', $tenantB->id)->count())->toBe(1);
tests/Browser/Reviews/CustomerReviewWorkspaceSmokeTest.php:62:        'managed_environment_id' => (int) $tenantPublished->getKey(),
app/Console/Commands/OpsReconcileAdapterRuns.php:59:                'managed_environment_id' => $tenantId,
tests/Browser/Spec265DecisionRegisterSmokeTest.php:58:    return route('admin.local.smoke-login', array_filter([
tests/Browser/Spec265DecisionRegisterSmokeTest.php:85:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Browser/Spec265DecisionRegisterSmokeTest.php:96:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Browser/Spec265DecisionRegisterSmokeTest.php:103:    $decisionRegisterUrl = DecisionRegister::getUrl(panel: 'admin', parameters: [
tests/Browser/Spec265DecisionRegisterSmokeTest.php:104:        'managed_environment_id' => (string) $tenant->getKey(),
tests/Feature/BulkUnignorePoliciesTest.php:19:            'managed_environment_id' => $tenant->id,
tests/Feature/BulkUnignorePoliciesTest.php:26:        'managed_environment_id' => $tenant->id,
tests/Feature/Console/ReconcileBackupScheduleOperationRunsCommandTest.php:15:        'managed_environment_id' => $tenant->id,
tests/Browser/Spec276SupportAccessGovernanceSmokeTest.php:30:    $page = visit(ViewWorkspace::getUrl(panel: 'system', parameters: ['workspace' => $workspace]));
app/Console/Commands/TenantpilotPurgeNonPersistentData.php:29:                            {tenant? : ManagedEnvironment id / managed_environment_id / external_id (defaults to current tenant)}
app/Console/Commands/TenantpilotPurgeNonPersistentData.php:86:                    ->where('managed_environment_id', $tenant->id)
app/Console/Commands/TenantpilotPurgeNonPersistentData.php:90:                    ->where('managed_environment_id', $tenant->id)
app/Console/Commands/TenantpilotPurgeNonPersistentData.php:94:                    ->where('managed_environment_id', $tenant->id)
app/Console/Commands/TenantpilotPurgeNonPersistentData.php:98:                    ->where('managed_environment_id', $tenant->id)
app/Console/Commands/TenantpilotPurgeNonPersistentData.php:102:                    ->where('managed_environment_id', $tenant->id)
app/Console/Commands/TenantpilotPurgeNonPersistentData.php:106:                    ->where('managed_environment_id', $tenant->id)
app/Console/Commands/TenantpilotPurgeNonPersistentData.php:110:                    ->where('managed_environment_id', $tenant->id)
app/Console/Commands/TenantpilotPurgeNonPersistentData.php:149:            'backup_schedules' => BackupSchedule::query()->where('managed_environment_id', $tenant->id)->count(),
app/Console/Commands/TenantpilotPurgeNonPersistentData.php:150:            'operation_runs' => OperationRun::query()->where('managed_environment_id', $tenant->id)->count(),
app/Console/Commands/TenantpilotPurgeNonPersistentData.php:151:            'audit_logs_retained' => AuditLog::query()->where('managed_environment_id', $tenant->id)->count(),
app/Console/Commands/TenantpilotPurgeNonPersistentData.php:152:            'restore_runs' => RestoreRun::withTrashed()->where('managed_environment_id', $tenant->id)->count(),
app/Console/Commands/TenantpilotPurgeNonPersistentData.php:153:            'backup_items' => BackupItem::withTrashed()->where('managed_environment_id', $tenant->id)->count(),
app/Console/Commands/TenantpilotPurgeNonPersistentData.php:154:            'backup_sets' => BackupSet::withTrashed()->where('managed_environment_id', $tenant->id)->count(),
app/Console/Commands/TenantpilotPurgeNonPersistentData.php:155:            'policy_versions' => PolicyVersion::withTrashed()->where('managed_environment_id', $tenant->id)->count(),
app/Console/Commands/TenantpilotPurgeNonPersistentData.php:156:            'policies' => Policy::query()->where('managed_environment_id', $tenant->id)->count(),
app/Console/Commands/TenantpilotPurgeNonPersistentData.php:169:            'managed_environment_id' => (int) $tenant->id,
tests/Feature/Console/TenantpilotSeedBackupHealthBrowserFixtureCommandTest.php:30:    $tenantRouteKey = $scenarioConfig['managed_environment_id'] ?? $scenarioConfig['tenant_external_id'];
tests/Feature/Console/TenantpilotSeedBackupHealthBrowserFixtureCommandTest.php:39:    expect(BackupSet::query()->where('managed_environment_id', $tenant->getKey())->where('name', $scenarioConfig['backup_set_name'])->exists())->toBeTrue();
tests/Feature/Console/TenantpilotSeedBackupHealthBrowserFixtureCommandTest.php:40:    expect(BackupItem::query()->where('managed_environment_id', $tenant->getKey())->where('policy_identifier', $scenarioConfig['policy_external_id'])->exists())->toBeTrue();
tests/Feature/Console/TenantpilotSeedBackupHealthBrowserFixtureCommandTest.php:53:    $this->get(route('filament.admin.pages.choose-environment'))
tests/Feature/Console/TenantpilotSeedBackupHealthBrowserFixtureCommandTest.php:57:    $this->get(EnvironmentDashboard::getUrl(tenant: $tenant))
tests/Feature/Console/TenantpilotSeedBackupHealthBrowserFixtureCommandTest.php:71:    $this->get(BackupSetResource::getUrl('index', tenant: $tenant))
tests/Browser/Spec282GovernanceArtifactRetargetingSmokeTest.php:52:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Browser/Spec282GovernanceArtifactRetargetingSmokeTest.php:59:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Browser/Spec282GovernanceArtifactRetargetingSmokeTest.php:69:    visit(route('admin.workspace.managed-environments.index', ['workspace' => $workspace]))
tests/Browser/Spec282GovernanceArtifactRetargetingSmokeTest.php:76:    visit(FindingResource::getUrl('index', tenant: $tenant, panel: 'admin'))
tests/Browser/Spec282GovernanceArtifactRetargetingSmokeTest.php:83:    visit(ReviewPackResource::getUrl('index', tenant: $tenant, panel: 'admin'))
tests/Browser/Spec282GovernanceArtifactRetargetingSmokeTest.php:90:    visit(EvidenceSnapshotResource::getUrl('view', ['record' => $snapshot], tenant: $tenant, panel: 'admin'))
tests/Browser/Spec282GovernanceArtifactRetargetingSmokeTest.php:98:    visit(StoredReportResource::getUrl('index', tenant: $tenant, panel: 'admin'))
tests/Feature/RestoreRunIdempotencyTest.php:26:        'managed_environment_id' => 'tenant-idempotency',
tests/Feature/RestoreRunIdempotencyTest.php:34:        'managed_environment_id' => $tenant->id,
tests/Feature/RestoreRunIdempotencyTest.php:42:        'managed_environment_id' => $tenant->id,
tests/Feature/RestoreRunIdempotencyTest.php:49:        'managed_environment_id' => $tenant->id,
tests/Unit/BulkPolicyVersionForceDeleteJobTest.php:19:    $policy = Policy::factory()->create(['managed_environment_id' => $tenant->id]);
tests/Unit/BulkPolicyVersionForceDeleteJobTest.php:22:        'managed_environment_id' => $tenant->id,
tests/Unit/BulkPolicyVersionForceDeleteJobTest.php:30:        'managed_environment_id' => $tenant->id,
tests/Unit/BulkPolicyVersionForceDeleteJobTest.php:37:        'managed_environment_id' => $tenant->id,
tests/Unit/BulkPolicyVersionForceDeleteJobTest.php:85:        'managed_environment_id' => $tenant->id,
tests/Browser/Spec274BillingSubscriptionTruthSmokeTest.php:42:    $systemPage = visit(ViewWorkspace::getUrl(panel: 'system', parameters: ['workspace' => $workspace]));
tests/Browser/Spec274BillingSubscriptionTruthSmokeTest.php:135:    visit(WorkspaceSettings::getUrl(panel: 'admin'))
tests/Feature/Reviews/CustomerReviewWorkspaceLaunchLinksTest.php:51:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Reviews/CustomerReviewWorkspaceLaunchLinksTest.php:80:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Reviews/CustomerReviewWorkspaceLaunchLinksTest.php:90:        ->get(ReviewPackResource::getUrl('view', ['record' => $pack], tenant: $tenant, panel: 'admin'))
tests/Feature/Reviews/CustomerReviewWorkspaceLaunchLinksTest.php:110:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Reviews/CustomerReviewWorkspaceLaunchLinksTest.php:142:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Evidence/ExceptionValidityEvidenceIntegrationTest.php:22:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Evidence/ExceptionValidityEvidenceIntegrationTest.php:27:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Evidence/EvidenceSnapshotCanonicalControlReferenceTest.php:13:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Evidence/EvidenceSnapshotCanonicalControlReferenceTest.php:17:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Evidence/EvidenceSnapshotCanonicalControlReferenceTest.php:21:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Evidence/EvidenceSnapshotCanonicalControlReferenceTest.php:54:        'managed_environment_id' => (int) $tenant->getKey(),
app/Console/Commands/ClassifyProviderConnections.php:46:            ->selectRaw('managed_environment_id, count(*) as aggregate')
app/Console/Commands/ClassifyProviderConnections.php:47:            ->groupBy('managed_environment_id')
app/Console/Commands/ClassifyProviderConnections.php:48:            ->pluck('aggregate', 'managed_environment_id')
app/Console/Commands/ClassifyProviderConnections.php:130:            $query->where('managed_environment_id', (int) $tenant->getKey());
app/Console/Commands/ClassifyProviderConnections.php:213:                    'entra_tenant_id' => (string) $connection->entra_tenant_id,
tests/Browser/Spec300ManagedEnvironmentNamingConsolidationSmokeTest.php:29:        'managed_environment_id' => '30000000-0000-0000-0000-000000000300',
tests/Browser/Spec300ManagedEnvironmentNamingConsolidationSmokeTest.php:36:        'managed_environment_id' => (int) $environment->getKey(),
tests/Browser/Spec300ManagedEnvironmentNamingConsolidationSmokeTest.php:38:        'entra_tenant_id' => '30000000-0000-0000-0000-000000000300',
tests/Browser/Spec300ManagedEnvironmentNamingConsolidationSmokeTest.php:45:        'managed_environment_id' => (int) $environment->getKey(),
tests/Browser/Spec300ManagedEnvironmentNamingConsolidationSmokeTest.php:59:    $workspaceOverviewPath = (string) parse_url(route('admin.workspace.home', ['workspace' => $workspace]), PHP_URL_PATH);
tests/Browser/Spec300ManagedEnvironmentNamingConsolidationSmokeTest.php:61:    $environmentDashboardPath = (string) parse_url(EnvironmentDashboard::getUrl(tenant: $environment), PHP_URL_PATH);
tests/Browser/Spec300ManagedEnvironmentNamingConsolidationSmokeTest.php:64:        ProviderConnectionResource::getUrl('view', [
tests/Browser/Spec300ManagedEnvironmentNamingConsolidationSmokeTest.php:66:            'managed_environment_id' => $environment->external_id,
tests/Browser/Spec300ManagedEnvironmentNamingConsolidationSmokeTest.php:72:    visit(route('admin.workspace.home', ['workspace' => $workspace]))
tests/Browser/Spec300ManagedEnvironmentNamingConsolidationSmokeTest.php:107:        ->assertScript("window.location.search.includes('managed_environment_id={$environment->getKey()}')", true)
tests/Browser/Spec300ManagedEnvironmentNamingConsolidationSmokeTest.php:111:    visit(ProviderConnectionResource::getUrl('view', [
tests/Browser/Spec300ManagedEnvironmentNamingConsolidationSmokeTest.php:113:        'managed_environment_id' => $environment->external_id,
tests/Browser/Spec285WorkspaceRbacEnvironmentAccessSmokeTest.php:61:    $managedEnvironmentsPath = (string) parse_url(route('admin.workspace.managed-environments.index', ['workspace' => $workspace]), PHP_URL_PATH);
tests/Browser/Spec285WorkspaceRbacEnvironmentAccessSmokeTest.php:62:    $findingsIndexPath = (string) parse_url(FindingResource::getUrl('index', tenant: $allowedTenant, panel: 'admin'), PHP_URL_PATH);
tests/Browser/Spec285WorkspaceRbacEnvironmentAccessSmokeTest.php:64:    visit(route('admin.workspace.managed-environments.index', ['workspace' => $workspace]))
tests/Browser/Spec285WorkspaceRbacEnvironmentAccessSmokeTest.php:72:    visit(FindingResource::getUrl('index', tenant: $allowedTenant, panel: 'admin'))
app/Console/Commands/SeedBackupHealthBrowserFixture.php:47:        $tenantRouteKey = (string) ($scenarioConfig['managed_environment_id'] ?? $scenarioConfig['tenant_external_id'] ?? '18000000-0000-4000-8000-000000000180');
app/Console/Commands/SeedBackupHealthBrowserFixture.php:85:            ['managed_environment_id' => (int) $tenant->getKey(), 'user_id' => (int) $user->getKey()],
app/Console/Commands/SeedBackupHealthBrowserFixture.php:95:                ['user_id' => (int) $user->getKey(), 'managed_environment_id' => (int) $tenant->getKey()],
app/Console/Commands/SeedBackupHealthBrowserFixture.php:102:                'managed_environment_id' => (int) $tenant->getKey(),
app/Console/Commands/SeedBackupHealthBrowserFixture.php:115:            'managed_environment_id' => (int) $tenant->getKey(),
app/Console/Commands/SeedBackupHealthBrowserFixture.php:139:            'managed_environment_id' => (int) $tenant->getKey(),
app/Console/Commands/SeedBackupHealthBrowserFixture.php:178:                ['Fixture login URL', route('admin.local.backup-health-browser-fixture-login', absolute: false)],
app/Console/Commands/SeedBackupHealthBrowserFixture.php:179:                ['Blocked route', BackupSetResource::getUrl(panel: 'admin', tenant: $tenant)],
tests/Feature/Reviews/CustomerReviewWorkspacePageTest.php:50:        'managed_environment_id' => (int) $tenantA->getKey(),
tests/Feature/Reviews/CustomerReviewWorkspacePageTest.php:61:        'managed_environment_id' => (int) $tenantA->getKey(),
tests/Feature/Reviews/CustomerReviewWorkspacePageTest.php:234:    Livewire::withQueryParams(['managed_environment_id' => (string) $tenantWithoutPublished->getKey()])
tests/Feature/Reviews/CustomerReviewWorkspacePageTest.php:237:        ->assertSet('tableFilters.managed_environment_id.value', (string) $tenantWithoutPublished->getKey())
tests/Feature/Reviews/CustomerReviewWorkspacePageTest.php:274:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Reviews/CustomerReviewWorkspacePageTest.php:281:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Reviews/CustomerReviewWorkspacePageTest.php:391:        ->assertSet('tableFilters.managed_environment_id.value', null)
tests/Feature/Reviews/CustomerReviewWorkspacePageTest.php:393:        ->filterTable('managed_environment_id', (string) $tenantB->getKey())
tests/Feature/Reviews/CustomerReviewWorkspacePageTest.php:431:        ->assertSet('tableFilters.managed_environment_id.value', (string) $tenantA->getKey())
tests/Feature/Reviews/CustomerReviewWorkspacePageTest.php:432:        ->filterTable('managed_environment_id', (string) $tenantA->getKey())
tests/Browser/Spec198MonitoringPageStateSmokeTest.php:38:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Browser/Spec198MonitoringPageStateSmokeTest.php:49:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Browser/Spec198MonitoringPageStateSmokeTest.php:66:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Browser/Spec198MonitoringPageStateSmokeTest.php:80:            'managed_environment_id' => (int) $snapshotTenant->getKey(),
tests/Browser/Spec198MonitoringPageStateSmokeTest.php:97:    visit(route('admin.operations.index', [
tests/Browser/Spec198MonitoringPageStateSmokeTest.php:99:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Browser/Spec198MonitoringPageStateSmokeTest.php:108:    visit(route('admin.monitoring.audit-log', ['event' => (int) $audit->getKey()]))
tests/Browser/Spec198MonitoringPageStateSmokeTest.php:115:    visit(FindingExceptionsQueue::getUrl(panel: 'admin', parameters: ['exception' => (int) $exception->getKey()]))
tests/Browser/Spec198MonitoringPageStateSmokeTest.php:122:    visit(route('admin.evidence.overview', [
tests/Browser/Spec198MonitoringPageStateSmokeTest.php:123:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Browser/Spec198MonitoringPageStateSmokeTest.php:151:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Browser/Spec198MonitoringPageStateSmokeTest.php:166:    visit(BaselineCompareLanding::getUrl(
tests/Feature/Evidence/EvidenceSnapshotResourceTest.php:40:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Evidence/EvidenceSnapshotResourceTest.php:46:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Evidence/EvidenceSnapshotResourceTest.php:52:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Evidence/EvidenceSnapshotResourceTest.php:57:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Evidence/EvidenceSnapshotResourceTest.php:65:function evidenceSnapshotHeaderActions(Testable $component): array
tests/Feature/Evidence/EvidenceSnapshotResourceTest.php:69:    if ($instance->getCachedHeaderActions() === []) {
tests/Feature/Evidence/EvidenceSnapshotResourceTest.php:70:        $instance->cacheInteractsWithHeaderActions();
tests/Feature/Evidence/EvidenceSnapshotResourceTest.php:73:    return $instance->getCachedHeaderActions();
tests/Feature/Evidence/EvidenceSnapshotResourceTest.php:98:        ->get(EvidenceSnapshotResource::getUrl('index', tenant: $tenant, panel: 'admin'))
tests/Feature/Evidence/EvidenceSnapshotResourceTest.php:114:        ->get(EvidenceSnapshotResource::getUrl('index', tenant: $tenant, panel: 'admin'))
tests/Feature/Evidence/EvidenceSnapshotResourceTest.php:125:        ->get(EvidenceSnapshotResource::getUrl('index', tenant: $tenant, panel: 'admin'))
tests/Feature/Evidence/EvidenceSnapshotResourceTest.php:168:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Evidence/EvidenceSnapshotResourceTest.php:178:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Evidence/EvidenceSnapshotResourceTest.php:185:        ->get(EvidenceSnapshotResource::getUrl('view', ['record' => $snapshot], tenant: $tenant, panel: 'admin'))
tests/Feature/Evidence/EvidenceSnapshotResourceTest.php:222:    expect(collect(evidenceSnapshotHeaderActions($component))
tests/Feature/Evidence/EvidenceSnapshotResourceTest.php:237:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Evidence/EvidenceSnapshotResourceTest.php:248:        ->get(EvidenceSnapshotResource::getUrl('view', ['record' => $snapshot], tenant: $tenant, panel: 'admin'))
tests/Feature/Evidence/EvidenceSnapshotResourceTest.php:267:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Evidence/EvidenceSnapshotResourceTest.php:280:        ->get(EvidenceSnapshotResource::getUrl('view', ['record' => $snapshot], tenant: $tenant, panel: 'admin'))
tests/Feature/Evidence/EvidenceSnapshotResourceTest.php:306:        ->get(EvidenceSnapshotResource::getUrl('view', ['record' => $freshSnapshot], tenant: $freshTenant, panel: 'admin'))
tests/Feature/Evidence/EvidenceSnapshotResourceTest.php:312:        ->get(EvidenceSnapshotResource::getUrl('view', ['record' => $staleSnapshot], tenant: $staleTenant, panel: 'admin'))
tests/Feature/Evidence/EvidenceSnapshotResourceTest.php:323:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Evidence/EvidenceSnapshotResourceTest.php:338:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Evidence/EvidenceSnapshotResourceTest.php:366:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Evidence/EvidenceSnapshotResourceTest.php:384:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Evidence/EvidenceSnapshotResourceTest.php:415:        ->get(EvidenceSnapshotResource::getUrl('view', ['record' => $snapshot], tenant: $tenant, panel: 'admin'))
tests/Feature/Evidence/EvidenceSnapshotResourceTest.php:435:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Evidence/EvidenceSnapshotResourceTest.php:448:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Evidence/EvidenceSnapshotResourceTest.php:458:        ->get(EvidenceSnapshotResource::getUrl('view', ['record' => $snapshot], tenant: $tenant, panel: 'admin').'?'.http_build_query([
tests/Feature/Evidence/EvidenceSnapshotResourceTest.php:491:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Evidence/EvidenceSnapshotResourceTest.php:518:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Evidence/EvidenceSnapshotResourceTest.php:542:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Evidence/EvidenceSnapshotResourceTest.php:579:        ->and($table->getRecordUrl($snapshot))->toBe(EvidenceSnapshotResource::getUrl('view', ['record' => $snapshot]));
tests/Feature/Reviews/CustomerReviewWorkspaceAuthorizationTest.php:23:        ->get(CustomerReviewWorkspace::getUrl(panel: 'admin'))
tests/Feature/Reviews/CustomerReviewWorkspaceAuthorizationTest.php:39:        ->get(CustomerReviewWorkspace::getUrl(panel: 'admin'))
tests/Feature/Reviews/CustomerReviewWorkspaceAuthorizationTest.php:49:        ->get(CustomerReviewWorkspace::getUrl(panel: 'admin'))
tests/Feature/Reviews/CustomerReviewWorkspaceAuthorizationTest.php:76:        ->get(CustomerReviewWorkspace::getUrl(panel: 'admin').'?tenant='.(string) $tenantDenied->getKey())
tests/Feature/Reviews/CustomerReviewWorkspaceNavigationContextTest.php:42:        backLinkUrl: GovernanceInbox::getUrl(panel: 'admin', parameters: [
tests/Feature/Reviews/CustomerReviewWorkspaceNavigationContextTest.php:43:            'managed_environment_id' => (string) $tenant->getKey(),
tests/Feature/Reviews/CustomerReviewWorkspaceNavigationContextTest.php:53:        ->assertSet('tableFilters.managed_environment_id.value', (string) $tenant->getKey())
app/Console/Commands/TenantpilotDispatchDirectoryGroupsSync.php:13:    protected $signature = 'tenantpilot:directory-groups:dispatch {--tenant=* : Limit to managed_environment_id/external_id}';
tests/Browser/Spec192RecordPageHeaderDisciplineSmokeTest.php:87:            'entra_tenant_id' => (string) $onboardingTenant->managed_environment_id,
tests/Browser/Spec192RecordPageHeaderDisciplineSmokeTest.php:106:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Browser/Spec192RecordPageHeaderDisciplineSmokeTest.php:115:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Browser/Spec192RecordPageHeaderDisciplineSmokeTest.php:125:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Browser/Spec192RecordPageHeaderDisciplineSmokeTest.php:139:    visit(BaselineProfileResource::getUrl('view', ['record' => $profile], panel: 'admin'))
tests/Browser/Spec192RecordPageHeaderDisciplineSmokeTest.php:146:    visit(EvidenceSnapshotResource::getUrl('view', ['record' => $snapshot], tenant: $tenant, panel: 'admin'))
tests/Browser/Spec192RecordPageHeaderDisciplineSmokeTest.php:153:    visit(FindingExceptionResource::getUrl('view', ['record' => $exception], tenant: $tenant))
tests/Browser/Spec192RecordPageHeaderDisciplineSmokeTest.php:167:    visit(ManagedEnvironmentResource::getUrl('edit', ['record' => $onboardingTenant], panel: 'admin'))
tests/Browser/Spec192RecordPageHeaderDisciplineSmokeTest.php:186:    visit(ManagedEnvironmentResource::getUrl('view', ['record' => $tenant], panel: 'admin'))
tests/Browser/Spec192RecordPageHeaderDisciplineSmokeTest.php:214:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Browser/Spec192RecordPageHeaderDisciplineSmokeTest.php:219:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Browser/Spec192RecordPageHeaderDisciplineSmokeTest.php:236:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Browser/Spec192RecordPageHeaderDisciplineSmokeTest.php:252:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Browser/Spec192RecordPageHeaderDisciplineSmokeTest.php:269:    visit(ReviewPackResource::getUrl('view', ['record' => $pack], tenant: $tenant, panel: 'admin'))
tests/Browser/Spec192RecordPageHeaderDisciplineSmokeTest.php:274:    visit(AlertDestinationResource::getUrl('view', ['record' => $destination], panel: 'admin'))
tests/Browser/Spec192RecordPageHeaderDisciplineSmokeTest.php:279:    visit(PolicyVersionResource::getUrl('view', ['record' => $version], tenant: $tenant))
tests/Browser/Spec192RecordPageHeaderDisciplineSmokeTest.php:284:    visit(WorkspaceResource::getUrl('view', ['record' => $workspace], panel: 'admin'))
tests/Browser/Spec192RecordPageHeaderDisciplineSmokeTest.php:289:    visit(BaselineSnapshotResource::getUrl('view', ['record' => $baselineSnapshot], panel: 'admin'))
tests/Browser/Spec192RecordPageHeaderDisciplineSmokeTest.php:295:    visit(BackupSetResource::getUrl('view', ['record' => $backupSet], tenant: $tenant))
tests/Feature/Evidence/GenerateEvidenceSnapshotJobTest.php:24:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Evidence/GenerateEvidenceSnapshotJobTest.php:29:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Evidence/GenerateEvidenceSnapshotJobTest.php:34:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Evidence/GenerateEvidenceSnapshotJobTest.php:38:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Evidence/GenerateEvidenceSnapshotJobTest.php:166:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Unit/DependencyTargetResolverTest.php:19:        'managed_environment_id' => $tenant->getKey(),
tests/Unit/DependencyTargetResolverTest.php:24:        'managed_environment_id' => $tenant->getKey(),
tests/Unit/DependencyTargetResolverTest.php:33:        'managed_environment_id' => $otherTenant->getKey(),
tests/Unit/DependencyTargetResolverTest.php:40:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/Evidence/EvidenceSnapshotAuditLogTest.php:42:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Evidence/EvidenceSnapshotAuditLogTest.php:51:        ->get(EvidenceSnapshotResource::getUrl('view', ['record' => $snapshot], tenant: $tenant, panel: 'admin').'?'.http_build_query([
app/Console/Commands/TenantpilotDispatchBackupSchedules.php:10:    protected $signature = 'tenantpilot:schedules:dispatch {--tenant=* : Limit to managed_environment_id/external_id}';
tests/Feature/Reviews/CustomerReviewWorkspacePackAccessTest.php:53:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Reviews/CustomerReviewWorkspacePackAccessTest.php:97:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Reviews/CustomerReviewWorkspacePackAccessTest.php:166:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Reviews/CustomerReviewWorkspacePackAccessTest.php:212:                'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Reviews/CustomerReviewWorkspacePackAccessTest.php:255:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Browser/Spec194GovernanceFrictionSmokeTest.php:70:    return route('admin.local.smoke-login', array_filter([
tests/Browser/Spec194GovernanceFrictionSmokeTest.php:109:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Browser/Spec194GovernanceFrictionSmokeTest.php:128:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Browser/Spec194GovernanceFrictionSmokeTest.php:139:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Browser/Spec194GovernanceFrictionSmokeTest.php:182:    visit(FindingExceptionsQueue::getUrl(panel: 'admin').'?exception='.(int) $pendingException->getKey())
tests/Browser/Spec194GovernanceFrictionSmokeTest.php:190:    visit(FindingExceptionResource::getUrl('view', ['record' => $approvedException], tenant: $tenant))
tests/Browser/Spec194GovernanceFrictionSmokeTest.php:214:    visit(EvidenceSnapshotResource::getUrl('view', ['record' => $snapshot], tenant: $tenant))
tests/Browser/Spec194GovernanceFrictionSmokeTest.php:227:    visit(ManagedEnvironmentResource::getUrl('view', ['record' => $tenant], panel: 'admin'))
tests/Browser/Spec194GovernanceFrictionSmokeTest.php:234:    visit(ManagedEnvironmentResource::getUrl('edit', ['record' => $tenant], panel: 'admin'))
tests/Browser/Spec194GovernanceFrictionSmokeTest.php:243:        ManagedEnvironmentResource::getUrl('view', ['record' => $archivedTenant], panel: 'admin'),
tests/Browser/Spec194GovernanceFrictionSmokeTest.php:253:        ManagedEnvironmentResource::getUrl('edit', ['record' => $archivedTenant], panel: 'admin'),
tests/Feature/Evidence/EvidenceOverviewPageTest.php:33:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Evidence/EvidenceOverviewPageTest.php:49:        ->get(route('admin.evidence.overview'))
tests/Feature/Evidence/EvidenceOverviewPageTest.php:68:        ->get(route('admin.evidence.overview'))
tests/Feature/Evidence/EvidenceOverviewPageTest.php:82:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Evidence/EvidenceOverviewPageTest.php:95:        ->get(route('admin.evidence.overview', ['managed_environment_id' => (int) $tenantB->getKey()]))
tests/Feature/Evidence/EvidenceOverviewPageTest.php:97:        ->assertSee(EvidenceSnapshotResource::getUrl('view', ['record' => $snapshots[(int) $tenantB->getKey()]], tenant: $tenantB, panel: 'admin'), false)
tests/Feature/Evidence/EvidenceOverviewPageTest.php:98:        ->assertDontSee(EvidenceSnapshotResource::getUrl('view', ['record' => $snapshots[(int) $tenantA->getKey()]], tenant: $tenantA, panel: 'admin'), false);
tests/Feature/Evidence/EvidenceOverviewPageTest.php:118:        ->get(route('admin.evidence.overview'))
tests/Feature/Evidence/EvidenceOverviewPageTest.php:124:        ->assertSee(EvidenceSnapshotResource::getUrl('view', ['record' => $staleSnapshot], tenant: $staleTenant, panel: 'admin'), false)
tests/Feature/Evidence/EvidenceOverviewPageTest.php:125:        ->assertSee(EvidenceSnapshotResource::getUrl('view', ['record' => $freshSnapshot], tenant: $freshTenant, panel: 'admin'), false);
tests/Feature/Evidence/EvidenceOverviewPageTest.php:138:        'managed_environment_id' => (int) $tenantA->getKey(),
tests/Feature/Evidence/EvidenceOverviewPageTest.php:147:        'managed_environment_id' => (int) $tenantB->getKey(),
tests/Feature/Evidence/EvidenceOverviewPageTest.php:161:        'managed_environment_id' => (string) $tenantB->getKey(),
tests/Feature/Evidence/EvidenceOverviewPageTest.php:166:        ->assertSet('tableFilters.managed_environment_id.value', (string) $tenantB->getKey())
tests/Feature/Evidence/EvidenceOverviewPageTest.php:173:        ->assertRedirect(route('admin.evidence.overview'));
tests/Feature/Evidence/EvidenceOverviewPageTest.php:175:    $this->get(route('admin.evidence.overview'))
tests/Feature/Evidence/EvidenceOverviewPageTest.php:177:        ->assertSee(EvidenceSnapshotResource::getUrl('view', ['record' => $snapshotA], tenant: $tenantA, panel: 'admin'), false)
tests/Feature/Evidence/EvidenceOverviewPageTest.php:178:        ->assertSee(EvidenceSnapshotResource::getUrl('view', ['record' => $snapshotB], tenant: $tenantB, panel: 'admin'), false);
tests/Browser/Spec174EvidenceFreshnessPublicationTrustSmokeTest.php:87:    visit(EvidenceSnapshotResource::getUrl('view', ['record' => $staleSnapshot], tenant: $staleTenant, panel: 'admin'))
tests/Browser/Spec174EvidenceFreshnessPublicationTrustSmokeTest.php:99:    visit(ReviewPackResource::getUrl('index', tenant: $staleTenant))
tests/Browser/Spec174EvidenceFreshnessPublicationTrustSmokeTest.php:106:    visit(ReviewPackResource::getUrl('view', ['record' => $stalePack], tenant: $staleTenant, panel: 'admin'))
tests/Browser/Spec174EvidenceFreshnessPublicationTrustSmokeTest.php:179:    visit(route('admin.evidence.overview'))
tests/Unit/Onboarding/OnboardingDraftResolverTest.php:191:            'entra_tenant_id' => (string) $activeTenant->managed_environment_id,
tests/Feature/BulkPruneVersionsTest.php:15:    $policy = Policy::factory()->create(['managed_environment_id' => $tenant->id]);
tests/Feature/BulkPruneVersionsTest.php:18:        'managed_environment_id' => $tenant->id,
tests/Feature/BulkPruneVersionsTest.php:25:        'managed_environment_id' => $tenant->id,
resources/views/filament/partials/locale-switcher.blade.php:53:                <form method="POST" action="{{ route('localization.override.update') }}" class="space-y-2">
resources/views/filament/partials/locale-switcher.blade.php:74:                    <form method="POST" action="{{ route('localization.override.clear') }}">
resources/views/filament/partials/locale-switcher.blade.php:86:                    <form method="POST" action="{{ route('localization.preference.update') }}" class="space-y-2">
tests/Unit/Onboarding/OnboardingLifecycleServiceTest.php:21:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Unit/Onboarding/OnboardingLifecycleServiceTest.php:29:            'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Unit/Onboarding/OnboardingLifecycleServiceTest.php:53:            'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Unit/Onboarding/OnboardingLifecycleServiceTest.php:72:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Unit/Onboarding/OnboardingLifecycleServiceTest.php:80:            'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Unit/Onboarding/OnboardingLifecycleServiceTest.php:87:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Unit/Onboarding/OnboardingLifecycleServiceTest.php:115:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Unit/Onboarding/OnboardingLifecycleServiceTest.php:119:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Unit/Onboarding/OnboardingLifecycleServiceTest.php:129:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Unit/Onboarding/OnboardingLifecycleServiceTest.php:144:            'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Unit/Onboarding/OnboardingLifecycleServiceTest.php:168:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Unit/Onboarding/OnboardingLifecycleServiceTest.php:172:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Unit/Onboarding/OnboardingLifecycleServiceTest.php:182:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Unit/Onboarding/OnboardingLifecycleServiceTest.php:197:            'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Unit/Onboarding/OnboardingLifecycleServiceTest.php:221:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Unit/Onboarding/OnboardingLifecycleServiceTest.php:233:            'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Unit/Onboarding/OnboardingLifecycleServiceTest.php:256:            'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Browser/Spec202GovernanceSubjectTaxonomySmokeTest.php:20:    return route('admin.local.smoke-login', array_filter([
tests/Browser/Spec202GovernanceSubjectTaxonomySmokeTest.php:71:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Browser/Spec202GovernanceSubjectTaxonomySmokeTest.php:80:    visit(BaselineProfileResource::getUrl('create', panel: 'admin'))
tests/Browser/Spec202GovernanceSubjectTaxonomySmokeTest.php:87:    visit(BaselineProfileResource::getUrl('edit', ['record' => $legacyProfile], panel: 'admin'))
tests/Browser/Spec202GovernanceSubjectTaxonomySmokeTest.php:96:    visit(BaselineProfileResource::getUrl('view', ['record' => $captureProfile], panel: 'admin'))
tests/Browser/Spec202GovernanceSubjectTaxonomySmokeTest.php:107:    visit(BaselineProfileResource::getUrl('view', ['record' => $compareProfile], panel: 'admin'))
tests/Browser/Spec202GovernanceSubjectTaxonomySmokeTest.php:155:    visit(BaselineProfileResource::getUrl('view', ['record' => $invalidProfile], panel: 'admin'))
tests/Feature/EnvironmentReview/EnvironmentReviewUiContractTest.php:31:function environmentReviewContractHeaderActions(Testable $component): array
tests/Feature/EnvironmentReview/EnvironmentReviewUiContractTest.php:35:    if ($instance->getCachedHeaderActions() === []) {
tests/Feature/EnvironmentReview/EnvironmentReviewUiContractTest.php:36:        $instance->cacheInteractsWithHeaderActions();
tests/Feature/EnvironmentReview/EnvironmentReviewUiContractTest.php:39:    return $instance->getCachedHeaderActions();
tests/Feature/EnvironmentReview/EnvironmentReviewUiContractTest.php:156:    $topLevelActionNames = collect(environmentReviewContractHeaderActions($component))
tests/Feature/EnvironmentReview/EnvironmentReviewUiContractTest.php:162:    $groupLabels = collect(environmentReviewContractHeaderActions($component))
tests/Feature/EnvironmentReview/EnvironmentReviewUiContractTest.php:187:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/EnvironmentReview/EnvironmentReviewUiContractTest.php:226:    $topLevelActionNames = collect(environmentReviewContractHeaderActions($component))
tests/Feature/EnvironmentReview/EnvironmentReviewUiContractTest.php:241:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/BaselineDriftEngine/FindingFidelityTest.php:40:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/BaselineDriftEngine/FindingFidelityTest.php:84:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/BaselineDriftEngine/FindingFidelityTest.php:99:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/BaselineDriftEngine/FindingFidelityTest.php:109:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/BaselineDriftEngine/FindingFidelityTest.php:149:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/BaselineDriftEngine/FindingFidelityTest.php:178:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/BaselineDriftEngine/FindingFidelityTest.php:223:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/BaselineDriftEngine/FindingFidelityTest.php:238:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/BaselineDriftEngine/FindingFidelityTest.php:270:        ->where('managed_environment_id', (int) $tenant->getKey())
app/Console/Commands/ReclassifyEnrollmentConfigurations.php:46:            $query->where('managed_environment_id', $tenant->id);
app/Console/Commands/ReclassifyEnrollmentConfigurations.php:72:                'ESP detected: policy=%s managed_environment_id=%s external_id=%s',
app/Console/Commands/ReclassifyEnrollmentConfigurations.php:74:                (string) $policy->managed_environment_id,
app/Console/Commands/ReclassifyEnrollmentConfigurations.php:83:                ->where('managed_environment_id', $policy->managed_environment_id)
app/Console/Commands/ReclassifyEnrollmentConfigurations.php:133:        $tenantIdentifier = $tenant->managed_environment_id ?? $tenant->external_id;
tests/Feature/EnvironmentReview/EnvironmentReviewRegisterPrefilterTest.php:41:    Livewire::withHeaders(['referer' => ReviewRegister::getUrl(panel: 'admin')])
tests/Feature/EnvironmentReview/EnvironmentReviewRegisterPrefilterTest.php:44:        ->assertSet('tableFilters.managed_environment_id.value', null)
tests/Feature/EnvironmentReview/EnvironmentReviewRegisterPrefilterTest.php:78:    Livewire::withHeaders(['referer' => ReviewRegister::getUrl(panel: 'admin')])
tests/Feature/EnvironmentReview/EnvironmentReviewRegisterPrefilterTest.php:81:        ->assertSet('tableFilters.managed_environment_id.value', (string) $tenantA->getKey())
tests/Feature/EnvironmentReview/EnvironmentReviewRegisterPrefilterTest.php:108:    $component = Livewire::withHeaders(['referer' => ReviewRegister::getUrl(panel: 'admin')])
tests/Feature/EnvironmentReview/EnvironmentReviewRegisterPrefilterTest.php:111:    $tenantFilter = $component->instance()->getTable()->getFilters()['managed_environment_id'] ?? null;
tests/Unit/Onboarding/OnboardingDraftStageResolverTest.php:18:        'entra_tenant_id' => '',
tests/Unit/Onboarding/OnboardingDraftStageResolverTest.php:19:        'managed_environment_id' => null,
tests/Unit/Onboarding/OnboardingDraftStageResolverTest.php:30:            'entra_tenant_id' => '11111111-1111-1111-1111-111111111111',
tests/Unit/Onboarding/OnboardingDraftStageResolverTest.php:43:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Unit/Onboarding/OnboardingDraftStageResolverTest.php:51:            'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Unit/Onboarding/OnboardingDraftStageResolverTest.php:65:            'entra_tenant_id' => '22222222-2222-2222-2222-222222222222',
tests/Unit/Onboarding/OnboardingDraftStageResolverTest.php:79:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Unit/Onboarding/OnboardingDraftStageResolverTest.php:87:            'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Unit/Onboarding/OnboardingDraftStageResolverTest.php:95:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Unit/Onboarding/OnboardingDraftStageResolverTest.php:117:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Unit/Onboarding/OnboardingDraftStageResolverTest.php:125:            'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Unit/Onboarding/OnboardingDraftStageResolverTest.php:134:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Browser/Spec301InventoryNavigationCutoverSmokeTest.php:33:    $workspaceHomeUrl = route('admin.workspace.home', ['workspace' => (int) $tenant->workspace_id]);
tests/Browser/Spec301InventoryNavigationCutoverSmokeTest.php:35:    $inventoryItemsUrl = InventoryItemResource::getUrl('index', panel: 'admin', tenant: $tenant);
tests/Browser/Spec301InventoryNavigationCutoverSmokeTest.php:36:    $coverageUrl = InventoryCoverage::getUrl(panel: 'admin', tenant: $tenant);
app/Console/Commands/TenantpilotReconcileBackupScheduleOperationRuns.php:18:        {--tenant=* : Limit to managed_environment_id/external_id}
app/Console/Commands/TenantpilotReconcileBackupScheduleOperationRuns.php:49:            $query->whereIn('managed_environment_id', $tenantIds);
app/Console/Commands/TenantpilotReconcileBackupScheduleOperationRuns.php:81:                ->where('managed_environment_id', (int) $operationRun->managed_environment_id)
tests/Feature/Seed/PoliciesSeederExternalIdTest.php:20:    expect($tenant?->managed_environment_id)->toBe('seed-tenant-id');
tests/Browser/TenantMembershipsPageTest.php:24:    $viewPage = visit(ManagedEnvironmentResource::getUrl('view', ['record' => $tenant->getRouteKey()], panel: 'admin'));
tests/Browser/TenantMembershipsPageTest.php:32:    $membershipsPage = visit(ManagedEnvironmentResource::getUrl('memberships', ['record' => $tenant->getRouteKey()], panel: 'admin'));
resources/views/filament/partials/context-bar.blade.php:29:    $lastTenantId = $workspaceContext->lastTenantId(request());
resources/views/filament/partials/context-bar.blade.php:30:    $canClearEnvironmentContext = $currentTenant instanceof ManagedEnvironment || $lastTenantId !== null;
resources/views/filament/partials/context-bar.blade.php:38:        ? route('admin.workspace.managed-environments.index', ['workspace' => $workspace])
resources/views/filament/partials/context-bar.blade.php:39:        : route('admin.onboarding');
resources/views/filament/partials/context-bar.blade.php:41:        ? route('admin.home')
resources/views/filament/partials/context-bar.blade.php:42:        : ChooseWorkspace::getUrl(panel: 'admin');
resources/views/filament/partials/context-bar.blade.php:105:                            href="{{ ChooseWorkspace::getUrl(panel: 'admin').'?choose=1' }}"
resources/views/filament/partials/context-bar.blade.php:113:                        href="{{ route('admin.home') }}"
resources/views/filament/partials/context-bar.blade.php:138:                                        href="{{ ChooseEnvironment::getUrl(panel: 'admin') }}"
resources/views/filament/partials/context-bar.blade.php:146:                                    <form method="POST" action="{{ route('admin.clear-environment-context') }}">
resources/views/filament/partials/context-bar.blade.php:184:                                        <form method="POST" action="{{ route('admin.select-environment') }}">
resources/views/filament/partials/context-bar.blade.php:186:                                            <input type="hidden" name="managed_environment_id" value="{{ (int) $tenant->getKey() }}" />
resources/views/filament/partials/context-bar.blade.php:207:                                    <form method="POST" action="{{ route('admin.clear-environment-context') }}">
tests/Feature/BackupItemReaddTest.php:15:        'managed_environment_id' => 'tenant-123',
tests/Feature/BackupItemReaddTest.php:24:        'managed_environment_id' => $this->tenant->id,
tests/Feature/BackupItemReaddTest.php:32:        'managed_environment_id' => $this->tenant->id,
tests/Feature/BackupItemReaddTest.php:42:        'managed_environment_id' => $this->tenant->id,
tests/Feature/BackupItemReaddTest.php:74:        'managed_environment_id' => $this->tenant->id,
tests/Feature/BackupItemReaddTest.php:108:        'managed_environment_id' => $this->tenant->id,
tests/Feature/BackupItemReaddTest.php:123:        'managed_environment_id' => $this->tenant->id,
tests/Feature/BaselineDriftEngine/CaptureBaselineFullContentOnDemandTest.php:38:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/BaselineDriftEngine/CaptureBaselineFullContentOnDemandTest.php:46:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/BaselineDriftEngine/CaptureBaselineFullContentOnDemandTest.php:90:                'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/BaselineDriftEngine/CaptureBaselineFullContentOnDemandTest.php:127:            'source_environment_id' => (int) $tenant->getKey(),
tests/Feature/BaselineDriftEngine/CaptureBaselineFullContentOnDemandTest.php:145:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/EnvironmentReview/EnvironmentReviewAuditLogTest.php:31:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/EnvironmentReview/EnvironmentReviewAuditLogTest.php:50:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Browser/Spec281ProviderConnectionScopeSmokeTest.php:26:        'managed_environment_id' => '88888888-8888-8888-8888-888888888888',
tests/Browser/Spec281ProviderConnectionScopeSmokeTest.php:32:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Browser/Spec281ProviderConnectionScopeSmokeTest.php:35:        'entra_tenant_id' => '88888888-8888-8888-8888-888888888888',
tests/Browser/Spec281ProviderConnectionScopeSmokeTest.php:42:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Browser/Spec281ProviderConnectionScopeSmokeTest.php:43:        'entra_tenant_id' => '88888888-8888-8888-8888-888888888888',
tests/Browser/Spec281ProviderConnectionScopeSmokeTest.php:59:    $providerConnectionViewPath = (string) parse_url(ProviderConnectionResource::getUrl('view', [
tests/Browser/Spec281ProviderConnectionScopeSmokeTest.php:61:        'managed_environment_id' => $tenant->external_id,
tests/Browser/Spec281ProviderConnectionScopeSmokeTest.php:65:    visit(ProviderConnectionResource::getUrl('view', [
tests/Browser/Spec281ProviderConnectionScopeSmokeTest.php:67:        'managed_environment_id' => $tenant->external_id,
tests/Browser/Spec281ProviderConnectionScopeSmokeTest.php:78:    visit(route('admin.onboarding.draft', ['onboardingDraft' => (int) $draft->getKey()]))
tests/Feature/RestorePreviewDiffWizardTest.php:24:        'managed_environment_id' => 'tenant-1',
tests/Feature/RestorePreviewDiffWizardTest.php:34:        'managed_environment_id' => $tenant->id,
tests/Feature/RestorePreviewDiffWizardTest.php:42:        'managed_environment_id' => $tenant->id,
tests/Feature/RestorePreviewDiffWizardTest.php:60:        'managed_environment_id' => $tenant->id,
tests/Feature/RestorePreviewDiffWizardTest.php:67:        'managed_environment_id' => $tenant->id,
tests/Feature/BaselineDriftEngine/CaptureBaselineContentTest.php:29:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/BaselineDriftEngine/CaptureBaselineContentTest.php:37:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/BaselineDriftEngine/CaptureBaselineContentTest.php:60:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/BaselineDriftEngine/CaptureBaselineContentTest.php:81:            'source_environment_id' => (int) $tenant->getKey(),
tests/Feature/RestoreGroupMappingTest.php:25:        'managed_environment_id' => 'tenant-1',
tests/Feature/RestoreGroupMappingTest.php:33:        'managed_environment_id' => $tenant->id,
tests/Feature/RestoreGroupMappingTest.php:41:        'managed_environment_id' => $tenant->id,
tests/Feature/RestoreGroupMappingTest.php:48:        'managed_environment_id' => $tenant->id,
tests/Feature/RestoreGroupMappingTest.php:104:        'managed_environment_id' => 'tenant-1',
tests/Feature/RestoreGroupMappingTest.php:112:        'managed_environment_id' => $tenant->id,
tests/Feature/RestoreGroupMappingTest.php:120:        'managed_environment_id' => $tenant->id,
tests/Feature/RestoreGroupMappingTest.php:127:        'managed_environment_id' => $tenant->id,
tests/Feature/RestoreGroupMappingTest.php:195:        'managed_environment_id' => $tenant->id,
tests/Feature/RestoreGroupMappingTest.php:202:        'managed_environment_id' => 'tenant-1',
tests/Feature/BaselineDriftEngine/FindingProvenanceTest.php:40:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/BaselineDriftEngine/FindingProvenanceTest.php:84:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/BaselineDriftEngine/FindingProvenanceTest.php:99:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/BaselineDriftEngine/FindingProvenanceTest.php:131:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Browser/Dashboard/TenantDashboardProductizationSmokeTest.php:22:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Browser/Dashboard/TenantDashboardProductizationSmokeTest.php:30:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Browser/Dashboard/TenantDashboardProductizationSmokeTest.php:40:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Browser/Dashboard/TenantDashboardProductizationSmokeTest.php:47:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Browser/Dashboard/TenantDashboardProductizationSmokeTest.php:55:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Browser/Dashboard/TenantDashboardProductizationSmokeTest.php:67:    $page = visit(EnvironmentDashboard::getUrl(panel: 'admin', tenant: $tenant))
tests/Feature/EnvironmentReview/EnvironmentReviewCreationTest.php:30:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/BaselineDriftEngine/PerformanceGuardTest.php:13:            'managed_environment_id' => (int) $tenant->getKey(),
app/Services/EntraAdminRoles/EntraAdminRolesFindingGenerator.php:160:            ->where('managed_environment_id', $tenant->getKey())
app/Services/EntraAdminRoles/EntraAdminRolesFindingGenerator.php:200:            'managed_environment_id' => (int) $tenant->getKey(),
app/Services/EntraAdminRoles/EntraAdminRolesFindingGenerator.php:250:                ->where('managed_environment_id', $tenant->getKey())
app/Services/EntraAdminRoles/EntraAdminRolesFindingGenerator.php:289:                    'managed_environment_id' => (int) $tenant->getKey(),
app/Services/EntraAdminRoles/EntraAdminRolesFindingGenerator.php:312:                ->where('managed_environment_id', $tenant->getKey())
app/Services/EntraAdminRoles/EntraAdminRolesFindingGenerator.php:338:            ->where('managed_environment_id', $tenant->getKey())
app/Services/EntraAdminRoles/EntraAdminRolesFindingGenerator.php:416:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Browser/OpsUx/OperationActivityFeedbackSmokeTest.php:20:    return route('admin.local.smoke-login', array_filter([
tests/Browser/OpsUx/OperationActivityFeedbackSmokeTest.php:32:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Browser/OpsUx/OperationActivityFeedbackSmokeTest.php:46:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Browser/OpsUx/OperationActivityFeedbackSmokeTest.php:60:    $inventoryPage = visit(InventoryItemResource::getUrl('index', panel: 'admin', tenant: $tenant))
tests/Browser/OpsUx/OperationActivityFeedbackSmokeTest.php:186:    $page = visit(FindingResource::getUrl('index', panel: 'admin', tenant: $tenant))
tests/Browser/OpsUx/OperationActivityFeedbackSmokeTest.php:222:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Browser/OpsUx/OperationActivityFeedbackSmokeTest.php:231:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Browser/OpsUx/OperationActivityFeedbackSmokeTest.php:259:    visit(InventoryItemResource::getUrl('index', panel: 'admin', tenant: $tenant))
tests/Browser/OpsUx/OperationActivityFeedbackSmokeTest.php:277:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Browser/OpsUx/OperationActivityFeedbackSmokeTest.php:292:    $page = visit(InventoryItemResource::getUrl('index', panel: 'admin', tenant: $tenant))
tests/Browser/OpsUx/OperationActivityFeedbackSmokeTest.php:326:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/BulkTypeToConfirmTest.php:13:    $policies = Policy::factory()->count(20)->create(['managed_environment_id' => $tenant->id]);
tests/Feature/BulkTypeToConfirmTest.php:28:    $policies = Policy::factory()->count(20)->create(['managed_environment_id' => $tenant->id]);
tests/Feature/BulkTypeToConfirmTest.php:43:    $policies = Policy::factory()->count(10)->create(['managed_environment_id' => $tenant->id]);
tests/Feature/BaselineDriftEngine/CaptureBaselineMetaFallbackTest.php:30:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/BaselineDriftEngine/CaptureBaselineMetaFallbackTest.php:44:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/BaselineDriftEngine/CaptureBaselineMetaFallbackTest.php:71:            'source_environment_id' => (int) $tenant->getKey(),
tests/Feature/EnvironmentReview/EnvironmentReviewCycleTest.php:18:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Browser/Spec177InventoryCoverageTruthSmokeTest.php:20:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Browser/Spec177InventoryCoverageTruthSmokeTest.php:30:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Browser/Spec177InventoryCoverageTruthSmokeTest.php:57:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Browser/Spec177InventoryCoverageTruthSmokeTest.php:68:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Browser/Spec177InventoryCoverageTruthSmokeTest.php:79:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Browser/Spec177InventoryCoverageTruthSmokeTest.php:90:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Browser/Spec177InventoryCoverageTruthSmokeTest.php:101:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Browser/Spec177InventoryCoverageTruthSmokeTest.php:126:        $coverageUrl = InventoryCoverage::getUrl(panel: 'admin', tenant: $tenant);
tests/Browser/Spec177InventoryCoverageTruthSmokeTest.php:128:        $inventoryItemsUrl = InventoryItemResource::getUrl('index', panel: 'admin', tenant: $tenant);
tests/Browser/Spec177InventoryCoverageTruthSmokeTest.php:130:    $searchPage = visit(InventoryItemResource::getUrl('index', panel: 'admin', tenant: $tenant));
tests/Browser/Spec177InventoryCoverageTruthSmokeTest.php:198:    $page = visit(InventoryItemResource::getUrl('index', tenant: $tenant));
app/Services/EntraAdminRoles/EntraAdminRolesReportService.php:40:            ->where('managed_environment_id', $tenant->getKey())
app/Services/EntraAdminRoles/EntraAdminRolesReportService.php:56:            'managed_environment_id' => (int) $tenant->getKey(),
app/Services/EntraAdminRoles/EntraAdminRolesReportService.php:210:            tenantId: (int) $report->managed_environment_id,
tests/Feature/Artifacts/InventoryArtifactTypeTaxonomyTest.php:12:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Artifacts/InventoryArtifactTypeTaxonomyTest.php:31:            'tenant_id' => (int) $tenant->getKey(),
tests/Feature/Artifacts/InventoryArtifactTypeTaxonomyTest.php:32:            'managed_environment_id' => (int) $tenant->getKey(),
resources/views/filament/partials/workspace-switcher.blade.php:25:            <form method="POST" action="{{ route('admin.switch-workspace') }}" class="space-y-2">
tests/Feature/BaselineDriftEngine/CompareFidelityMismatchTest.php:42:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/BaselineDriftEngine/CompareFidelityMismatchTest.php:50:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/BaselineDriftEngine/CompareFidelityMismatchTest.php:95:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/BaselineDriftEngine/CompareFidelityMismatchTest.php:126:    expect(Finding::query()->where('managed_environment_id', (int) $tenant->getKey())->count())->toBe(0);
tests/Feature/BaselineDriftEngine/CompareFidelityMismatchTest.php:160:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/BaselineDriftEngine/CompareFidelityMismatchTest.php:204:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/BaselineDriftEngine/CompareFidelityMismatchTest.php:219:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/BaselineDriftEngine/CompareFidelityMismatchTest.php:246:    expect(Finding::query()->where('managed_environment_id', (int) $tenant->getKey())->count())->toBe(0);
tests/Feature/Artifacts/StoredReportSourceTaxonomyTest.php:15:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Artifacts/StoredReportSourceTaxonomyTest.php:23:        'tenant_id' => (int) $tenant->getKey(),
tests/Feature/Artifacts/StoredReportSourceTaxonomyTest.php:24:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Browser/Spec284ArtifactSourceTaxonomySmokeTest.php:24:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Browser/Spec284ArtifactSourceTaxonomySmokeTest.php:30:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Browser/Spec284ArtifactSourceTaxonomySmokeTest.php:36:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Browser/Spec284ArtifactSourceTaxonomySmokeTest.php:49:    visit(FindingResource::getUrl('view', ['record' => $finding], tenant: $tenant))
tests/Browser/Spec284ArtifactSourceTaxonomySmokeTest.php:56:    visit(InventoryItemResource::getUrl('view', ['record' => $inventory], tenant: $tenant))
tests/Browser/Spec284ArtifactSourceTaxonomySmokeTest.php:63:    visit(StoredReportResource::getUrl('view', ['record' => $report], tenant: $tenant))
tests/Browser/Spec284ArtifactSourceTaxonomySmokeTest.php:69:    visit(EvidenceSnapshotResource::getUrl('view', ['record' => $snapshot], tenant: $tenant))
tests/Browser/Spec284ArtifactSourceTaxonomySmokeTest.php:76:    visit(EnvironmentReviewResource::getUrl('view', ['record' => $review], tenant: $tenant))
tests/Feature/Artifacts/FindingArtifactSourceTaxonomyTest.php:13:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Artifacts/FindingArtifactSourceTaxonomyTest.php:30:        'tenant_id' => (int) $tenant->getKey(),
tests/Feature/Artifacts/FindingArtifactSourceTaxonomyTest.php:31:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Browser/Spec286EnvironmentCopyNeutralizationSmokeTest.php:51:        'managed_environment_id' => (int) $environment->getKey(),
tests/Browser/Spec286EnvironmentCopyNeutralizationSmokeTest.php:57:        'managed_environment_id' => (int) $environment->getKey(),
tests/Browser/Spec286EnvironmentCopyNeutralizationSmokeTest.php:62:        'managed_environment_id' => (int) $environment->getKey(),
tests/Browser/Spec286EnvironmentCopyNeutralizationSmokeTest.php:69:    $landing = visit(route('admin.workspace.managed-environments.index', ['workspace' => $workspace]))
tests/Browser/Spec286EnvironmentCopyNeutralizationSmokeTest.php:85:    visit(PolicyResource::getUrl('view', ['record' => $policy], tenant: $environment))
tests/Feature/BaselineDriftEngine/BaselineSnapshotNoTenantIdentifiersTest.php:30:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/BaselineDriftEngine/BaselineSnapshotNoTenantIdentifiersTest.php:44:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/BaselineDriftEngine/BaselineSnapshotNoTenantIdentifiersTest.php:65:            'source_environment_id' => (int) $tenant->getKey(),
tests/Feature/EnvironmentReview/EnvironmentReviewRegisterRbacTest.php:19:        ->get(ReviewRegister::getUrl(panel: 'admin'))
tests/Feature/EnvironmentReview/EnvironmentReviewRegisterRbacTest.php:35:        ->get(ReviewRegister::getUrl(panel: 'admin'))
tests/Feature/EnvironmentReview/EnvironmentReviewRegisterRbacTest.php:46:        ->get(ReviewRegister::getUrl(panel: 'admin'))
tests/Feature/Artifacts/EvidenceSnapshotSourceTaxonomyTest.php:16:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Artifacts/EvidenceSnapshotSourceTaxonomyTest.php:29:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Artifacts/EvidenceSnapshotSourceTaxonomyTest.php:39:        'tenant_id' => (int) $tenant->getKey(),
tests/Feature/Artifacts/EvidenceSnapshotSourceTaxonomyTest.php:40:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Artifacts/EvidenceSnapshotSourceTaxonomyTest.php:54:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Artifacts/EvidenceSnapshotSourceTaxonomyTest.php:65:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Browser/Spec277StoredReportsSurfaceSmokeTest.php:32:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Browser/Spec277StoredReportsSurfaceSmokeTest.php:44:    visit(StoredReportResource::getUrl('index', tenant: $tenant, panel: 'admin'))
tests/Feature/BulkSyncPoliciesTest.php:28:            'managed_environment_id' => $tenant->id,
tests/Feature/DependencyTenantIsolationTest.php:15:        'managed_environment_id' => $tenantA->getKey(),
tests/Feature/DependencyTenantIsolationTest.php:21:        'managed_environment_id' => $tenantA->getKey(),
tests/Feature/DependencyTenantIsolationTest.php:31:        'managed_environment_id' => $tenantB->getKey(),
tests/Feature/BaselineDriftEngine/ComplianceNoncomplianceActionsDriftTest.php:82:    expect(Finding::query()->where('managed_environment_id', (int) $tenant->getKey())->count())->toBe(0);
tests/Feature/BaselineDriftEngine/ComplianceNoncomplianceActionsDriftTest.php:142:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/BaselineDriftEngine/ComplianceNoncomplianceActionsDriftTest.php:178:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/BaselineDriftEngine/ComplianceNoncomplianceActionsDriftTest.php:189:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/BaselineDriftEngine/ComplianceNoncomplianceActionsDriftTest.php:222:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/BaselineDriftEngine/ComplianceNoncomplianceActionsDriftTest.php:237:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Browser/PortfolioCompare/CrossEnvironmentPromotionExecutionSmokeTest.php:29:    $page = visit(CrossEnvironmentComparePage::getUrl(parameters: [
tests/Browser/PortfolioCompare/CrossEnvironmentPromotionExecutionSmokeTest.php:30:        'source_environment_id' => (int) $fixture['sourceEnvironment']->getKey(),
tests/Browser/PortfolioCompare/CrossEnvironmentPromotionExecutionSmokeTest.php:31:        'target_environment_id' => (int) $fixture['targetEnvironment']->getKey(),
tests/Feature/Rbac/BackupItemsRelationManagerUiEnforcementTest.php:27:            'managed_environment_id' => $tenant->id,
tests/Feature/Rbac/BackupItemsRelationManagerUiEnforcementTest.php:53:            'managed_environment_id' => $tenant->id,
tests/Feature/Rbac/BackupItemsRelationManagerUiEnforcementTest.php:81:            'managed_environment_id' => $tenant->id,
tests/Feature/Rbac/BackupItemsRelationManagerUiEnforcementTest.php:113:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Rbac/BackupItemsRelationManagerUiEnforcementTest.php:121:            'managed_environment_id' => (int) $foreignTenant->getKey(),
tests/Feature/BaselineDriftEngine/ResolverTest.php:14:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/BaselineDriftEngine/ResolverTest.php:21:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/BaselineDriftEngine/ResolverTest.php:34:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/BaselineDriftEngine/ResolverTest.php:83:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/BaselineDriftEngine/ResolverTest.php:90:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/BaselineDriftEngine/ResolverTest.php:103:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/BaselineDriftEngine/BaselineCaptureAuditEventsTest.php:27:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/BaselineDriftEngine/BaselineCaptureAuditEventsTest.php:43:            'source_environment_id' => (int) $tenant->getKey(),
tests/Feature/BaselineDriftEngine/BaselineCaptureAuditEventsTest.php:57:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/BaselineDriftEngine/BaselineCaptureAuditEventsTest.php:63:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/BaselineDriftEngine/CompareContentEvidenceTest.php:42:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/BaselineDriftEngine/CompareContentEvidenceTest.php:86:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/BaselineDriftEngine/CompareContentEvidenceTest.php:101:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/BaselineDriftEngine/CompareContentEvidenceTest.php:133:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/BaselineDriftEngine/CompareContentEvidenceTest.php:166:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/BaselineDriftEngine/CompareContentEvidenceTest.php:210:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/BaselineDriftEngine/CompareContentEvidenceTest.php:225:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/BaselineDriftEngine/CompareContentEvidenceTest.php:252:    expect(Finding::query()->where('managed_environment_id', (int) $tenant->getKey())->count())->toBe(0);
tests/Feature/ReclassifyEnrollmentConfigurationsCommandTest.php:16:        'managed_environment_id' => 'tenant-reclassify',
tests/Feature/ReclassifyEnrollmentConfigurationsCommandTest.php:25:        'managed_environment_id' => $tenant->id,
tests/Feature/ReclassifyEnrollmentConfigurationsCommandTest.php:33:        'managed_environment_id' => $tenant->id,
tests/Feature/ReclassifyEnrollmentConfigurationsCommandTest.php:47:    $this->artisan('intune:reclassify-enrollment-configurations', ['--tenant' => $tenant->managed_environment_id])
tests/Feature/ReclassifyEnrollmentConfigurationsCommandTest.php:56:    $this->artisan('intune:reclassify-enrollment-configurations', ['--tenant' => $tenant->managed_environment_id, '--write' => true])
tests/Feature/ReclassifyEnrollmentConfigurationsCommandTest.php:69:        'managed_environment_id' => 'tenant-reclassify-no-versions',
tests/Feature/ReclassifyEnrollmentConfigurationsCommandTest.php:78:        'managed_environment_id' => $tenant->id,
tests/Feature/ReclassifyEnrollmentConfigurationsCommandTest.php:96:    $this->artisan('intune:reclassify-enrollment-configurations', ['--tenant' => $tenant->managed_environment_id])
tests/Feature/ReclassifyEnrollmentConfigurationsCommandTest.php:102:    $this->artisan('intune:reclassify-enrollment-configurations', ['--tenant' => $tenant->managed_environment_id, '--write' => true])
tests/Feature/ReclassifyEnrollmentConfigurationsCommandTest.php:112:        'managed_environment_id' => 'tenant-reclassify-duplicate',
tests/Feature/ReclassifyEnrollmentConfigurationsCommandTest.php:121:        'managed_environment_id' => $tenant->id,
tests/Feature/ReclassifyEnrollmentConfigurationsCommandTest.php:129:        'managed_environment_id' => $tenant->id,
tests/Feature/ReclassifyEnrollmentConfigurationsCommandTest.php:137:        'managed_environment_id' => $tenant->id,
tests/Feature/ReclassifyEnrollmentConfigurationsCommandTest.php:151:    $this->artisan('intune:reclassify-enrollment-configurations', ['--tenant' => $tenant->managed_environment_id, '--write' => true])
tests/Browser/Spec280WorkspaceTenancyEnvironmentRoutingSmokeTest.php:60:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Browser/Spec280WorkspaceTenancyEnvironmentRoutingSmokeTest.php:66:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Browser/Spec280WorkspaceTenancyEnvironmentRoutingSmokeTest.php:81:    $environmentChooser = visit(route('admin.workspace.managed-environments.index', ['workspace' => $workspace]))
tests/Browser/Spec280WorkspaceTenancyEnvironmentRoutingSmokeTest.php:102:        ->assertScript("window.location.search.includes('managed_environment_id={$tenant->getKey()}')", true)
tests/Feature/BulkPruneSkipReasonsTest.php:16:    $policyA = Policy::factory()->create(['managed_environment_id' => $tenant->id]);
tests/Feature/BulkPruneSkipReasonsTest.php:18:        'managed_environment_id' => $tenant->id,
tests/Feature/BulkPruneSkipReasonsTest.php:24:    $policyB = Policy::factory()->create(['managed_environment_id' => $tenant->id]);
tests/Feature/BulkPruneSkipReasonsTest.php:26:        'managed_environment_id' => $tenant->id,
tests/Feature/BulkPruneSkipReasonsTest.php:32:        'managed_environment_id' => $tenant->id,
tests/Feature/BulkPruneSkipReasonsTest.php:46:        ->where('managed_environment_id', $tenant->id)
tests/Feature/EnvironmentReview/EnvironmentReviewRegisterTest.php:41:    Livewire::withHeaders(['referer' => ReviewRegister::getUrl(panel: 'admin')])
tests/Feature/EnvironmentReview/EnvironmentReviewRegisterTest.php:49:        ->filterTable('managed_environment_id', (string) $tenantB->getKey())
tests/Feature/EnvironmentReview/EnvironmentReviewRegisterTest.php:62:    Livewire::withHeaders(['referer' => ReviewRegister::getUrl(panel: 'admin')])
tests/Feature/EnvironmentReview/EnvironmentReviewRegisterTest.php:92:    $component = Livewire::withHeaders(['referer' => ReviewRegister::getUrl(panel: 'admin')])
tests/Feature/EnvironmentReview/EnvironmentReviewRegisterTest.php:95:        ->assertSet('tableFilters.managed_environment_id.value', (string) $tenantA->getKey())
tests/Feature/EnvironmentReview/EnvironmentReviewRegisterTest.php:100:    expect(app(WorkspaceContext::class)->lastTenantId())->toBe((int) $tenantA->getKey());
tests/Feature/EnvironmentReview/EnvironmentReviewRegisterTest.php:107:    expect(app(WorkspaceContext::class)->lastTenantId())->toBe((int) $tenantA->getKey());
tests/Feature/EnvironmentReview/EnvironmentReviewRegisterTest.php:164:    Livewire::withHeaders(['referer' => ReviewRegister::getUrl(panel: 'admin')])
tests/Feature/Rbac/ResolvedReferenceAuthorizationTest.php:39:    $response = $this->get(FindingResource::getUrl('view', ['record' => $finding], tenant: $tenant));
app/Services/Onboarding/OnboardingLifecycleService.php:116:        $tenantId = (int) ($draft->managed_environment_id ?? 0);
app/Services/Onboarding/OnboardingLifecycleService.php:350:        if ($draft->managed_environment_id !== null) {
app/Services/Onboarding/OnboardingLifecycleService.php:351:            $query->where('managed_environment_id', (int) $draft->managed_environment_id);
app/Services/Onboarding/OnboardingLifecycleService.php:476:            ->where('managed_environment_id', (int) $tenant->getKey())
app/Services/Onboarding/OnboardingLifecycleService.php:492:        if ($draft->managed_environment_id !== null) {
app/Services/Onboarding/OnboardingLifecycleService.php:497:        $entraTenantId = $state['entra_tenant_id'] ?? $draft->entra_tenant_id;
app/Services/Onboarding/OnboardingLifecycleService.php:508:        if ($providerConnectionId === null || $draft->managed_environment_id === null) {
app/Services/Onboarding/OnboardingLifecycleService.php:515:            ->where('managed_environment_id', (int) $draft->managed_environment_id)
tests/Feature/BackupScheduling/BackupScheduleLifecycleTest.php:21:        'managed_environment_id' => $tenant->id,
tests/Feature/BackupScheduling/BackupScheduleLifecycleTest.php:50:        'managed_environment_id' => $tenant->id,
tests/Feature/BackupScheduling/BackupScheduleLifecycleTest.php:89:        'managed_environment_id' => $tenant->id,
tests/Feature/BackupScheduling/BackupScheduleLifecycleTest.php:122:        'managed_environment_id' => $tenant->id,
tests/Feature/BackupScheduling/BackupScheduleLifecycleTest.php:143:        'managed_environment_id' => $tenant->id,
tests/Feature/BackupScheduling/BackupScheduleLifecycleTest.php:166:        'managed_environment_id' => $tenant->id,
tests/Feature/BackupScheduling/BackupScheduleLifecycleTest.php:239:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/BackupScheduling/BackupScheduleLifecycleTest.php:252:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/BackupScheduling/BackupScheduleLifecycleTest.php:275:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/BackupScheduling/BackupScheduleLifecycleTest.php:302:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/BackupScheduling/BackupScheduleLifecycleTest.php:315:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/BackupScheduling/BackupScheduleLifecycleTest.php:338:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/BackupScheduling/BackupScheduleLifecycleTest.php:360:    $this->get(BackupScheduleResource::getUrl('index', [
app/Services/Onboarding/OnboardingDraftMutationService.php:42:                $draft->entra_tenant_id = $entraTenantId;
app/Services/Onboarding/OnboardingDraftMutationService.php:49:            $draft->entra_tenant_id = $entraTenantId;
app/Services/Onboarding/OnboardingDraftMutationService.php:135:            if ($lockedPreferredDraft instanceof ManagedEnvironmentOnboardingSession && $lockedPreferredDraft->entra_tenant_id === $entraTenantId) {
app/Services/Onboarding/OnboardingDraftMutationService.php:149:            ->where('entra_tenant_id', $entraTenantId)
tests/Browser/OnboardingDraftVerificationResumeTest.php:22:        'managed_environment_id' => '30303030-3030-3030-3030-303030303030',
tests/Browser/OnboardingDraftVerificationResumeTest.php:38:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Browser/OnboardingDraftVerificationResumeTest.php:40:        'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Browser/OnboardingDraftVerificationResumeTest.php:48:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Browser/OnboardingDraftVerificationResumeTest.php:50:        'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Browser/OnboardingDraftVerificationResumeTest.php:58:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Browser/OnboardingDraftVerificationResumeTest.php:65:                'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Browser/OnboardingDraftVerificationResumeTest.php:77:            'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Browser/OnboardingDraftVerificationResumeTest.php:89:    $page = visit(route('admin.onboarding.draft', ['onboardingDraft' => (int) $draft->getKey()]));
tests/Browser/OnboardingDraftVerificationResumeTest.php:112:        'managed_environment_id' => '40404040-4040-4040-4040-404040404040',
tests/Browser/OnboardingDraftVerificationResumeTest.php:128:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Browser/OnboardingDraftVerificationResumeTest.php:130:        'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Browser/OnboardingDraftVerificationResumeTest.php:138:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Browser/OnboardingDraftVerificationResumeTest.php:145:                'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Browser/OnboardingDraftVerificationResumeTest.php:176:            'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Browser/OnboardingDraftVerificationResumeTest.php:192:    $page = visit(route('admin.onboarding.draft', ['onboardingDraft' => (int) $draft->getKey()]));
tests/Browser/OnboardingDraftVerificationResumeTest.php:243:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Browser/OnboardingDraftVerificationResumeTest.php:254:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Browser/OnboardingDraftVerificationResumeTest.php:256:        'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Browser/OnboardingDraftVerificationResumeTest.php:264:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Browser/OnboardingDraftVerificationResumeTest.php:271:                'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Browser/OnboardingDraftVerificationResumeTest.php:297:            'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Browser/OnboardingDraftVerificationResumeTest.php:309:    $page = visit(route('admin.onboarding.draft', ['onboardingDraft' => (int) $draft->getKey()]));
tests/Browser/OnboardingDraftVerificationResumeTest.php:362:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Browser/OnboardingDraftVerificationResumeTest.php:373:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Browser/OnboardingDraftVerificationResumeTest.php:375:        'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Browser/OnboardingDraftVerificationResumeTest.php:383:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Browser/OnboardingDraftVerificationResumeTest.php:390:                'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Browser/OnboardingDraftVerificationResumeTest.php:410:                            'url' => route('filament.admin.resources.provider-connections.edit', ['tenant' => $tenant->external_id, 'record' => (int) $connection->getKey()]),
tests/Browser/OnboardingDraftVerificationResumeTest.php:425:            'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Browser/OnboardingDraftVerificationResumeTest.php:437:    $page = visit(route('admin.onboarding.draft', ['onboardingDraft' => (int) $draft->getKey()]));
tests/Feature/Rbac/ManagedEnvironmentAccessBoundaryTest.php:38:        'managed_environment_id' => (int) $allowedTenant->getKey(),
tests/Feature/Rbac/ManagedEnvironmentAccessBoundaryTest.php:48:        'managed_environment_id' => (int) $deniedTenant->getKey(),
tests/Feature/Rbac/ManagedEnvironmentAccessBoundaryTest.php:57:        'managed_environment_id' => (int) $deniedTenant->getKey(),
tests/Feature/Rbac/ManagedEnvironmentAccessBoundaryTest.php:63:        ->get(EnvironmentReviewResource::getUrl('view', ['record' => $review], panel: 'admin', tenant: $allowedTenant))
tests/Feature/Rbac/ManagedEnvironmentAccessBoundaryTest.php:83:        'managed_environment_id' => (int) $allowedTenant->getKey(),
tests/Feature/Rbac/ManagedEnvironmentAccessBoundaryTest.php:93:        'managed_environment_id' => (int) $deniedTenant->getKey(),
tests/Feature/Rbac/ManagedEnvironmentAccessBoundaryTest.php:105:        ->get(EvidenceSnapshotResource::getUrl('view', ['record' => $snapshot], panel: 'admin', tenant: $allowedTenant))
tests/Feature/BackupScheduling/BackupScheduleCrudTest.php:21:        'managed_environment_id' => $tenantA->id,
tests/Feature/BackupScheduling/BackupScheduleCrudTest.php:38:        'managed_environment_id' => $tenantB->id,
tests/Feature/BackupScheduling/BackupScheduleCrudTest.php:56:    $this->get(BackupScheduleResource::getUrl('index', tenant: $tenantA))
tests/Feature/BackupScheduling/BackupScheduleCrudTest.php:68:        'managed_environment_id' => $tenant->id,
tests/Feature/BackupScheduling/BackupScheduleCrudTest.php:83:    $this->get(BackupScheduleResource::getUrl('index', tenant: $tenant))
tests/Feature/BackupScheduling/BackupScheduleCrudTest.php:93:        ->get(BackupScheduleResource::getUrl('index', tenant: $unauthorizedTenant))
tests/Feature/BackupScheduling/BackupScheduleCrudTest.php:117:    $schedule = BackupSchedule::query()->where('managed_environment_id', $tenant->id)->first();
tests/Feature/BackupScheduling/BackupScheduleCrudTest.php:136:        'managed_environment_id' => $tenant->id,
tests/Feature/BackupScheduling/BackupScheduleCrudTest.php:149:        'managed_environment_id' => $tenant->id,
tests/Feature/BackupScheduling/BackupScheduleCrudTest.php:171:    $this->get(BackupScheduleResource::getUrl('index', tenant: $tenant))
tests/Browser/Spec279ManagedEnvironmentCoreCutoverSmokeTest.php:32:    visit(ChooseEnvironment::getUrl(panel: 'admin'))
tests/Feature/BackupScheduling/BackupScheduleLifecycleAuthorizationTest.php:33:        ->get(BackupScheduleResource::getUrl('index', tenant: $tenant))
tests/Feature/BackupScheduling/BackupScheduleLifecycleAuthorizationTest.php:41:        'managed_environment_id' => $tenant->id,
tests/Feature/BackupScheduling/BackupScheduleLifecycleAuthorizationTest.php:81:        'managed_environment_id' => $tenant->id,
tests/Feature/BackupScheduling/BackupScheduleLifecycleAuthorizationTest.php:94:        'managed_environment_id' => $tenant->id,
tests/Feature/BackupScheduling/BackupScheduleLifecycleAuthorizationTest.php:138:        'managed_environment_id' => $tenant->id,
tests/Feature/BackupScheduling/BackupScheduleLifecycleAuthorizationTest.php:170:        'managed_environment_id' => $foreignTenant->id,
tests/Feature/BackupScheduling/BackupScheduleLifecycleAuthorizationTest.php:183:        'managed_environment_id' => $foreignTenant->id,
app/Services/Baselines/BaselineEvidenceCaptureResumeService.php:47:        $tenantId = (int) ($priorRun->managed_environment_id ?? 0);
app/Services/Baselines/BaselineEvidenceCaptureResumeService.php:97:        foreach (['target_scope', 'baseline_profile_id', 'baseline_snapshot_id', 'source_environment_id', 'effective_scope', 'capture_mode'] as $key) {
tests/Browser/Spec303AdminDirectoryGroupsCutoverSmokeTest.php:34:    $groupsUrl = EntraGroupResource::getUrl(
tests/Browser/Spec303AdminDirectoryGroupsCutoverSmokeTest.php:40:        EntraGroupResource::getUrl(
tests/Browser/Spec303AdminDirectoryGroupsCutoverSmokeTest.php:56:    visit(route('admin.workspace.home', ['workspace' => $environment->workspace]))
tests/Feature/Rbac/PolicyVersionsRestoreToIntuneUiEnforcementTest.php:24:            'managed_environment_id' => $tenant->id,
tests/Feature/Rbac/PolicyVersionsRestoreToIntuneUiEnforcementTest.php:28:            'managed_environment_id' => $tenant->id,
tests/Feature/Rbac/PolicyVersionsRestoreToIntuneUiEnforcementTest.php:47:            'managed_environment_id' => $tenant->id,
tests/Feature/Rbac/PolicyVersionsRestoreToIntuneUiEnforcementTest.php:51:            'managed_environment_id' => $tenant->id,
tests/Feature/Rbac/PolicyVersionsRestoreToIntuneUiEnforcementTest.php:70:            'managed_environment_id' => $tenant->id,
tests/Feature/Rbac/PolicyVersionsRestoreToIntuneUiEnforcementTest.php:74:            'managed_environment_id' => $tenant->id,
tests/Feature/Rbac/PolicyVersionsRestoreToIntuneUiEnforcementTest.php:104:            'managed_environment_id' => $tenant->id,
tests/Feature/Rbac/PolicyVersionsRestoreToIntuneUiEnforcementTest.php:109:            'managed_environment_id' => $foreignTenant->id,
tests/Feature/Rbac/PolicyVersionsRestoreToIntuneUiEnforcementTest.php:112:            'managed_environment_id' => $foreignTenant->id,
tests/Feature/BackupScheduling/ApplyRetentionJobTest.php:13:        'managed_environment_id' => $tenant->id,
tests/Feature/BackupScheduling/ApplyRetentionJobTest.php:30:            'managed_environment_id' => $tenant->id,
tests/Feature/BackupScheduling/ApplyRetentionJobTest.php:43:            'managed_environment_id' => (int) $tenant->id,
tests/Feature/BackupScheduling/ApplyRetentionJobTest.php:84:        ->where('managed_environment_id', (int) $tenant->id)
tests/Feature/Concerns/BuildsPortfolioCompareFixtures.php:87:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Concerns/BuildsPortfolioCompareFixtures.php:95:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Concerns/BuildsPortfolioCompareFixtures.php:106:            'managed_environment_id' => (int) $tenant->getKey(),
app/Services/Baselines/BaselineContentCapturePhase.php:134:                    ->where('managed_environment_id', (int) $tenant->getKey())
tests/Browser/Spec172DeferredOperatorSurfacesSmokeTest.php:40:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Browser/Spec172DeferredOperatorSurfacesSmokeTest.php:46:                'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Browser/Spec172DeferredOperatorSurfacesSmokeTest.php:59:    $page = visit(ManagedEnvironmentResource::getUrl('view', ['record' => $tenant->getRouteKey()], panel: 'admin'));
tests/Browser/Spec172DeferredOperatorSurfacesSmokeTest.php:70:        ->assertScript("Array.from(document.querySelectorAll('a[href*=\"/operations\"]')).some((element) => element.textContent?.includes('Open operations') && element.href.includes('managed_environment_id='))", true);
tests/Browser/Spec172DeferredOperatorSurfacesSmokeTest.php:95:    visit(ManagedEnvironmentResource::getUrl('view', ['record' => $tenant->getRouteKey()], panel: 'admin'))
tests/Browser/Spec172DeferredOperatorSurfacesSmokeTest.php:121:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Browser/Spec172DeferredOperatorSurfacesSmokeTest.php:123:        'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Browser/Spec172DeferredOperatorSurfacesSmokeTest.php:130:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Browser/Spec172DeferredOperatorSurfacesSmokeTest.php:131:        'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Browser/Spec172DeferredOperatorSurfacesSmokeTest.php:172:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Browser/Spec172DeferredOperatorSurfacesSmokeTest.php:174:        'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Browser/Spec172DeferredOperatorSurfacesSmokeTest.php:181:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Browser/Spec172DeferredOperatorSurfacesSmokeTest.php:188:                'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Browser/Spec172DeferredOperatorSurfacesSmokeTest.php:196:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Browser/Spec172DeferredOperatorSurfacesSmokeTest.php:197:        'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Browser/Spec172DeferredOperatorSurfacesSmokeTest.php:224:        'managed_environment_id' => '17217217-2172-4172-9172-172172172172',
tests/Browser/Spec172DeferredOperatorSurfacesSmokeTest.php:240:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Browser/Spec172DeferredOperatorSurfacesSmokeTest.php:242:        'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Browser/Spec172DeferredOperatorSurfacesSmokeTest.php:250:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Browser/Spec172DeferredOperatorSurfacesSmokeTest.php:257:                'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Browser/Spec172DeferredOperatorSurfacesSmokeTest.php:280:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Browser/Spec172DeferredOperatorSurfacesSmokeTest.php:287:                'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Browser/Spec172DeferredOperatorSurfacesSmokeTest.php:296:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Browser/Spec172DeferredOperatorSurfacesSmokeTest.php:297:        'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Feature/Rbac/UiEnforcementNonMemberHiddenTest.php:52:            ->get(PolicyResource::getUrl('index', tenant: $hiddenTenant))
tests/Feature/Rbac/UiEnforcementNonMemberHiddenTest.php:66:            ->get(PolicyResource::getUrl('index', tenant: $tenant))
tests/Feature/Rbac/UiEnforcementNonMemberHiddenTest.php:79:            ->get(PolicyResource::getUrl('index', tenant: $tenantB))
tests/Feature/Rbac/UiEnforcementNonMemberHiddenTest.php:100:            ->get(PolicyResource::getUrl('index', tenant: $tenant))
tests/Feature/Rbac/UiEnforcementNonMemberHiddenTest.php:105:        expect(OperationRun::query()->where('managed_environment_id', $tenant->getKey())->count())->toBe(0);
tests/Feature/Rbac/UiEnforcementNonMemberHiddenTest.php:145:        expect(OperationRun::query()->where('managed_environment_id', $tenant->getKey())->count())->toBe(0);
tests/Feature/Rbac/UiEnforcementNonMemberHiddenTest.php:167:            ->get(PolicyResource::getUrl('index', tenant: $tenant))
resources/views/filament/pages/monitoring/alerts.blade.php:26:                    <x-filament::button tag="a" :href="\App\Filament\Resources\AlertDestinationResource::getUrl(panel: 'admin')">
resources/views/filament/pages/monitoring/alerts.blade.php:32:                    <x-filament::button tag="a" :href="\App\Filament\Resources\AlertRuleResource::getUrl(panel: 'admin')">
resources/views/filament/pages/monitoring/alerts.blade.php:38:                    <x-filament::button tag="a" :href="\App\Filament\Resources\AlertDeliveryResource::getUrl(panel: 'admin')">
resources/views/filament/pages/monitoring/alerts.blade.php:43:                <x-filament::button tag="a" color="gray" :href="route('admin.monitoring.audit-log')">
tests/Feature/Concerns/BuildsGovernanceArtifactTruthFixtures.php:29:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Concerns/BuildsGovernanceArtifactTruthFixtures.php:110:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Concerns/BuildsGovernanceArtifactTruthFixtures.php:223:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Concerns/BuildsGovernanceArtifactTruthFixtures.php:314:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/BackupScheduling/BackupScheduleBulkDeleteTest.php:12:        'managed_environment_id' => $tenant->id,
tests/Feature/BackupScheduling/BackupScheduleBulkDeleteTest.php:39:        'managed_environment_id' => $tenant->id,
tests/Feature/BackupScheduling/BackupScheduleBulkDeleteTest.php:52:        'managed_environment_id' => $tenant->id,
tests/Feature/BackupScheduling/BackupScheduleBulkDeleteTest.php:70:    expect(BackupSchedule::query()->where('managed_environment_id', $tenant->id)->pluck('id')->all())
tests/Browser/Spec193MonitoringSurfaceHierarchySmokeTest.php:28:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Browser/Spec193MonitoringSurfaceHierarchySmokeTest.php:42:        'managed_environment_id' => null,
tests/Browser/Spec193MonitoringSurfaceHierarchySmokeTest.php:61:        ->where('managed_environment_id', (int) $diagnosticsTenant->getKey())
tests/Browser/Spec193MonitoringSurfaceHierarchySmokeTest.php:71:    visit(FindingExceptionsQueue::getUrl(panel: 'admin'))
tests/Browser/Spec193MonitoringSurfaceHierarchySmokeTest.php:87:    visit(\App\Filament\Pages\EnvironmentDashboard::getUrl(tenant: $diagnosticsTenant))
tests/Feature/Rbac/GovernanceArtifactsWorkspaceFirstAuthorizationTest.php:40:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Rbac/GovernanceArtifactsWorkspaceFirstAuthorizationTest.php:46:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Rbac/GovernanceArtifactsWorkspaceFirstAuthorizationTest.php:73:        'managed_environment_id' => (int) $allowedTenant->getKey(),
tests/Feature/Rbac/GovernanceArtifactsWorkspaceFirstAuthorizationTest.php:88:        'managed_environment_id' => (int) $deniedTenant->getKey(),
tests/Feature/Rbac/GovernanceArtifactsWorkspaceFirstAuthorizationTest.php:94:        'managed_environment_id' => (int) $deniedTenant->getKey(),
tests/Feature/Rbac/GovernanceArtifactsWorkspaceFirstAuthorizationTest.php:108:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Rbac/DenialDiagnosticsTest.php:24:                && ($context['managed_environment_id'] ?? null) === (int) $tenant->getKey()
tests/Browser/OnboardingDraftRefreshTest.php:21:        'managed_environment_id' => '20202020-2020-2020-2020-202020202020',
tests/Browser/OnboardingDraftRefreshTest.php:37:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Browser/OnboardingDraftRefreshTest.php:39:        'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Browser/OnboardingDraftRefreshTest.php:52:            'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Browser/OnboardingDraftRefreshTest.php:63:    $page = visit(route('admin.onboarding.draft', ['onboardingDraft' => (int) $draft->getKey()]));
tests/Browser/OnboardingDraftRefreshTest.php:94:        'managed_environment_id' => '50505050-5050-5050-5050-505050505050',
tests/Browser/OnboardingDraftRefreshTest.php:110:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Browser/OnboardingDraftRefreshTest.php:112:        'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Browser/OnboardingDraftRefreshTest.php:120:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Browser/OnboardingDraftRefreshTest.php:127:                'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Browser/OnboardingDraftRefreshTest.php:140:            'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Browser/OnboardingDraftRefreshTest.php:152:    $page = visit(route('admin.onboarding.draft', ['onboardingDraft' => (int) $draft->getKey()]));
tests/Browser/OnboardingDraftRefreshTest.php:168:                'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Browser/OnboardingDraftRefreshTest.php:198:        'managed_environment_id' => '60606060-6060-6060-6060-606060606060',
tests/Browser/OnboardingDraftRefreshTest.php:214:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Browser/OnboardingDraftRefreshTest.php:216:        'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Browser/OnboardingDraftRefreshTest.php:224:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Browser/OnboardingDraftRefreshTest.php:232:                'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Browser/OnboardingDraftRefreshTest.php:250:            'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Browser/OnboardingDraftRefreshTest.php:266:    $page = visit(route('admin.onboarding.draft', ['onboardingDraft' => (int) $draft->getKey()]));
tests/Feature/BackupScheduling/BackupScheduleAdminTenantParityTest.php:21:        'managed_environment_id' => $tenantA->id,
tests/Feature/BackupScheduling/BackupScheduleAdminTenantParityTest.php:35:        'managed_environment_id' => $tenantB->id,
tests/Feature/BackupScheduling/BackupScheduleAdminTenantParityTest.php:59:        ->get(BackupScheduleResource::getUrl('edit', ['record' => $allowed], panel: 'admin', tenant: $tenantA))
tests/Feature/BackupScheduling/BackupScheduleAdminTenantParityTest.php:63:        ->get(BackupScheduleResource::getUrl('edit', ['record' => $blocked], panel: 'admin', tenant: $tenantA))
tests/Unit/MicrosoftGraphClientListPoliciesSelectTest.php:38:        $url = $request->url();
tests/Unit/MicrosoftGraphClientListPoliciesSelectTest.php:105:    parse_str((string) parse_url($firstRequest->url(), PHP_URL_QUERY), $firstQuery);
tests/Unit/MicrosoftGraphClientListPoliciesSelectTest.php:106:    parse_str((string) parse_url($secondRequest->url(), PHP_URL_QUERY), $secondQuery);
tests/Unit/MicrosoftGraphClientListPoliciesSelectTest.php:107:    parse_str((string) parse_url($thirdRequest->url(), PHP_URL_QUERY), $thirdQuery);
tests/Unit/MicrosoftGraphClientListPoliciesSelectTest.php:156:    expect($firstRequest->url())->toContain('/deviceManagement/configurationPolicies');
tests/Unit/MicrosoftGraphClientListPoliciesSelectTest.php:157:    expect($secondRequest->url())->toBe($nextLink);
tests/Unit/MicrosoftGraphClientListPoliciesSelectTest.php:180:        $url = $request->url();
tests/Unit/MicrosoftGraphClientListPoliciesSelectTest.php:213:        $url = $request->url();
tests/Feature/Concerns/BuildsBaselineCompareMatrixFixtures.php:145:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Concerns/BuildsBaselineCompareMatrixFixtures.php:161:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Concerns/BuildsBaselineCompareMatrixFixtures.php:211:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Rbac/TenantLifecycleActionNamingTest.php:27:            'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Feature/BackupScheduling/BackupScheduleOperationRunsRelationManagerTest.php:19:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Rbac/TenantResourceAuthorizationTest.php:70:            ->get(ManagedEnvironmentResource::getUrl('view', ['record' => $otherTenant], panel: 'admin'))
tests/Feature/Rbac/TenantResourceAuthorizationTest.php:80:            ->get(ManagedEnvironmentResource::getUrl('view', ['record' => (string) $otherTenant->getKey()], panel: 'admin'))
tests/Feature/Rbac/TenantResourceAuthorizationTest.php:162:            ->get(ManagedEnvironmentResource::getUrl(panel: 'admin'))
resources/views/filament/pages/choose-environment.blade.php:34:                        href="{{ $workspace ? route('admin.workspace.managed-environments.index', ['workspace' => $workspace]) : route('admin.onboarding') }}"
resources/views/filament/pages/choose-environment.blade.php:41:                    <a href="{{ route('filament.admin.pages.choose-workspace') }}"
resources/views/filament/pages/choose-environment.blade.php:139:                <a href="{{ route('admin.onboarding') }}"
resources/views/filament/pages/choose-environment.blade.php:144:                <a href="{{ route('filament.admin.pages.choose-workspace') }}"
app/Services/Baselines/BaselineCompareService.php:50:            ->where('managed_environment_id', $tenant->getKey())
app/Services/Baselines/BaselineCompareService.php:77:            ->where('managed_environment_id', (int) $tenant->getKey())
app/Services/Baselines/BaselineCompareService.php:144:                'entra_tenant_id' => $tenant->graphTenantId(),
app/Services/Baselines/BaselineCompareService.php:205:                ->pluck('managed_environment_id')
tests/Feature/BackupScheduling/RunNowRetryActionsTest.php:31:        'managed_environment_id' => $tenant->id,
tests/Feature/BackupScheduling/RunNowRetryActionsTest.php:50:        ->where('managed_environment_id', $tenant->id)
tests/Feature/BackupScheduling/RunNowRetryActionsTest.php:76:        'managed_environment_id' => $tenant->id,
tests/Feature/BackupScheduling/RunNowRetryActionsTest.php:98:        ->where('managed_environment_id', $tenant->id)
tests/Feature/BackupScheduling/RunNowRetryActionsTest.php:116:        'managed_environment_id' => $tenant->id,
tests/Feature/BackupScheduling/RunNowRetryActionsTest.php:135:        ->where('managed_environment_id', $tenant->id)
tests/Feature/BackupScheduling/RunNowRetryActionsTest.php:160:        'managed_environment_id' => $tenant->id,
tests/Feature/BackupScheduling/RunNowRetryActionsTest.php:182:        ->where('managed_environment_id', $tenant->id)
tests/Feature/BackupScheduling/RunNowRetryActionsTest.php:198:        'managed_environment_id' => $tenant->id,
tests/Feature/BackupScheduling/RunNowRetryActionsTest.php:228:        ->where('managed_environment_id', $tenant->id)
tests/Feature/BackupScheduling/RunNowRetryActionsTest.php:240:        'managed_environment_id' => $tenant->id,
tests/Feature/BackupScheduling/RunNowRetryActionsTest.php:253:        'managed_environment_id' => $tenant->id,
tests/Feature/BackupScheduling/RunNowRetryActionsTest.php:272:        ->where('managed_environment_id', $tenant->id)
tests/Feature/BackupScheduling/RunNowRetryActionsTest.php:278:        ->where('managed_environment_id', $tenant->id)
tests/Feature/BackupScheduling/RunNowRetryActionsTest.php:296:        'managed_environment_id' => $tenant->id,
tests/Feature/BackupScheduling/RunNowRetryActionsTest.php:309:        'managed_environment_id' => $tenant->id,
tests/Feature/BackupScheduling/RunNowRetryActionsTest.php:328:        ->where('managed_environment_id', $tenant->id)
tests/Feature/BackupScheduling/RunNowRetryActionsTest.php:334:        ->where('managed_environment_id', $tenant->id)
tests/Feature/BackupScheduling/RunNowRetryActionsTest.php:356:            'managed_environment_id' => $tenant->id,
tests/Feature/BackupScheduling/RunNowRetryActionsTest.php:369:            'managed_environment_id' => $tenant->id,
tests/Feature/BackupScheduling/RunNowRetryActionsTest.php:405:            ->where('managed_environment_id', $tenant->id)
tests/Unit/TenantScopeTest.php:9:        'managed_environment_id' => 'b0091e5d-944f-4a34-bcd9-12cbfb7b75cf',
tests/Feature/Rbac/ProviderConnectionAccessBoundaryTest.php:25:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Rbac/ProviderConnectionAccessBoundaryTest.php:62:        'managed_environment_id' => (int) $allowedTenant->getKey(),
tests/Feature/Rbac/ProviderConnectionAccessBoundaryTest.php:72:        'managed_environment_id' => (int) $deniedTenant->getKey(),
tests/Feature/Rbac/DashboardRecoveryPostureVisibilityTest.php:60:    $this->get(EnvironmentDashboard::getUrl(tenant: $tenant))
tests/Feature/Rbac/DashboardRecoveryPostureVisibilityTest.php:63:    $this->get(RestoreRunResource::getUrl('index', tenant: $tenant))
tests/Feature/Rbac/DashboardRecoveryPostureVisibilityTest.php:66:    $this->get(RestoreRunResource::getUrl('view', [
tests/Feature/Rbac/DashboardRecoveryPostureVisibilityTest.php:108:    $this->get(RestoreRunResource::getUrl('index', tenant: $tenant))
tests/Feature/Rbac/DashboardRecoveryPostureVisibilityTest.php:111:    $this->get(RestoreRunResource::getUrl('view', [
tests/Feature/Rbac/DashboardRecoveryPostureVisibilityTest.php:125:    $this->get(EnvironmentDashboard::getUrl(tenant: $tenant))
tests/Feature/Rbac/DashboardRecoveryPostureVisibilityTest.php:128:    $this->get(RestoreRunResource::getUrl('index', tenant: $tenant))
tests/Feature/Rbac/DashboardRecoveryPostureVisibilityTest.php:131:    $this->get(RestoreRunResource::getUrl('view', [
resources/views/filament/modals/onboarding-verification-technical-details.blade.php:56:    $entraTenantId = $targetScope['entra_tenant_id'] ?? null;
app/Services/Baselines/BaselineCaptureService.php:84:                'entra_tenant_id' => $sourceTenant->graphTenantId(),
app/Services/Baselines/BaselineCaptureService.php:94:            'source_environment_id' => (int) $sourceTenant->getKey(),
app/Services/Baselines/BaselineCaptureService.php:165:            ->where('managed_environment_id', (int) $sourceTenant->getKey())
tests/Feature/BackupScheduling/DispatchIdempotencyTest.php:18:        'managed_environment_id' => $tenant->id,
tests/Feature/BackupScheduling/DispatchIdempotencyTest.php:39:        ->where('managed_environment_id', $tenant->getKey())
tests/Feature/BackupScheduling/DispatchIdempotencyTest.php:47:            && $job->operationRun?->managed_environment_id === $tenant->getKey()
tests/Feature/BackupScheduling/DispatchIdempotencyTest.php:59:        'managed_environment_id' => $tenant->id,
tests/Feature/BackupScheduling/DispatchIdempotencyTest.php:96:        ->where('managed_environment_id', $tenant->getKey())
tests/Feature/BackupScheduling/DispatchIdempotencyTest.php:112:        'managed_environment_id' => $tenant->id,
tests/Feature/BackupScheduling/DispatchIdempotencyTest.php:135:            ->where('managed_environment_id', $tenant->getKey())
tests/Unit/FoundationMappingServiceTest.php:123:        'managed_environment_id' => 'tenant-1',
app/Services/Baselines/BaselineAutoCloseService.php:83:            ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/BackupScheduling/RunBackupScheduleJobTest.php:28:        'managed_environment_id' => $tenant->id,
tests/Feature/BackupScheduling/RunBackupScheduleJobTest.php:61:        'managed_environment_id' => $tenant->id,
tests/Feature/BackupScheduling/RunBackupScheduleJobTest.php:113:        'managed_environment_id' => $tenant->id,
tests/Feature/BackupScheduling/RunBackupScheduleJobTest.php:172:        'managed_environment_id' => $tenant->id,
tests/Feature/BackupScheduling/RunBackupScheduleJobTest.php:228:        'managed_environment_id' => $tenant->id,
tests/Feature/BackupScheduling/RunBackupScheduleJobTest.php:242:        'managed_environment_id' => $tenant->id,
tests/Feature/Rbac/BackupQualityVisibilityTest.php:36:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Rbac/BackupQualityVisibilityTest.php:43:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Rbac/BackupQualityVisibilityTest.php:51:    $this->get(BackupSetResource::getUrl('view', ['record' => $backupSet], tenant: $tenant))
tests/Feature/Rbac/BackupQualityVisibilityTest.php:56:    $this->get(PolicyVersionResource::getUrl('view', ['record' => $version], tenant: $tenant))
tests/Feature/EntraAdminRoles/ScanEntraAdminRolesJobTest.php:142:        ->where('managed_environment_id', $tenant->getKey())
tests/Feature/EntraAdminRoles/ScanEntraAdminRolesJobTest.php:155:        ->where('managed_environment_id', $tenant->getKey())
tests/Feature/EntraAdminRoles/ScanEntraAdminRolesJobTest.php:162:        ->where('managed_environment_id', $tenant->getKey())
tests/Feature/EntraAdminRoles/ScanEntraAdminRolesJobTest.php:185:        ->where('managed_environment_id', $tenant->getKey())
tests/Feature/EntraAdminRoles/ScanEntraAdminRolesJobTest.php:192:        ->where('managed_environment_id', $tenant->getKey())
tests/Feature/EntraAdminRoles/ScanEntraAdminRolesJobTest.php:219:        ->where('managed_environment_id', $tenant->getKey())
tests/Feature/EntraAdminRoles/ScanEntraAdminRolesJobTest.php:244:        ->where('managed_environment_id', $tenant->getKey())
tests/Feature/EntraAdminRoles/ScanEntraAdminRolesJobTest.php:275:        ->where('managed_environment_id', $tenant->getKey())
tests/Feature/EntraAdminRoles/ScanEntraAdminRolesJobTest.php:304:        ->where('managed_environment_id', $tenant->getKey())
tests/Feature/EntraAdminRoles/ScanEntraAdminRolesJobTest.php:311:        ->where('managed_environment_id', $tenant->getKey())
tests/Feature/EntraAdminRoles/ScanEntraAdminRolesJobTest.php:324:        ->where('managed_environment_id', $tenant->getKey())
tests/Feature/EntraAdminRoles/ScanEntraAdminRolesJobTest.php:331:        ->where('managed_environment_id', $tenant->getKey())
tests/Unit/BulkBackupSetDeleteJobTest.php:20:        'managed_environment_id' => $tenant->id,
tests/Unit/BulkBackupSetDeleteJobTest.php:28:            'managed_environment_id' => $tenant->id,
tests/Unit/BulkBackupSetDeleteJobTest.php:40:        'managed_environment_id' => $tenant->getKey(),
tests/Unit/BulkBackupSetDeleteJobTest.php:46:        'context' => ['target_scope' => ['entra_tenant_id' => 'entra-test-tenant']],
tests/Unit/BulkBackupSetDeleteJobTest.php:75:        'managed_environment_id' => $tenant->id,
tests/Unit/BulkBackupSetDeleteJobTest.php:82:        'managed_environment_id' => $tenant->id,
tests/Unit/BulkBackupSetDeleteJobTest.php:90:        'managed_environment_id' => $tenant->getKey(),
tests/Unit/BulkBackupSetDeleteJobTest.php:96:        'context' => ['target_scope' => ['entra_tenant_id' => 'entra-test-tenant']],
tests/Feature/Rbac/ProviderConnectionWorkspaceFirstPolicyTest.php:30:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Rbac/ProviderConnectionWorkspaceFirstPolicyTest.php:54:        'managed_environment_id' => (int) $allowedTenant->getKey(),
tests/Feature/Rbac/ProviderConnectionWorkspaceFirstPolicyTest.php:63:        'managed_environment_id' => (int) $deniedTenant->getKey(),
tests/Feature/Rbac/ProviderConnectionWorkspaceFirstPolicyTest.php:87:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Rbac/ProviderConnectionWorkspaceFirstPolicyTest.php:96:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Rbac/ProviderConnectionWorkspaceFirstPolicyTest.php:121:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Rbac/FindingExceptionLifecycleAccessBoundaryTest.php:27:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Rbac/FindingExceptionLifecycleAccessBoundaryTest.php:66:        'managed_environment_id' => (int) $allowedTenant->getKey(),
tests/Feature/Rbac/FindingExceptionLifecycleAccessBoundaryTest.php:79:        'managed_environment_id' => (int) $deniedTenant->getKey(),
app/Services/Baselines/Evidence/ContentEvidenceProvider.php:86:            ->where('managed_environment_id', (int) $tenant->getKey())
app/Services/Baselines/Evidence/ContentEvidenceProvider.php:131:            ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/EntraAdminRoles/EntraAdminRolesFindingGeneratorTest.php:109:        ->where('managed_environment_id', $tenant->getKey())
tests/Feature/EntraAdminRoles/EntraAdminRolesFindingGeneratorTest.php:148:        ->where('managed_environment_id', $tenant->getKey())
tests/Feature/EntraAdminRoles/EntraAdminRolesFindingGeneratorTest.php:183:        ->where('managed_environment_id', $tenant->getKey())
tests/Feature/EntraAdminRoles/EntraAdminRolesFindingGeneratorTest.php:190:        ->where('managed_environment_id', $tenant->getKey())
tests/Feature/EntraAdminRoles/EntraAdminRolesFindingGeneratorTest.php:211:        ->where('managed_environment_id', $tenant->getKey())
tests/Feature/EntraAdminRoles/EntraAdminRolesFindingGeneratorTest.php:265:        ->where('managed_environment_id', $tenant->getKey())
tests/Feature/EntraAdminRoles/EntraAdminRolesFindingGeneratorTest.php:302:        ->where('managed_environment_id', $tenant->getKey())
tests/Feature/EntraAdminRoles/EntraAdminRolesFindingGeneratorTest.php:329:        ->where('managed_environment_id', $tenant->getKey())
tests/Feature/EntraAdminRoles/EntraAdminRolesFindingGeneratorTest.php:364:        ->where('managed_environment_id', $tenant->getKey())
tests/Feature/EntraAdminRoles/EntraAdminRolesFindingGeneratorTest.php:389:        ->and($event['managed_environment_id'])->toBe((int) $tenant->getKey());
tests/Feature/EntraAdminRoles/EntraAdminRolesFindingGeneratorTest.php:424:        ->where('managed_environment_id', $tenant->getKey())
tests/Feature/EntraAdminRoles/EntraAdminRolesFindingGeneratorTest.php:465:        ->where('managed_environment_id', $tenant->getKey())
tests/Feature/EntraAdminRoles/EntraAdminRolesFindingGeneratorTest.php:487:        ->where('managed_environment_id', $tenant->getKey())
tests/Feature/EntraAdminRoles/EntraAdminRolesFindingGeneratorTest.php:509:        ->where('managed_environment_id', $tenant->getKey())
tests/Feature/EntraAdminRoles/EntraAdminRolesFindingGeneratorTest.php:541:        ->where('managed_environment_id', $tenant->getKey())
tests/Feature/EntraAdminRoles/EntraAdminRolesFindingGeneratorTest.php:562:        ->where('managed_environment_id', $tenant->getKey())
tests/Unit/GraphClientEndpointResolutionTest.php:12:    config()->set('graph.managed_environment_id', 'tenant');
tests/Unit/GraphClientEndpointResolutionTest.php:54:        if (! str_contains($request->url(), 'graph.microsoft.com')) {
tests/Unit/GraphClientEndpointResolutionTest.php:58:        return str_contains($request->url(), '/beta/deviceAppManagement/targetedManagedAppConfigurations/A_1');
tests/Unit/GraphClientEndpointResolutionTest.php:87:        if (! str_contains($request->url(), 'graph.microsoft.com')) {
tests/Unit/GraphClientEndpointResolutionTest.php:91:        if (! str_contains($request->url(), '/beta/deviceManagement/configurationPolicies/E_1')) {
tests/Unit/GraphClientEndpointResolutionTest.php:95:        return ! str_contains($request->url(), '/beta/deviceManagement/endpointSecurityPolicy/E_1');
tests/Feature/Rbac/OperationRunAccessBoundaryTest.php:52:        'managed_environment_id' => (int) $allowedTenant->getKey(),
tests/Feature/Rbac/TenantRequiredPermissionsTrustedStateTest.php:28:            'managed_environment_id' => $otherTenant->getKey(),
tests/Feature/Rbac/TenantRequiredPermissionsTrustedStateTest.php:52:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Rbac/TenantRequiredPermissionsTrustedStateTest.php:123:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Rbac/TenantRequiredPermissionsTrustedStateTest.php:136:        'managed_environment_id' => (string) $otherTenant->getKey(),
tests/Feature/Rbac/TenantRequiredPermissionsTrustedStateTest.php:144:        ->assertSet('tableFilters.status.value', 'present')
tests/Feature/Rbac/TenantRequiredPermissionsTrustedStateTest.php:145:        ->assertSet('tableFilters.type.value', 'application')
tests/Feature/Rbac/TenantRequiredPermissionsTrustedStateTest.php:146:        ->assertSet('tableFilters.features.values', ['backup'])
tests/Feature/MonitoringOperationsTest.php:19:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/MonitoringOperationsTest.php:32:        ->get(route('admin.operations.index', ['workspace' => $tenant->workspace]))
tests/Feature/MonitoringOperationsTest.php:42:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/MonitoringOperationsTest.php:64:        ->get(route('admin.operations.index', ['workspace' => $tenant->workspace]))
tests/Feature/MonitoringOperationsTest.php:69:        ->get(route('admin.operations.view', ['workspace' => $tenant->workspace, 'run' => (int) $run->getKey()]))
tests/Feature/MonitoringOperationsTest.php:87:        'managed_environment_id' => (int) $tenantA->getKey(),
tests/Feature/MonitoringOperationsTest.php:94:        'managed_environment_id' => (int) $tenantB->getKey(),
tests/Feature/MonitoringOperationsTest.php:104:        ->get(route('admin.operations.index', ['workspace' => $tenantA->workspace]))
tests/Feature/MonitoringOperationsTest.php:114:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/MonitoringOperationsTest.php:127:        ->get(route('admin.operations.index', ['workspace' => $tenant->workspace]))
tests/Feature/MonitoringOperationsTest.php:133:        ->get(route('admin.operations.view', ['workspace' => $tenant->workspace, 'run' => (int) $run->getKey()]))
tests/Feature/MonitoringOperationsTest.php:144:        ->get(route('admin.operations.view', ['workspace' => $run->workspace, 'run' => (int) $run->getKey()]))
tests/Feature/MonitoringOperationsTest.php:153:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/MonitoringOperationsTest.php:181:        ->get(route('admin.operations.view', ['workspace' => $tenant->workspace, 'run' => (int) $run->getKey()]));
tests/Feature/Rbac/EditProviderConnectionUiEnforcementTest.php:19:            'managed_environment_id' => $tenant->getKey(),
tests/Feature/Rbac/EditProviderConnectionUiEnforcementTest.php:35:            'managed_environment_id' => $tenant->getKey(),
tests/Feature/Rbac/TriageReviewStateAuthorizationTest.php:64:        ->get(EnvironmentDashboard::getUrl([
tests/Feature/Rbac/TriageReviewStateAuthorizationTest.php:133:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/Rbac/TriageReviewStateAuthorizationTest.php:139:            ->where('managed_environment_id', (int) $tenant->getKey())
app/Services/Baselines/Evidence/BaselinePolicyVersionResolver.php:17:     * Cached map of (managed_environment_id, policy_type) => subject_key => policy_id.
app/Services/Baselines/Evidence/BaselinePolicyVersionResolver.php:54:            ->where('managed_environment_id', $tenantId)
app/Services/Baselines/Evidence/BaselinePolicyVersionResolver.php:107:            ->where('managed_environment_id', $tenantId)
tests/Feature/EntraAdminRoles/EntraAdminRolesReportServiceTest.php:174:        ->and($report->managed_environment_id)->toBe((int) $tenant->getKey())
tests/Feature/EntraAdminRoles/EntraAdminRolesReportServiceTest.php:194:        ->where('managed_environment_id', $tenant->getKey())
tests/Feature/Rbac/OnboardingWizardUiEnforcementTest.php:63:                'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Feature/Rbac/OnboardingWizardUiEnforcementTest.php:106:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Rbac/OnboardingWizardUiEnforcementTest.php:107:            'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Feature/Rbac/OnboardingWizardUiEnforcementTest.php:112:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Rbac/OnboardingWizardUiEnforcementTest.php:113:            'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Feature/Rbac/OnboardingWizardUiEnforcementTest.php:124:            ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/Rbac/OnboardingWizardUiEnforcementTest.php:134:            ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/Rbac/OnboardingWizardUiEnforcementTest.php:174:                'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Rbac/OnboardingWizardUiEnforcementTest.php:185:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Rbac/OnboardingWizardUiEnforcementTest.php:187:            'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Feature/Rbac/OnboardingWizardUiEnforcementTest.php:194:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Rbac/OnboardingWizardUiEnforcementTest.php:201:                    'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Feature/Rbac/OnboardingWizardUiEnforcementTest.php:222:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Rbac/OnboardingWizardUiEnforcementTest.php:223:            'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Feature/Rbac/OnboardingWizardUiEnforcementTest.php:235:            ->get(route('admin.onboarding.draft', ['onboardingDraft' => (int) $draft->getKey()]))
tests/Feature/Rbac/OnboardingWizardUiEnforcementTest.php:259:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Rbac/OnboardingWizardUiEnforcementTest.php:261:            'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Feature/Rbac/OnboardingWizardUiEnforcementTest.php:268:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Rbac/OnboardingWizardUiEnforcementTest.php:275:                    'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Feature/Rbac/OnboardingWizardUiEnforcementTest.php:301:                'entra_tenant_id' => (string) $tenant->managed_environment_id,
app/Services/Baselines/Evidence/MetaEvidenceProvider.php:54:            ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/Rbac/TenantDashboardArrivalContextVisibilityTest.php:22:    return EnvironmentDashboard::getUrl([
tests/Feature/Rbac/TenantDashboardArrivalContextVisibilityTest.php:49:    $this->get(RestoreRunResource::getUrl('view', [
tests/Feature/Rbac/TenantDashboardArrivalContextVisibilityTest.php:80:        ->assertDontSee('href="'.e(RestoreRunResource::getUrl('view', [
tests/Feature/Rbac/TenantDashboardArrivalContextVisibilityTest.php:85:    $this->get(RestoreRunResource::getUrl('view', [
tests/Feature/EntraAdminRoles/AdminRolesSummaryWidgetTest.php:33:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/EntraAdminRoles/AdminRolesSummaryWidgetTest.php:88:    $expectedUrl = StoredReportResource::getUrl('view', ['record' => $report], panel: 'admin', tenant: $tenant);
tests/Feature/ProviderConnections/TenantlessListRouteTest.php:15:    expect(ProviderConnectionResource::getUrl('index', panel: 'admin'))
tests/Feature/ProviderConnections/RequiredFiltersTest.php:15:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/ProviderConnections/RequiredFiltersTest.php:23:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/ProviderConnections/RequiredFiltersTest.php:43:        ->set('tableFilters.default_only.isActive', true)
tests/Feature/EntraAdminRoles/AdminRolesAlertIntegrationTest.php:55:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/EntraAdminRoles/AdminRolesAlertIntegrationTest.php:62:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/EntraAdminRoles/AdminRolesAlertIntegrationTest.php:95:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/EntraAdminRoles/AdminRolesAlertIntegrationTest.php:119:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/EntraAdminRoles/AdminRolesAlertIntegrationTest.php:126:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/EntraAdminRoles/AdminRolesAlertIntegrationTest.php:163:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/EntraAdminRoles/AdminRolesAlertIntegrationTest.php:185:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/EntraAdminRoles/AdminRolesAlertIntegrationTest.php:202:        ->and($events[0]['managed_environment_id'])->toBe((int) $tenant->getKey())
tests/Unit/Baselines/BaselineScopeTest.php:160:                'filters' => ['tenant_ids' => ['tenant-a']],
tests/Feature/ProviderConnections/CapabilityForbiddenTest.php:16:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Rbac/TenantActionSurfaceConsistencyTest.php:34:            'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Feature/Rbac/TenantActionSurfaceConsistencyTest.php:107:            'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Feature/Rbac/TenantActionSurfaceConsistencyTest.php:219:            'entra_tenant_id' => (string) $onboardingTenant->managed_environment_id,
tests/Feature/Rbac/TenantActionSurfaceConsistencyTest.php:247:            'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Feature/Rbac/TenantActionSurfaceConsistencyTest.php:286:        ->and($table->getRecordUrl($tenant))->toBe(ManagedEnvironmentResource::getUrl('view', ['record' => $tenant]))
tests/Feature/EntraAdminRoles/StoredReportFingerprintTest.php:14:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/EntraAdminRoles/StoredReportFingerprintTest.php:26:it('prevents duplicate (managed_environment_id, report_type, fingerprint) via unique index', function (): void {
tests/Feature/EntraAdminRoles/StoredReportFingerprintTest.php:31:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/EntraAdminRoles/StoredReportFingerprintTest.php:37:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/EntraAdminRoles/StoredReportFingerprintTest.php:47:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/ProviderConnections/ProviderConnectionMigrationClassificationTest.php:20:        'managed_environment_id' => 'platform-classification-tenant-id',
tests/Feature/ProviderConnections/ProviderConnectionMigrationClassificationTest.php:26:        'managed_environment_id' => (int) $platformTenant->getKey(),
tests/Feature/ProviderConnections/ProviderConnectionMigrationClassificationTest.php:29:        'entra_tenant_id' => 'platform-classification-tenant-id',
tests/Feature/ProviderConnections/ProviderConnectionMigrationClassificationTest.php:34:        'managed_environment_id' => 'dedicated-classification-tenant-id',
tests/Feature/ProviderConnections/ProviderConnectionMigrationClassificationTest.php:40:        'managed_environment_id' => (int) $dedicatedTenant->getKey(),
tests/Feature/ProviderConnections/ProviderConnectionMigrationClassificationTest.php:43:        'entra_tenant_id' => 'dedicated-classification-tenant-id',
tests/Feature/ProviderConnections/ProviderConnectionMigrationClassificationTest.php:58:        'managed_environment_id' => 'hybrid-classification-tenant-id',
tests/Feature/ProviderConnections/ProviderConnectionMigrationClassificationTest.php:64:        'managed_environment_id' => (int) $hybridTenant->getKey(),
tests/Feature/ProviderConnections/ProviderConnectionMigrationClassificationTest.php:67:        'entra_tenant_id' => 'hybrid-classification-tenant-id',
tests/Feature/Rbac/InventoryItemResourceAuthorizationTest.php:44:            'managed_environment_id' => $otherTenant->getKey(),
tests/Feature/Rbac/InventoryItemResourceAuthorizationTest.php:57:            'managed_environment_id' => $tenant->getKey(),
tests/Feature/Rbac/InventoryItemResourceAuthorizationTest.php:74:            'managed_environment_id' => (int) $tenantA->getKey(),
tests/Feature/Rbac/InventoryItemResourceAuthorizationTest.php:81:            'managed_environment_id' => (int) $tenantA->getKey(),
tests/Feature/Rbac/InventoryItemResourceAuthorizationTest.php:88:            'managed_environment_id' => (int) $tenantB->getKey(),
tests/Feature/Rbac/InventoryItemResourceAuthorizationTest.php:105:            ->assertSet('tableFilters.platform.value', 'windows')
tests/Feature/Rbac/InventoryItemResourceAuthorizationTest.php:106:            ->assertSet('tableFilters.stale.value', '1')
tests/Feature/Rbac/InventoryItemResourceAuthorizationTest.php:122:            'managed_environment_id' => (int) $tenantA->getKey(),
tests/Feature/Rbac/InventoryItemResourceAuthorizationTest.php:129:            'managed_environment_id' => (int) $tenantB->getKey(),
tests/Feature/Rbac/InventoryItemResourceAuthorizationTest.php:158:            ->assertSet('tableFilters.platform.value', 'windows')
tests/Feature/Rbac/InventoryItemResourceAuthorizationTest.php:159:            ->assertSet('tableFilters.stale.value', '1')
tests/Feature/Rbac/InventoryItemResourceAuthorizationTest.php:169:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Rbac/InventoryItemResourceAuthorizationTest.php:189:            ->get(InventoryItemResource::getUrl('index', tenant: $tenant))
tests/Feature/Rbac/FilamentManageEnforcementTest.php:24:        'managed_environment_id' => $tenant->id,
tests/Feature/Rbac/FilamentManageEnforcementTest.php:44:        ->get(BackupSetResource::getUrl('create', tenant: $tenant))
tests/Feature/Rbac/FilamentManageEnforcementTest.php:58:        'managed_environment_id' => $tenant->id,
tests/Feature/Rbac/FilamentManageEnforcementTest.php:69:    expect(OperationRun::query()->where('managed_environment_id', $tenant->id)->where('type', 'policy.export')->exists())->toBeFalse();
tests/Feature/Rbac/FilamentManageEnforcementTest.php:88:        'managed_environment_id' => $tenant->id,
tests/Feature/Rbac/FilamentManageEnforcementTest.php:95:        'managed_environment_id' => $tenant->id,
tests/Feature/EntraAdminRoles/AdminRolesReportViewerTest.php:25:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/EntraAdminRoles/AdminRolesReportViewerTest.php:61:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/EntraAdminRoles/AdminRolesReportViewerTest.php:68:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/EntraAdminRoles/AdminRolesReportViewerTest.php:131:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/Rbac/BaselineCompareMatrixAuthorizationTest.php:68:    $this->get(BaselineCompareLanding::getUrl(parameters: $query, panel: 'admin', tenant: $fixture['visibleTenant']))
tests/Feature/Rbac/BaselineCompareMatrixAuthorizationTest.php:89:    $this->get(BaselineCompareLanding::getUrl(parameters: $query, panel: 'admin', tenant: $fixture['visibleTenant']))
tests/Feature/Rbac/BaselineCompareMatrixAuthorizationTest.php:120:    $this->get(FindingResource::getUrl('view', [
tests/Feature/Rbac/PolicyVersionMaintenanceAuthorizationTest.php:17:    $policy = Policy::factory()->create(['managed_environment_id' => $tenant->id]);
tests/Feature/Rbac/PolicyVersionMaintenanceAuthorizationTest.php:20:        'managed_environment_id' => $tenant->id,
tests/Feature/Rbac/PolicyVersionMaintenanceAuthorizationTest.php:38:    $policy = Policy::factory()->create(['managed_environment_id' => $tenant->id]);
tests/Feature/Rbac/PolicyVersionMaintenanceAuthorizationTest.php:41:        'managed_environment_id' => $tenant->id,
tests/Feature/Rbac/PolicyVersionMaintenanceAuthorizationTest.php:54:        ->where('managed_environment_id', $tenant->id)
tests/Feature/ProviderConnections/ProviderConnectionTruthCleanupSpec179Test.php:21:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/ProviderConnections/ProviderConnectionTruthCleanupSpec179Test.php:56:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/ProviderConnections/ProviderConnectionTruthCleanupSpec179Test.php:66:        ->get(ProviderConnectionResource::getUrl('view', ['record' => $connection], tenant: $tenant))
tests/Feature/ProviderConnections/ProviderConnectionTruthCleanupSpec179Test.php:86:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/ProviderConnections/ProviderConnectionTruthCleanupSpec179Test.php:96:        ->get(ProviderConnectionResource::getUrl('edit', ['record' => $connection], tenant: $tenant))
tests/Feature/ProviderConnections/ProviderConnectionTruthCleanupSpec179Test.php:116:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/ProviderConnections/ProviderConnectionTruthCleanupSpec179Test.php:136:    $this->get(ProviderConnectionResource::getUrl('view', ['record' => $connection], tenant: $tenant))
tests/Feature/ProviderConnections/ProviderConnectionTruthCleanupSpec179Test.php:148:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/ProviderConnections/ProviderConnectionTruthCleanupSpec179Test.php:169:    $this->get(ProviderConnectionResource::getUrl('view', ['record' => $connection], tenant: $tenant))
resources/views/filament/pages/workspaces/managed-environments-landing.blade.php:33:                        href="{{ route('admin.onboarding') }}"
resources/views/filament/pages/workspaces/managed-environments-landing.blade.php:40:                    <a href="{{ route('filament.admin.pages.choose-workspace') }}"
resources/views/filament/pages/workspaces/managed-environments-landing.blade.php:130:                <a href="{{ route('admin.onboarding') }}"
resources/views/filament/pages/workspaces/managed-environments-landing.blade.php:135:                <a href="{{ route('filament.admin.pages.choose-workspace') }}"
tests/Feature/Rbac/CrossResourceNavigationAuthorizationTest.php:41:    $this->get(FindingResource::getUrl('view', ['record' => $finding], tenant: $tenant))
tests/Feature/Rbac/TenantLifecycleActionVisibilityTest.php:30:            'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Feature/Rbac/TenantLifecycleActionVisibilityTest.php:173:            'entra_tenant_id' => (string) $onboardingTenant->managed_environment_id,
tests/Feature/Rbac/TenantLifecycleActionVisibilityTest.php:208:        ->get(ManagedEnvironmentResource::getUrl('view', ['record' => $tenant]))
tests/Feature/BulkRestoreRestoreRunsTest.php:17:        'managed_environment_id' => $tenant->id,
tests/Feature/BulkRestoreRestoreRunsTest.php:24:        'managed_environment_id' => $tenant->id,
tests/Feature/BulkRestoreRestoreRunsTest.php:41:        ->where('managed_environment_id', $tenant->id)
tests/Feature/ProviderConnections/MvpProviderScopeTest.php:21:            'entra_tenant_id' => (string) fake()->uuid(),
tests/Feature/ProviderConnections/MvpProviderScopeTest.php:28:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/BulkProgressNotificationTest.php:17:        'managed_environment_id' => $tenant->id,
tests/Feature/BulkProgressNotificationTest.php:28:        'managed_environment_id' => $tenant->id,
tests/Feature/BulkProgressNotificationTest.php:49:        'managed_environment_id' => $tenant->id,
tests/Feature/ProviderConnections/ProviderOperationConcurrencyTest.php:34:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/ProviderConnections/ProviderOperationConcurrencyTest.php:46:        ->where('managed_environment_id', $tenant->getKey())
tests/Feature/ProviderConnections/ProviderOperationConcurrencyTest.php:63:        'scope_identifier' => $connection->entra_tenant_id,
tests/Feature/ProviderConnections/ProviderOperationConcurrencyTest.php:64:    ])->not->toHaveKey('entra_tenant_id');
tests/Feature/ProviderConnections/ProviderOperationConcurrencyTest.php:67:        ->where('managed_environment_id', $tenant->getKey())
tests/Feature/ProviderConnections/ProviderOperationConcurrencyTest.php:93:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/ProviderConnections/ProviderOperationConcurrencyTest.php:105:        ->where('managed_environment_id', $tenant->getKey())
tests/Feature/ProviderConnections/ProviderOperationConcurrencyTest.php:122:        'scope_identifier' => $connection->entra_tenant_id,
tests/Feature/ProviderConnections/ProviderOperationConcurrencyTest.php:123:    ])->not->toHaveKey('entra_tenant_id');
tests/Feature/ProviderConnections/ProviderOperationConcurrencyTest.php:147:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/ProviderConnections/ProviderOperationConcurrencyTest.php:159:        ->where('managed_environment_id', $tenant->getKey())
tests/Feature/ProviderConnections/ProviderOperationConcurrencyTest.php:176:        'scope_identifier' => $connection->entra_tenant_id,
tests/Feature/ProviderConnections/ProviderOperationConcurrencyTest.php:177:    ])->not->toHaveKey('entra_tenant_id');
tests/Feature/ProviderConnections/ProviderOperationConcurrencyTest.php:180:        ->where('managed_environment_id', $tenant->getKey())
tests/Feature/ProviderConnections/ProviderOperationConcurrencyTest.php:197:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/ProviderConnections/ProviderOperationConcurrencyTest.php:210:        ->where('managed_environment_id', $tenant->getKey())
tests/Feature/ProviderConnections/ProviderOperationConcurrencyTest.php:218:        ->where('managed_environment_id', $tenant->getKey())
tests/Feature/Localization/WorkspaceDefaultLocaleTest.php:15:        ->get(WorkspaceSettings::getUrl(panel: 'admin'))
tests/Feature/Localization/WorkspaceDefaultLocaleTest.php:40:        ->get(WorkspaceSettings::getUrl(panel: 'admin'))
tests/Feature/Rbac/DriftLandingUiEnforcementTest.php:11:        ->get(BaselineCompareLanding::getUrl(panel: 'admin').'?tenant='.urlencode((string) $tenant->external_id))
tests/Feature/Database/PoliciesSeederTest.php:20:    expect($tenant->managed_environment_id)->toBe('test-tenant-id');
resources/views/admin-consent-callback.blade.php:42:                    ? route('admin.onboarding')
tests/Feature/ProviderConnections/ProviderConnectionCutoverSpec081Test.php:41:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/ProviderConnections/ProviderConnectionCutoverSpec081Test.php:67:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/ProviderConnections/ProviderConnectionCutoverSpec081Test.php:77:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Unit/Baselines/BaselinePolicyVersionResolverTest.php:26:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Unit/Baselines/BaselinePolicyVersionResolverTest.php:34:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Unit/Baselines/BaselinePolicyVersionResolverTest.php:55:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Unit/Baselines/BaselinePolicyVersionResolverTest.php:74:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Unit/Baselines/BaselinePolicyVersionResolverTest.php:102:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Unit/Baselines/BaselinePolicyVersionResolverTest.php:108:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Unit/Baselines/BaselinePolicyVersionResolverTest.php:116:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Unit/Baselines/BaselinePolicyVersionResolverTest.php:139:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Unit/Baselines/BaselinePolicyVersionResolverTest.php:148:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Localization/LocalePreferenceFlowTest.php:31:        ->post(route('localization.preference.update'), ['preferred_locale' => 'en'])
tests/Feature/Localization/LocalePreferenceFlowTest.php:45:        ->post(route('localization.preference.update'), ['preferred_locale' => ''])
tests/Feature/Localization/LocalePreferenceFlowTest.php:65:        ->post(route('localization.override.update'), ['locale' => 'de'])
tests/Feature/Localization/LocalePreferenceFlowTest.php:85:        ->delete(route('localization.override.clear'))
tests/Feature/Localization/LocalePreferenceFlowTest.php:100:        ->post(route('localization.override.update'), ['locale' => 'de'])
tests/Feature/OperationRunServiceTest.php:25:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/OperationRunServiceTest.php:168:                'managed_environment_id' => $model->managed_environment_id,
tests/Feature/OperationRunServiceTest.php:188:    expect(OperationRun::query()->where('managed_environment_id', $tenant->getKey())->where('type', 'test.race')->count())
tests/Feature/OperationRunServiceTest.php:249:                'managed_environment_id' => $model->managed_environment_id,
tests/Feature/OperationRunServiceTest.php:274:    expect(OperationRun::query()->where('managed_environment_id', $tenant->getKey())->where('type', 'backup_schedule_run')->count())
tests/Feature/ProviderConnections/ProviderOperationBlockedGuidanceSpec081Test.php:26:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/ProviderConnections/ProviderOperationBlockedGuidanceSpec081Test.php:36:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/ProviderConnections/ProviderOperationBlockedGuidanceSpec081Test.php:75:        ->where('managed_environment_id', (int) $tenant->getKey())
resources/views/filament/pages/auth/login.blade.php:24:                href="{{ route('auth.entra.redirect') }}"
tests/Feature/Rbac/EditTenantArchiveUiEnforcementTest.php:13:function editTenantUiHeaderActions(Testable $component): array
tests/Feature/Rbac/EditTenantArchiveUiEnforcementTest.php:17:    if ($instance->getCachedHeaderActions() === []) {
tests/Feature/Rbac/EditTenantArchiveUiEnforcementTest.php:18:        $instance->cacheInteractsWithHeaderActions();
tests/Feature/Rbac/EditTenantArchiveUiEnforcementTest.php:21:    return $instance->getCachedHeaderActions();
tests/Feature/Rbac/EditTenantArchiveUiEnforcementTest.php:49:        expect(collect(editTenantUiHeaderActions($component))
tests/Feature/Rbac/EditTenantArchiveUiEnforcementTest.php:82:        expect(collect(editTenantUiHeaderActions($component))
tests/Feature/Rbac/EditTenantArchiveUiEnforcementTest.php:118:        expect(collect(editTenantUiHeaderActions($component))
tests/Feature/RestoreRunRerunTest.php:42:        'managed_environment_id' => $tenant->id,
tests/Feature/RestoreRunRerunTest.php:90:        'managed_environment_id' => $tenant->id,
tests/Feature/ProviderConnections/ProviderCredentialSecurityTest.php:12:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/ProviderConnections/ProviderCredentialSecurityTest.php:32:    $this->get(ProviderConnectionResource::getUrl('edit', ['record' => $connection], tenant: $tenant))
tests/Feature/ExecuteRestoreRunJobTest.php:20:        'managed_environment_id' => 'tenant-1',
tests/Feature/ExecuteRestoreRunJobTest.php:28:        'managed_environment_id' => $tenant->id,
tests/Feature/ExecuteRestoreRunJobTest.php:35:        'managed_environment_id' => $tenant->id,
tests/Feature/ExecuteRestoreRunJobTest.php:88:        'managed_environment_id' => 'tenant-results',
tests/Feature/ExecuteRestoreRunJobTest.php:96:        'managed_environment_id' => $tenant->id,
tests/Feature/ExecuteRestoreRunJobTest.php:103:        'managed_environment_id' => $tenant->id,
tests/Feature/ExecuteRestoreRunJobTest.php:111:        'managed_environment_id' => $tenant->id,
tests/Feature/ExecuteRestoreRunJobTest.php:124:        'managed_environment_id' => $tenant->id,
tests/Feature/Rbac/BackupItemsRelationManagerSemanticsTest.php:30:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Rbac/BackupItemsRelationManagerSemanticsTest.php:50:    $this->get(BackupSetResource::getUrl('view', ['record' => $backupSet], tenant: $tenant))
tests/Feature/Rbac/BackupItemsRelationManagerSemanticsTest.php:62:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Rbac/BackupItemsRelationManagerSemanticsTest.php:82:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Rbac/BackupItemsRelationManagerSemanticsTest.php:91:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Rbac/BackupItemsRelationManagerSemanticsTest.php:101:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Rbac/BackupItemsRelationManagerSemanticsTest.php:127:        ->toBe(PolicyVersionResource::getUrl('view', ['record' => $version], tenant: $tenant));
tests/Feature/Rbac/BackupItemsRelationManagerSemanticsTest.php:140:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Rbac/BackupItemsRelationManagerSemanticsTest.php:145:        'managed_environment_id' => (int) $foreignTenant->getKey(),
resources/views/welcome.blade.php:35:                            href="{{ route('login') }}"
resources/views/welcome.blade.php:43:                                href="{{ route('register') }}"
tests/Feature/ProviderConnections/TenantlessListScopingTest.php:18:        'managed_environment_id' => (int) $tenantA->getKey(),
tests/Feature/ProviderConnections/TenantlessListScopingTest.php:25:        'managed_environment_id' => (int) $tenantB->getKey(),
tests/Feature/WorkspaceIsolation/DerivesWorkspaceIdFromTenantTest.php:16:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/WorkspaceIsolation/DerivesWorkspaceIdFromTenantTest.php:35:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/WorkspaceIsolation/DerivesWorkspaceIdFromTenantTest.php:44:it('rejects managed_environment_id changes after create', function (): void {
tests/Feature/WorkspaceIsolation/DerivesWorkspaceIdFromTenantTest.php:57:        'managed_environment_id' => (int) $tenantA->getKey(),
tests/Feature/WorkspaceIsolation/DerivesWorkspaceIdFromTenantTest.php:65:        'managed_environment_id' => (int) $tenantB->getKey(),
tests/Feature/WorkspaceIsolation/DerivesWorkspaceIdFromTenantTest.php:70:    expect((int) $policy->managed_environment_id)->toBe((int) $tenantA->getKey());
tests/Feature/Rbac/OperationRunWorkspaceFirstAuthorizationTest.php:47:        'managed_environment_id' => (int) $allowedTenant->getKey(),
tests/Unit/BulkRestoreRunDeleteJobTest.php:23:        'managed_environment_id' => $tenant->id,
tests/Unit/BulkRestoreRunDeleteJobTest.php:36:        'managed_environment_id' => $tenant->id,
tests/Unit/BulkRestoreRunDeleteJobTest.php:43:        'managed_environment_id' => $tenant->id,
tests/Unit/BulkRestoreRunDeleteJobTest.php:51:        'managed_environment_id' => $tenant->id,
tests/Unit/BulkRestoreRunDeleteJobTest.php:78:        'managed_environment_id' => $tenant->id,
tests/Unit/BulkRestoreRunDeleteJobTest.php:91:        'managed_environment_id' => $tenant->id,
tests/Unit/BulkRestoreRunDeleteJobTest.php:98:        'managed_environment_id' => $tenant->id,
tests/Unit/BulkRestoreRunDeleteJobTest.php:106:        'managed_environment_id' => $tenant->id,
tests/Unit/BulkRestoreRunDeleteJobTest.php:147:        'managed_environment_id' => $tenant->id,
tests/Unit/BulkRestoreRunDeleteJobTest.php:160:        'managed_environment_id' => $tenant->id,
tests/Unit/BulkRestoreRunDeleteJobTest.php:167:        'managed_environment_id' => $tenant->id,
tests/Feature/Localization/LocalizedNotificationFormattingTest.php:17:        ->post(route('localization.preference.update'), ['preferred_locale' => 'de'])
tests/Feature/Localization/LocalizedNotificationFormattingTest.php:35:        ->post(route('localization.override.update'), ['locale' => 'de'])
tests/Feature/Localization/LocalizedNotificationFormattingTest.php:44:        ->delete(route('localization.override.clear'))
tests/Feature/Localization/CustomerReviewSurfaceLocalizationTest.php:73:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/WorkspaceIsolation/TenantOwnedWorkspaceInvariantTest.php:31:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/WorkspaceIsolation/TenantOwnedWorkspaceInvariantTest.php:36:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/WorkspaceIsolation/TenantOwnedWorkspaceInvariantTest.php:42:            'managed_environment_id' => $tenant->getKey(),
tests/Feature/WorkspaceIsolation/TenantOwnedWorkspaceInvariantTest.php:46:            'managed_environment_id' => $tenant->getKey(),
tests/Feature/WorkspaceIsolation/TenantOwnedWorkspaceInvariantTest.php:51:            'managed_environment_id' => $tenant->getKey(),
tests/Feature/WorkspaceIsolation/TenantOwnedWorkspaceInvariantTest.php:55:            'managed_environment_id' => $tenant->getKey(),
tests/Feature/WorkspaceIsolation/TenantOwnedWorkspaceInvariantTest.php:61:            'managed_environment_id' => $tenant->getKey(),
tests/Feature/WorkspaceIsolation/TenantOwnedWorkspaceInvariantTest.php:66:            'managed_environment_id' => $tenant->getKey(),
tests/Feature/WorkspaceIsolation/TenantOwnedWorkspaceInvariantTest.php:79:            'managed_environment_id' => $tenant->getKey(),
tests/Feature/WorkspaceIsolation/TenantOwnedWorkspaceInvariantTest.php:83:            'managed_environment_id' => $tenant->getKey(),
tests/Feature/WorkspaceIsolation/TenantOwnedWorkspaceInvariantTest.php:87:            'managed_environment_id' => $tenant->getKey(),
tests/Feature/WorkspaceIsolation/TenantOwnedWorkspaceInvariantTest.php:91:            'managed_environment_id' => $tenant->getKey(),
tests/Feature/WorkspaceIsolation/TenantOwnedWorkspaceInvariantTest.php:95:            'managed_environment_id' => $tenant->getKey(),
tests/Feature/WorkspaceIsolation/TenantOwnedWorkspaceInvariantTest.php:99:            'managed_environment_id' => $tenant->getKey(),
tests/Feature/WorkspaceIsolation/TenantOwnedWorkspaceInvariantTest.php:114:            'managed_environment_id' => $tenant->getKey(),
tests/Feature/WorkspaceIsolation/TenantOwnedWorkspaceInvariantTest.php:133:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/WorkspaceIsolation/TenantOwnedWorkspaceInvariantTest.php:144:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/WorkspaceIsolation/TenantOwnedWorkspaceInvariantTest.php:162:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/WorkspaceIsolation/TenantOwnedWorkspaceInvariantTest.php:167:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/ProviderConnections/ProviderGatewayRuntimeSmokeSpec081Test.php:35:        'managed_environment_id' => $tenantId,
tests/Feature/ProviderConnections/ProviderGatewayRuntimeSmokeSpec081Test.php:43:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/ProviderConnections/ProviderGatewayRuntimeSmokeSpec081Test.php:48:        'entra_tenant_id' => $tenantId,
tests/Feature/ProviderConnections/ProviderGatewayRuntimeSmokeSpec081Test.php:80:                return ($options['tenant'] ?? null) === $setup['connection']->entra_tenant_id
tests/Feature/ProviderConnections/ProviderGatewayRuntimeSmokeSpec081Test.php:98:        'managed_environment_id' => (int) $setup['tenant']->getKey(),
tests/Feature/ProviderConnections/ProviderGatewayRuntimeSmokeSpec081Test.php:117:                return ($options['tenant'] ?? null) === $setup['connection']->entra_tenant_id
tests/Feature/ProviderConnections/ProviderGatewayRuntimeSmokeSpec081Test.php:146:        'managed_environment_id' => (int) $setup['tenant']->getKey(),
tests/Feature/ProviderConnections/ProviderGatewayRuntimeSmokeSpec081Test.php:159:                return ($options['tenant'] ?? null) === $setup['connection']->entra_tenant_id
tests/Feature/ProviderConnections/ProviderGatewayRuntimeSmokeSpec081Test.php:184:        'managed_environment_id' => (int) $setup['tenant']->getKey(),
tests/Feature/ProviderConnections/ProviderGatewayRuntimeSmokeSpec081Test.php:189:        'managed_environment_id' => (int) $setup['tenant']->getKey(),
tests/Feature/ProviderConnections/ProviderGatewayRuntimeSmokeSpec081Test.php:197:        'managed_environment_id' => (int) $setup['tenant']->getKey(),
tests/Feature/ProviderConnections/ProviderGatewayRuntimeSmokeSpec081Test.php:219:                return ($options['tenant'] ?? null) === $setup['connection']->entra_tenant_id
tests/Feature/ProviderConnections/ProviderGatewayRuntimeSmokeSpec081Test.php:251:                return ($options['tenant'] ?? null) === $setup['connection']->entra_tenant_id
tests/Feature/ProviderConnections/ProviderGatewayRuntimeSmokeSpec081Test.php:288:                expect($options['tenant'] ?? null)->toBe($setup['connection']->entra_tenant_id)
tests/Feature/WorkspaceIsolation/AuditLogScopeInvariantTest.php:24:    expect((int) $log->managed_environment_id)->toBe((int) $tenant->getKey());
tests/Feature/WorkspaceIsolation/AuditLogScopeInvariantTest.php:32:        'managed_environment_id' => null,
tests/Feature/WorkspaceIsolation/AuditLogScopeInvariantTest.php:46:        'managed_environment_id' => null,
tests/Feature/WorkspaceIsolation/AuditLogScopeInvariantTest.php:75:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Unit/AssignmentRestoreServiceTest.php:46:        'managed_environment_id' => 'tenant-123',
tests/Unit/AssignmentRestoreServiceTest.php:94:        'managed_environment_id' => 'tenant-123',
tests/Unit/AssignmentRestoreServiceTest.php:139:        'managed_environment_id' => 'tenant-123',
tests/Unit/AssignmentRestoreServiceTest.php:196:        'managed_environment_id' => 'tenant-123',
tests/Feature/Localization/EnvironmentContextTerminologyTest.php:55:        ->get(route('admin.workspace.managed-environments.index', ['workspace' => $workspace]))
tests/Feature/ProviderConnections/DisabledActionsTooltipTest.php:17:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Rbac/AdminTenantOwnedPolicyContextTest.php:55:        'managed_environment_id' => (int) $tenantA->getKey(),
tests/Feature/Rbac/AdminTenantOwnedPolicyContextTest.php:68:        'managed_environment_id' => (int) $tenantB->getKey(),
tests/Feature/Rbac/AdminTenantOwnedPolicyContextTest.php:138:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/WorkspaceIsolation/BackfillWorkspaceIdsCommandTest.php:18:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/WorkspaceIsolation/BackfillWorkspaceIdsCommandTest.php:30:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/WorkspaceIsolation/BackfillWorkspaceIdsCommandTest.php:49:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/WorkspaceIsolation/BackfillWorkspaceIdsCommandTest.php:56:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/WorkspaceIsolation/BackfillWorkspaceIdsCommandTest.php:91:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/WorkspaceIsolation/BackfillWorkspaceIdsCommandTest.php:110:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/WorkspaceIsolation/BackfillWorkspaceIdsCommandTest.php:122:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/WorkspaceIsolation/BackfillWorkspaceIdsCommandTest.php:139:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/Rbac/ReviewPackAccessBoundaryTest.php:26:        'managed_environment_id' => (int) $targetTenant->getKey(),
tests/Feature/Rbac/ReviewPackAccessBoundaryTest.php:31:        ->get(ReviewPackResource::getUrl('view', ['record' => $pack], panel: 'admin', tenant: $targetTenant))
tests/Feature/Rbac/ReviewPackAccessBoundaryTest.php:51:        'managed_environment_id' => (int) $allowedTenant->getKey(),
tests/Feature/Rbac/ReviewPackAccessBoundaryTest.php:60:        'managed_environment_id' => (int) $deniedTenant->getKey(),
tests/Feature/Rbac/ReviewPackAccessBoundaryTest.php:69:        ->get(ReviewPackResource::getUrl('view', ['record' => $pack], panel: 'admin', tenant: $allowedTenant))
tests/Feature/Rbac/ReviewPackAccessBoundaryTest.php:77:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/ProviderConnections/CredentialLeakGuardTest.php:16:        'managed_environment_id' => $tenant->getKey(),
app/Services/EnvironmentReviews/EnvironmentReviewRegisterService.php:59:            ->whereIn('managed_environment_id', $tenantIds === [] ? [-1] : $tenantIds)
app/Services/EnvironmentReviews/EnvironmentReviewRegisterService.php:71:                'environment_reviews.managed_environment_id',
app/Services/EnvironmentReviews/EnvironmentReviewRegisterService.php:75:            ->selectRaw('ROW_NUMBER() OVER (PARTITION BY managed_environment_id ORDER BY published_at DESC, generated_at DESC, id DESC) as rn')
app/Services/EnvironmentReviews/EnvironmentReviewRegisterService.php:77:            ->whereIn('managed_environment_id', $tenantIds === [] ? [-1] : $tenantIds)
tests/Feature/ProviderConnections/NavigationPlacementTest.php:12:        ->get(route('admin.operations.index', ['workspace' => (int) $tenant->workspace_id]))
tests/Feature/Rbac/ActionSurfaceRbacSemanticsTest.php:39:        'managed_environment_id' => (int) $tenantB->getKey(),
tests/Feature/Rbac/ActionSurfaceRbacSemanticsTest.php:62:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Rbac/ActionSurfaceRbacSemanticsTest.php:90:        ->get(FindingExceptionsQueue::getUrl(panel: 'admin'))
tests/Feature/Rbac/ActionSurfaceRbacSemanticsTest.php:103:        'managed_environment_id' => (int) $tenantA->getKey(),
tests/Feature/Rbac/ActionSurfaceRbacSemanticsTest.php:117:        'managed_environment_id' => (string) $unauthorizedTenant->getKey(),
tests/Feature/Rbac/ActionSurfaceRbacSemanticsTest.php:122:        ->assertSet('tableFilters.managed_environment_id.value', null)
tests/Feature/Rbac/ActionSurfaceRbacSemanticsTest.php:132:        'managed_environment_id' => (int) $foreignTenant->getKey(),
tests/Feature/Rbac/ActionSurfaceRbacSemanticsTest.php:165:        'managed_environment_id' => (int) $foreignTenant->getKey(),
tests/Feature/Onboarding/OnboardingDraftMultiTabTest.php:31:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Onboarding/OnboardingDraftMultiTabTest.php:33:        'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Feature/Onboarding/OnboardingDraftMultiTabTest.php:40:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Onboarding/OnboardingDraftMultiTabTest.php:42:        'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Feature/Onboarding/OnboardingDraftMultiTabTest.php:54:            'entra_tenant_id' => (string) $tenant->managed_environment_id,
app/Services/EnvironmentReviews/EnvironmentReviewService.php:87:                    'managed_environment_id' => (int) $review->managed_environment_id,
app/Services/EnvironmentReviews/EnvironmentReviewService.php:126:                'managed_environment_id' => (int) $tenant->getKey(),
app/Services/EnvironmentReviews/EnvironmentReviewService.php:144:        if ((int) $snapshot->managed_environment_id !== (int) $tenant->getKey()) {
app/Services/EnvironmentReviews/EnvironmentReviewService.php:163:                'managed_environment_id' => (int) $tenant->getKey(),
app/Services/EnvironmentReviews/EnvironmentReviewService.php:168:                'managed_environment_id' => (int) $tenant->getKey(),
app/Services/EnvironmentReviews/EnvironmentReviewService.php:181:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Unit/BulkPolicyExportJobTest.php:19:    $policies = Policy::factory()->count(3)->create(['managed_environment_id' => $tenant->id]);
tests/Unit/BulkPolicyExportJobTest.php:24:            'managed_environment_id' => $tenant->id,
tests/Unit/BulkPolicyExportJobTest.php:36:        'managed_environment_id' => $tenant->getKey(),
tests/Unit/BulkPolicyExportJobTest.php:65:        ->and($backupSet->managed_environment_id)->toBe($tenant->id);
tests/Unit/BulkPolicyExportJobTest.php:75:    $policyWithVersion = Policy::factory()->create(['managed_environment_id' => $tenant->id]);
tests/Unit/BulkPolicyExportJobTest.php:77:        'managed_environment_id' => $tenant->id,
tests/Unit/BulkPolicyExportJobTest.php:85:    $policyNoVersion = Policy::factory()->create(['managed_environment_id' => $tenant->id]);
tests/Unit/BulkPolicyExportJobTest.php:90:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/ProviderConnections/ProviderConnectionEnableDisableTest.php:23:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/ProviderConnections/ProviderConnectionEnableDisableTest.php:25:        'entra_tenant_id' => fake()->uuid(),
tests/Feature/ProviderConnections/ProviderConnectionEnableDisableTest.php:39:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/ProviderConnections/ProviderConnectionEnableDisableTest.php:66:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/ProviderConnections/ProviderConnectionEnableDisableTest.php:68:        'entra_tenant_id' => fake()->uuid(),
tests/Feature/ProviderConnections/ProviderConnectionEnableDisableTest.php:87:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/ProviderConnections/ProviderConnectionEnableDisableTest.php:111:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/ProviderConnections/ProviderConnectionEnableDisableTest.php:113:        'entra_tenant_id' => fake()->uuid(),
tests/Feature/ProviderConnections/ProviderConnectionEnableDisableTest.php:124:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/ProviderConnections/ProviderConnectionEnableDisableTest.php:142:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/ProviderConnections/ProviderConnectionEnableDisableTest.php:144:        'entra_tenant_id' => fake()->uuid(),
tests/Feature/ProviderConnections/ProviderConnectionEnableDisableTest.php:148:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/ProviderConnections/ProviderConnectionEnableDisableTest.php:159:                'entra_tenant_id' => $connection->entra_tenant_id,
tests/Feature/ProviderConnections/ProviderConnectionEnableDisableTest.php:165:        ->get(ProviderConnectionResource::getUrl('edit', ['record' => $connection], tenant: $tenant))
tests/Feature/ProviderConnections/ProviderConnectionViewsDbOnlyRenderingSpec081Test.php:15:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/ProviderConnections/ProviderConnectionViewsDbOnlyRenderingSpec081Test.php:34:        $this->get(ProviderConnectionResource::getUrl('index', ['tenant' => $tenant->external_id], panel: 'admin'))
tests/Feature/ProviderConnections/ProviderConnectionViewsDbOnlyRenderingSpec081Test.php:38:        $this->get(ProviderConnectionResource::getUrl('edit', ['tenant' => $tenant->external_id, 'record' => $connection], panel: 'admin'))
tests/Feature/ProviderConnections/ProviderConnectionViewsDbOnlyRenderingSpec081Test.php:60:        'managed_environment_id' => (int) $tenant->getKey(),
app/Services/EnvironmentReviews/EnvironmentReviewFingerprint.php:18:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Onboarding/OnboardingDraftRoutingTest.php:28:        ->get(route('admin.onboarding'))
tests/Feature/Onboarding/OnboardingDraftRoutingTest.php:52:            'entra_tenant_id' => '11111111-1111-1111-1111-111111111111',
tests/Feature/Onboarding/OnboardingDraftRoutingTest.php:59:        ->get(route('admin.onboarding'))
tests/Feature/Onboarding/OnboardingDraftRoutingTest.php:60:        ->assertRedirect(route('admin.onboarding.draft', ['onboardingDraft' => $draft->getKey()]));
tests/Feature/Onboarding/OnboardingDraftRoutingTest.php:67:        'managed_environment_id' => '22222222-2222-2222-2222-222222222222',
tests/Feature/Onboarding/OnboardingDraftRoutingTest.php:88:            'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Feature/Onboarding/OnboardingDraftRoutingTest.php:97:        ->get(route('admin.onboarding.draft', ['onboardingDraft' => $draft->getKey()]))
tests/Feature/Onboarding/OnboardingDraftRoutingTest.php:124:            'entra_tenant_id' => '77777777-7777-7777-7777-777777777777',
tests/Feature/Onboarding/OnboardingDraftRoutingTest.php:131:        ->get(route('admin.onboarding.draft', ['onboardingDraft' => $draft->getKey()]))
tests/Feature/Onboarding/OnboardingDraftRoutingTest.php:153:            'entra_tenant_id' => '88888888-8888-8888-8888-888888888888',
tests/Feature/Onboarding/OnboardingDraftRoutingTest.php:164:            'entra_tenant_id' => '99999999-9999-9999-9999-999999999999',
tests/Feature/Onboarding/OnboardingDraftRoutingTest.php:171:        ->get(route('admin.onboarding.draft', ['onboardingDraft' => $draft->getKey()]))
tests/Feature/Onboarding/OnboardingDraftRoutingTest.php:191:            'entra_tenant_id' => '33333333-3333-3333-3333-333333333333',
tests/Feature/Onboarding/OnboardingDraftRoutingTest.php:195:        ->assertRedirect(route('admin.onboarding.draft', [
tests/Feature/Onboarding/OnboardingDraftRoutingTest.php:198:                ->where('entra_tenant_id', '33333333-3333-3333-3333-333333333333')
tests/Feature/DependencyExtractionFeatureTest.php:73:    $edges = InventoryLink::query()->where('managed_environment_id', $tenant->getKey())->get();
tests/Feature/DependencyExtractionFeatureTest.php:134:    $count = InventoryLink::query()->where('managed_environment_id', $tenant->getKey())->count();
tests/Feature/DependencyExtractionFeatureTest.php:195:    expect(InventoryLink::query()->where('managed_environment_id', $tenant->getKey())->count())->toBe(0);
tests/Feature/DependencyExtractionFeatureTest.php:203:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/DependencyExtractionFeatureTest.php:209:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/DependencyExtractionFeatureTest.php:219:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/DependencyExtractionFeatureTest.php:229:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/DependencyExtractionFeatureTest.php:246:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/DependencyExtractionFeatureTest.php:256:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/DependencyExtractionFeatureTest.php:266:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/DependencyExtractionFeatureTest.php:367:    $edges = InventoryLink::query()->where('managed_environment_id', $tenant->getKey())->get();
tests/Feature/ProviderConnections/ProviderComplianceSnapshotJobTest.php:54:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/ProviderConnections/ProviderComplianceSnapshotJobTest.php:56:        'entra_tenant_id' => fake()->uuid(),
tests/Feature/ProviderConnections/ProviderComplianceSnapshotJobTest.php:68:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/ProviderConnections/ProviderComplianceSnapshotJobTest.php:79:                'entra_tenant_id' => $connection->entra_tenant_id,
tests/Feature/ProviderConnections/ProviderComplianceSnapshotJobTest.php:120:        'scope_identifier' => $connection->entra_tenant_id,
tests/Feature/ProviderConnections/ProviderComplianceSnapshotJobTest.php:122:    ])->not->toHaveKey('entra_tenant_id');
tests/Feature/ProviderConnections/LegacyRedirectTest.php:15:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Onboarding/OnboardingIdentifyEnvironmentTest.php:33:        'entra_tenant_id' => $entraTenantId,
tests/Feature/Onboarding/OnboardingIdentifyEnvironmentTest.php:41:        'entra_tenant_id' => $entraTenantId,
tests/Feature/Onboarding/OnboardingIdentifyEnvironmentTest.php:56:        ->where('entra_tenant_id', $entraTenantId)
tests/Feature/Onboarding/OnboardingIdentifyEnvironmentTest.php:83:        'managed_environment_id' => $entraTenantId,
tests/Feature/Onboarding/OnboardingIdentifyEnvironmentTest.php:94:            'entra_tenant_id' => $entraTenantId,
tests/Feature/ProviderConnections/TenantFilterOverrideTest.php:10:it('uses managed_environment_id query override for authorized tenants', function (): void {
tests/Feature/ProviderConnections/TenantFilterOverrideTest.php:21:        'managed_environment_id' => (int) $tenantA->getKey(),
tests/Feature/ProviderConnections/TenantFilterOverrideTest.php:28:        'managed_environment_id' => (int) $tenantB->getKey(),
tests/Feature/ProviderConnections/TenantFilterOverrideTest.php:34:        ->get('/admin/provider-connections?managed_environment_id='.(string) $tenantB->external_id)
tests/Feature/ProviderConnections/TenantFilterOverrideTest.php:40:it('returns empty list for unauthorized managed_environment_id query override', function (): void {
tests/Feature/ProviderConnections/TenantFilterOverrideTest.php:50:        'managed_environment_id' => (int) $tenantA->getKey(),
tests/Feature/ProviderConnections/TenantFilterOverrideTest.php:57:        'managed_environment_id' => (int) $tenantB->getKey(),
tests/Feature/ProviderConnections/TenantFilterOverrideTest.php:63:        ->get('/admin/provider-connections?managed_environment_id='.(string) $tenantB->external_id)
tests/Feature/ProviderConnections/TenantFilterOverrideTest.php:80:        'managed_environment_id' => (int) $tenantA->getKey(),
tests/Feature/ProviderConnections/TenantFilterOverrideTest.php:89:        'managed_environment_id' => (int) $tenantB->getKey(),
tests/Feature/ProviderConnections/TenantFilterOverrideTest.php:98:        'managed_environment_id' => (int) $tenantB->getKey(),
tests/Feature/ProviderConnections/TenantFilterOverrideTest.php:108:        'managed_environment_id' => (string) $tenantB->external_id,
tests/Feature/OperationalControls/OperationalControlAuthorizationSemanticsTest.php:30:        'managed_environment_id' => fake()->uuid(),
tests/Feature/OperationalControls/OperationalControlAuthorizationSemanticsTest.php:40:        'managed_environment_id' => $tenant->id,
tests/Feature/OperationalControls/OperationalControlAuthorizationSemanticsTest.php:48:        'managed_environment_id' => $tenant->id,
tests/Feature/OperationalControls/OperationalControlAuthorizationSemanticsTest.php:55:        'managed_environment_id' => $tenant->id,
tests/Feature/OperationalControls/OperationalControlAuthorizationSemanticsTest.php:82:        ->get(RestoreRunResource::getUrl('create', panel: 'admin', tenant: $tenant))
tests/Feature/OperationalControls/OperationalControlAuthorizationSemanticsTest.php:98:        ->get(RestoreRunResource::getUrl('create', panel: 'admin', tenant: $tenant))
tests/Feature/OperationalControls/OperationalControlAuthorizationSemanticsTest.php:147:        ->get(Controls::getUrl(panel: 'system'))
tests/Feature/OperationalControls/OperationalControlAuthorizationSemanticsTest.php:160:        ->get(Controls::getUrl(panel: 'system'))
tests/Feature/OperationalControls/OperationalControlAuthorizationSemanticsTest.php:174:        ->get(Controls::getUrl(panel: 'system'))
tests/Feature/ProviderConnections/ProviderConnectionDedicatedAuthorizationTest.php:17:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/ProviderConnections/ProviderConnectionDedicatedAuthorizationTest.php:35:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/ProviderConnections/ProviderConnectionDedicatedAuthorizationTest.php:56:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Unit/Intune/VersionServiceConcurrencyTest.php:48:                'managed_environment_id' => $model->managed_environment_id,
tests/Feature/Onboarding/AdminConsentCallbackPlatformConnectionTest.php:17:        'managed_environment_id' => 'tenant-platform-ok',
tests/Feature/Onboarding/AdminConsentCallbackPlatformConnectionTest.php:21:    $this->get(route('admin.consent.callback', [
tests/Feature/Onboarding/AdminConsentCallbackPlatformConnectionTest.php:22:        'tenant' => $tenant->managed_environment_id,
tests/Feature/Onboarding/AdminConsentCallbackPlatformConnectionTest.php:27:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/Onboarding/AdminConsentCallbackPlatformConnectionTest.php:29:        ->where('entra_tenant_id', $tenant->graphTenantId())
tests/Feature/Onboarding/AdminConsentCallbackPlatformConnectionTest.php:42:        'managed_environment_id' => 'tenant-platform-error',
tests/Feature/Onboarding/AdminConsentCallbackPlatformConnectionTest.php:46:    $this->get(route('admin.consent.callback', [
tests/Feature/Onboarding/AdminConsentCallbackPlatformConnectionTest.php:47:        'tenant' => $tenant->managed_environment_id,
tests/Feature/Onboarding/AdminConsentCallbackPlatformConnectionTest.php:52:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/Onboarding/AdminConsentCallbackPlatformConnectionTest.php:54:        ->where('entra_tenant_id', $tenant->graphTenantId())
app/Services/AssignmentBackupService.php:113:                'managed_environment_id' => $tenantId,
app/Services/AssignmentBackupService.php:154:            'managed_environment_id' => $tenantId,
tests/Feature/ProviderConnections/ProviderConnectionDefaultInvariantSpec081Test.php:33:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/ProviderConnections/ProviderConnectionDefaultInvariantSpec081Test.php:39:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/ProviderConnections/ProviderConnectionDefaultInvariantSpec081Test.php:47:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/ProviderConnections/ProviderConnectionAuthorizationSpec081Test.php:17:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/ProviderConnections/ProviderConnectionAuthorizationSpec081Test.php:27:        ->get(ProviderConnectionResource::getUrl('edit', ['record' => $connection], tenant: $tenant))
tests/Feature/ProviderConnections/ProviderConnectionAuthorizationSpec081Test.php:35:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/ProviderConnections/ProviderConnectionAuthorizationSpec081Test.php:43:        ->get(ProviderConnectionResource::getUrl('index', tenant: $tenant))
tests/Feature/ProviderConnections/ProviderConnectionAuthorizationSpec081Test.php:50:        ->get(ProviderConnectionResource::getUrl('create', tenant: $tenant))
tests/Feature/ProviderConnections/ProviderConnectionAuthorizationSpec081Test.php:57:        ->get(ProviderConnectionResource::getUrl('edit', ['record' => $connection], tenant: $tenant))
tests/Feature/Onboarding/OnboardingSecretSafetyTest.php:33:            'entra_tenant_id' => $entraTenantId,
tests/Feature/Onboarding/OnboardingSecretSafetyTest.php:46:        ->where('entra_tenant_id', $entraTenantId)
app/Services/SystemConsole/OperationRunTriageService.php:79:            'managed_environment_id' => $run->managed_environment_id !== null ? (int) $run->managed_environment_id : null,
tests/Feature/ProviderConnections/AuthorizationSemanticsTest.php:14:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/ProviderConnections/AuthorizationSemanticsTest.php:28:        ->get('/admin/provider-connections/create?managed_environment_id='.(string) $tenant->external_id)
tests/Unit/ManagedEnvironment/ManagedEnvironmentModelTest.php:49:        'tenant_id',
tests/Unit/ManagedEnvironment/ManagedEnvironmentModelTest.php:50:        'managed_environment_id',
tests/Unit/ManagedEnvironment/ManagedEnvironmentModelTest.php:59:        'entra_tenant_id',
tests/Unit/ManagedEnvironment/ManagedEnvironmentModelTest.php:60:        'graph_tenant_id',
tests/Unit/ManagedEnvironment/ManagedEnvironmentModelTest.php:70:        'managed_environment_id' => (int) $environment->getKey(),
tests/Unit/ManagedEnvironment/ManagedEnvironmentModelTest.php:73:        'entra_tenant_id' => '11111111-1111-1111-1111-111111111111',
tests/Unit/ManagedEnvironment/ManagedEnvironmentModelTest.php:81:it('treats managed_environment_id as a write-through alias for slug', function (): void {
tests/Unit/ManagedEnvironment/ManagedEnvironmentModelTest.php:83:        'managed_environment_id' => 'alias-slug',
tests/Unit/ManagedEnvironment/ManagedEnvironmentModelTest.php:87:        ->and($environment->managed_environment_id)->toBe('alias-slug')
tests/Feature/ProviderConnections/ProviderConnectionAuthorizationTest.php:14:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/ProviderConnections/ProviderConnectionAuthorizationTest.php:19:        ->get(ProviderConnectionResource::getUrl('index', tenant: $tenant))
tests/Feature/ProviderConnections/ProviderConnectionAuthorizationTest.php:23:        ->get(ProviderConnectionResource::getUrl('create', tenant: $tenant))
tests/Feature/ProviderConnections/ProviderConnectionAuthorizationTest.php:27:        ->get(ProviderConnectionResource::getUrl('edit', ['record' => $connection], tenant: $tenant))
tests/Feature/ProviderConnections/ProviderConnectionAuthorizationTest.php:35:    $createUrl = ProviderConnectionResource::getUrl('create', tenant: $tenant);
tests/Feature/ProviderConnections/ProviderConnectionAuthorizationTest.php:39:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/ProviderConnections/ProviderConnectionAuthorizationTest.php:43:        ->get(ProviderConnectionResource::getUrl('index', tenant: $tenant))
tests/Feature/ProviderConnections/ProviderConnectionAuthorizationTest.php:48:        ->get(ProviderConnectionResource::getUrl('create', tenant: $tenant))
tests/Feature/ProviderConnections/ProviderConnectionAuthorizationTest.php:52:        ->get(ProviderConnectionResource::getUrl('view', ['record' => $connection], tenant: $tenant))
tests/Feature/ProviderConnections/ProviderConnectionAuthorizationTest.php:56:        ->get(ProviderConnectionResource::getUrl('edit', ['record' => $connection], tenant: $tenant))
tests/Feature/ProviderConnections/ProviderConnectionAuthorizationTest.php:63:    $createUrl = ProviderConnectionResource::getUrl('create', tenant: $tenant);
tests/Feature/ProviderConnections/ProviderConnectionAuthorizationTest.php:67:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/ProviderConnections/ProviderConnectionAuthorizationTest.php:71:        ->get(ProviderConnectionResource::getUrl('index', tenant: $tenant))
tests/Feature/ProviderConnections/ProviderConnectionAuthorizationTest.php:76:        ->get(ProviderConnectionResource::getUrl('create', tenant: $tenant))
tests/Feature/ProviderConnections/ProviderConnectionAuthorizationTest.php:80:        ->get(ProviderConnectionResource::getUrl('view', ['record' => $connection], tenant: $tenant))
tests/Feature/ProviderConnections/ProviderConnectionAuthorizationTest.php:84:        ->get(ProviderConnectionResource::getUrl('edit', ['record' => $connection], tenant: $tenant))
tests/Feature/ProviderConnections/ProviderConnectionAuthorizationTest.php:93:        'managed_environment_id' => $tenantB->getKey(),
tests/Feature/ProviderConnections/ProviderConnectionAuthorizationTest.php:111:        ->get(ProviderConnectionResource::getUrl('edit', ['record' => $connectionB], tenant: $tenantA))
tests/Feature/ProviderConnections/ProviderConnectionAuthorizationTest.php:120:        'managed_environment_id' => $tenantB->getKey(),
tests/Feature/ProviderConnections/ProviderConnectionAuthorizationTest.php:138:        ->get(ProviderConnectionResource::getUrl('view', ['record' => $connectionB], tenant: $tenantA))
tests/Feature/Onboarding/OnboardingDraftAccessTest.php:29:        ->get(route('admin.onboarding.draft', ['onboardingDraft' => 999999]))
tests/Feature/Onboarding/OnboardingDraftAccessTest.php:60:        ->get(route('admin.onboarding.draft', ['onboardingDraft' => $draft->getKey()]))
tests/Feature/Onboarding/OnboardingDraftAccessTest.php:84:        ->get(route('admin.onboarding.draft', ['onboardingDraft' => $draft->getKey()]))
tests/Feature/Onboarding/OnboardingDraftAccessTest.php:124:        ->get(route('admin.onboarding.draft', ['onboardingDraft' => $draft->getKey()]))
tests/Feature/Onboarding/OnboardingDraftAccessTest.php:154:        ->get(route('admin.onboarding.draft', ['onboardingDraft' => $draft->getKey()]))
tests/Feature/Onboarding/OnboardingDraftAccessTest.php:176:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Onboarding/OnboardingDraftAccessTest.php:178:        'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Feature/Onboarding/OnboardingDraftAccessTest.php:185:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Onboarding/OnboardingDraftAccessTest.php:214:            'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Feature/Onboarding/OnboardingDraftAccessTest.php:224:        ->get(route('admin.onboarding.draft', ['onboardingDraft' => $draft->getKey()]));
tests/Feature/Onboarding/OnboardingDraftAccessTest.php:238:        'managed_environment_id' => '23232323-2323-2323-2323-232323232323',
tests/Feature/Onboarding/OnboardingDraftAccessTest.php:262:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Onboarding/OnboardingDraftAccessTest.php:264:        'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Feature/Onboarding/OnboardingDraftAccessTest.php:284:            'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Feature/Onboarding/OnboardingDraftAccessTest.php:313:        'managed_environment_id' => '24242424-2424-2424-2424-242424242424',
tests/Feature/Onboarding/OnboardingDraftAccessTest.php:319:        'managed_environment_id' => '25252525-2525-2525-2525-252525252525',
tests/Feature/Onboarding/OnboardingDraftAccessTest.php:338:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Onboarding/OnboardingDraftAccessTest.php:340:        'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Feature/Onboarding/OnboardingDraftAccessTest.php:347:        'managed_environment_id' => (int) $otherTenant->getKey(),
tests/Feature/Onboarding/OnboardingDraftAccessTest.php:349:        'entra_tenant_id' => (string) $otherTenant->managed_environment_id,
tests/Feature/Onboarding/OnboardingDraftAccessTest.php:361:            'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Feature/Onboarding/OnboardingDraftAccessTest.php:374:            'entra_tenant_id' => (string) $otherTenant->managed_environment_id,
tests/Feature/ProviderConnections/RecordAccessNotFoundTest.php:18:        'managed_environment_id' => (int) $tenantB->getKey(),
tests/Feature/090/AuditLoggingTest.php:30:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/090/AuditLoggingTest.php:43:            ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/090/AuditLoggingTest.php:65:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/090/AuditLoggingTest.php:80:                ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/090/AuditLoggingTest.php:97:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/090/AuditLoggingTest.php:109:                ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/Onboarding/OnboardingProviderConnectionTest.php:34:        'entra_tenant_id' => $entraTenantId,
tests/Feature/Onboarding/OnboardingProviderConnectionTest.php:43:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Onboarding/OnboardingProviderConnectionTest.php:45:        'entra_tenant_id' => $entraTenantId,
tests/Feature/Onboarding/OnboardingProviderConnectionTest.php:54:        ->where('entra_tenant_id', $entraTenantId)
tests/Feature/Onboarding/OnboardingProviderConnectionTest.php:80:        'entra_tenant_id' => $entraTenantId,
tests/Feature/Onboarding/OnboardingProviderConnectionTest.php:89:        'managed_environment_id' => '55555555-5555-5555-5555-555555555555',
tests/Feature/Onboarding/OnboardingProviderConnectionTest.php:95:        'managed_environment_id' => (int) $otherTenant->getKey(),
tests/Feature/Onboarding/OnboardingProviderConnectionTest.php:97:        'entra_tenant_id' => (string) $otherTenant->managed_environment_id,
tests/Feature/Onboarding/OnboardingProviderConnectionTest.php:102:    expect((int) $otherConnection->managed_environment_id)->not->toBe((int) $primaryTenant->getKey());
tests/Feature/Onboarding/OnboardingProviderConnectionTest.php:128:        'entra_tenant_id' => $entraTenantId,
tests/Feature/Onboarding/OnboardingProviderConnectionTest.php:135:        ->where('entra_tenant_id', $entraTenantId)
tests/Feature/Onboarding/OnboardingProviderConnectionTest.php:140:        'managed_environment_id' => '65656565-6565-6565-6565-656565656565',
tests/Feature/Onboarding/OnboardingProviderConnectionTest.php:146:        'managed_environment_id' => (int) $otherTenant->getKey(),
tests/Feature/Onboarding/OnboardingProviderConnectionTest.php:147:        'entra_tenant_id' => (string) $otherTenant->managed_environment_id,
tests/Feature/Onboarding/OnboardingProviderConnectionTest.php:156:        'managed_environment_id' => (int) $otherTenant->getKey(),
tests/Feature/Onboarding/OnboardingProviderConnectionTest.php:158:        'entra_tenant_id' => (string) $otherTenant->managed_environment_id,
tests/Feature/ProviderConnections/ProviderConnectionHealthCheckStartSurfaceTest.php:32:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/ProviderConnections/ProviderConnectionHealthCheckStartSurfaceTest.php:41:        ->where('managed_environment_id', $tenant->getKey())
tests/Feature/ProviderConnections/ProviderConnectionHealthCheckStartSurfaceTest.php:61:        'scope_identifier' => $connection->entra_tenant_id,
tests/Feature/ProviderConnections/ProviderConnectionHealthCheckStartSurfaceTest.php:62:    ])->not->toHaveKey('entra_tenant_id');
tests/Feature/ProviderConnections/ProviderConnectionHealthCheckStartSurfaceTest.php:82:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/ProviderConnections/ProviderConnectionHealthCheckStartSurfaceTest.php:93:        ->where('managed_environment_id', $tenant->getKey())
tests/Feature/ProviderConnections/ProviderConnectionHealthCheckStartSurfaceTest.php:110:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/ProviderConnections/ProviderConnectionHealthCheckStartSurfaceTest.php:122:    expect(OperationRun::query()->where('managed_environment_id', $tenant->getKey())->count())->toBe(0);
tests/Unit/ManagedEnvironment/ManagedEnvironmentContextResolverTest.php:23:        ->and($context->lastTenantId(request()))->toBe((int) $environment->getKey());
tests/Feature/ProviderConnections/ProviderConnectionHealthCheckJobTest.php:54:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/ProviderConnections/ProviderConnectionHealthCheckJobTest.php:56:        'entra_tenant_id' => fake()->uuid(),
tests/Feature/ProviderConnections/ProviderConnectionHealthCheckJobTest.php:70:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/ProviderConnections/ProviderConnectionHealthCheckJobTest.php:81:                'entra_tenant_id' => $connection->entra_tenant_id,
tests/Feature/ProviderConnections/ProviderConnectionHealthCheckJobTest.php:116:        'scope_identifier' => $connection->entra_tenant_id,
tests/Feature/ProviderConnections/ProviderConnectionHealthCheckJobTest.php:118:    ])->not->toHaveKey('entra_tenant_id');
tests/Feature/ProviderConnections/ProviderConnectionHealthCheckJobTest.php:165:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/ProviderConnections/ProviderConnectionHealthCheckJobTest.php:167:        'entra_tenant_id' => fake()->uuid(),
tests/Feature/ProviderConnections/ProviderConnectionHealthCheckJobTest.php:182:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/ProviderConnections/ProviderConnectionHealthCheckJobTest.php:193:                'entra_tenant_id' => $connection->entra_tenant_id,
tests/Feature/ProviderConnections/ProviderConnectionHealthCheckJobTest.php:278:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/ProviderConnections/ProviderConnectionHealthCheckJobTest.php:280:        'entra_tenant_id' => fake()->uuid(),
tests/Feature/ProviderConnections/ProviderConnectionHealthCheckJobTest.php:295:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/ProviderConnections/ProviderConnectionHealthCheckJobTest.php:306:                'entra_tenant_id' => $connection->entra_tenant_id,
tests/Feature/ProviderConnections/ProviderConnectionHealthCheckJobTest.php:321:        'tenant' => $connection->entra_tenant_id,
tests/Feature/ProviderConnections/ProviderConnectionHealthCheckJobTest.php:369:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/ProviderConnections/ProviderConnectionHealthCheckJobTest.php:371:        'entra_tenant_id' => fake()->uuid(),
tests/Feature/ProviderConnections/ProviderConnectionHealthCheckJobTest.php:385:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/ProviderConnections/ProviderConnectionHealthCheckJobTest.php:396:                'entra_tenant_id' => $connection->entra_tenant_id,
app/Services/Intune/RestoreDiffGenerator.php:25:        if ($backupSet->managed_environment_id !== $tenant->id) {
app/Services/Intune/RestoreDiffGenerator.php:182:            ->where('managed_environment_id', $tenant->id)
app/Services/Intune/RestoreDiffGenerator.php:188:            ->where('managed_environment_id', $tenant->id)
tests/Feature/Onboarding/OnboardingVerificationAssistTest.php:50:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Onboarding/OnboardingVerificationAssistTest.php:79:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Onboarding/OnboardingVerificationAssistTest.php:81:        'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Feature/Onboarding/OnboardingVerificationAssistTest.php:92:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Onboarding/OnboardingVerificationAssistTest.php:94:            'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Feature/Onboarding/OnboardingVerificationAssistTest.php:171:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Onboarding/OnboardingVerificationAssistTest.php:178:                'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Feature/Onboarding/OnboardingVerificationAssistTest.php:192:            'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Feature/Onboarding/OnboardingVerificationAssistTest.php:291:        ->get(route('admin.onboarding.draft', ['onboardingDraft' => (int) $draft->getKey()]))
tests/Feature/ProviderConnections/ProviderDispatchGateStartSurfaceTest.php:28:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/ProviderConnections/ProviderDispatchGateStartSurfaceTest.php:40:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/ProviderConnections/ProviderDispatchGateStartSurfaceTest.php:47:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/ProviderConnections/ProviderDispatchGateStartSurfaceTest.php:70:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/ProviderConnections/ProviderDispatchGateStartSurfaceTest.php:80:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/Navigation/RelatedNavigationResolverMemoizationTest.php:40:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Navigation/RelatedNavigationResolverMemoizationTest.php:44:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Navigation/RelatedNavigationResolverMemoizationTest.php:95:            'active_tenant_id' => (int) $tenant->getKey(),
tests/Feature/Navigation/RelatedNavigationResolverMemoizationTest.php:147:        ->get(BaselineSnapshotResource::getUrl('view', ['record' => $snapshot], panel: 'admin'))
tests/Feature/Navigation/RelatedNavigationResolverMemoizationTest.php:157:        ->get(BaselineSnapshotResource::getUrl('view', ['record' => $snapshot], panel: 'admin'))
resources/views/filament/system/pages/ops/view-run.blade.php:132:                            <x-filament::link href="{{ \App\Filament\System\Pages\Ops\Runbooks::getUrl(panel: 'system') }}">
tests/Feature/Providers/ProviderOperationCapabilityGateTest.php:19:        'managed_environment_id' => '44444444-4444-4444-4444-444444444444',
tests/Feature/Providers/ProviderOperationCapabilityGateTest.php:23:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Providers/ProviderOperationCapabilityGateTest.php:25:        'entra_tenant_id' => '44444444-4444-4444-4444-444444444444',
tests/Feature/Providers/ProviderOperationCapabilityGateTest.php:48:        'managed_environment_id' => '66666666-6666-6666-6666-666666666666',
tests/Feature/Providers/ProviderOperationCapabilityGateTest.php:52:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Providers/ProviderOperationCapabilityGateTest.php:54:        'entra_tenant_id' => '66666666-6666-6666-6666-666666666666',
tests/Feature/Providers/ProviderOperationCapabilityGateTest.php:80:        'managed_environment_id' => '55555555-5555-5555-5555-555555555555',
tests/Feature/Providers/ProviderOperationCapabilityGateTest.php:84:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Providers/ProviderOperationCapabilityGateTest.php:86:        'entra_tenant_id' => '55555555-5555-5555-5555-555555555555',
tests/Feature/ProviderConnections/ManageCapabilityEnforcementTest.php:12:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/ProviderConnections/ManageCapabilityEnforcementTest.php:17:        ->get('/admin/provider-connections/create?managed_environment_id='.(string) $tenant->external_id)
tests/Feature/Spec080WorkspaceManagedTenantAdminMigrationTest.php:62:        ->toContain('/admin/provider-connections?managed_environment_id='.$tenant->external_id)
tests/Feature/Spec080WorkspaceManagedTenantAdminMigrationTest.php:92:        'managed_environment_id' => '11111111-1111-1111-1111-111111111111',
tests/Feature/Spec080WorkspaceManagedTenantAdminMigrationTest.php:163:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Spec080WorkspaceManagedTenantAdminMigrationTest.php:169:        ->get('/admin/provider-connections?managed_environment_id='.$tenant->external_id)
tests/Feature/Spec080WorkspaceManagedTenantAdminMigrationTest.php:175:        ->get('/admin/provider-connections/'.$connection->getKey().'/edit?managed_environment_id='.$tenant->external_id)
tests/Feature/Spec080WorkspaceManagedTenantAdminMigrationTest.php:185:        ->get('/admin/provider-connections?managed_environment_id='.$tenant->external_id)
tests/Feature/Spec080WorkspaceManagedTenantAdminMigrationTest.php:191:        ->get('/admin/provider-connections/create?managed_environment_id='.$tenant->external_id)
tests/Feature/Spec080WorkspaceManagedTenantAdminMigrationTest.php:222:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/Onboarding/ProductTelemetryOnboardingCaptureTest.php:25:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Onboarding/ProductTelemetryOnboardingCaptureTest.php:29:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Onboarding/ProductTelemetryOnboardingCaptureTest.php:47:            'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Feature/Onboarding/ProductTelemetryOnboardingCaptureTest.php:65:        ->and($event->managed_environment_id)->toBe((int) $tenant->getKey())
tests/Feature/Onboarding/ProductTelemetryOnboardingCaptureTest.php:87:            'entra_tenant_id' => fake()->uuid(),
tests/Feature/Providers/ProviderBoundaryHardeningTest.php:17:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/Providers/ProviderBoundaryHardeningTest.php:20:        'entra_tenant_id' => 'entra-tenant-id',
tests/Feature/Providers/ProviderBoundaryHardeningTest.php:88:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/Providers/ProviderBoundaryHardeningTest.php:91:        'entra_tenant_id' => 'default-entra-tenant-id',
tests/Feature/ProviderConnections/ProviderConnectionNeutralitySpec238Test.php:18:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/ProviderConnections/ProviderConnectionNeutralitySpec238Test.php:20:        'entra_tenant_id' => '44444444-4444-4444-4444-444444444444',
tests/Feature/ProviderConnections/ProviderConnectionNeutralitySpec238Test.php:24:        ->get(ProviderConnectionResource::getUrl('create', ['managed_environment_id' => $tenant->external_id], panel: 'admin'))
tests/Feature/ProviderConnections/ProviderConnectionNeutralitySpec238Test.php:31:        ->get(ProviderConnectionResource::getUrl('edit', ['record' => $connection, 'managed_environment_id' => $tenant->external_id], panel: 'admin'))
tests/Feature/ProviderConnections/ProviderConnectionNeutralitySpec238Test.php:43:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/ProviderConnections/ProviderConnectionNeutralitySpec238Test.php:45:        'entra_tenant_id' => '55555555-5555-5555-5555-555555555555',
tests/Feature/ProviderConnections/ProviderConnectionNeutralitySpec238Test.php:61:        ->and($visibleColumnNames)->not->toContain('entra_tenant_id')
tests/Feature/ProviderConnections/ProviderConnectionNeutralitySpec238Test.php:63:        ->and($table->getColumn('entra_tenant_id')?->getLabel())->toBe('Microsoft tenant ID');
tests/Feature/ProviderConnections/ProviderConnectionNeutralitySpec238Test.php:66:        ->get(ProviderConnectionResource::getUrl('view', ['record' => $connection, 'managed_environment_id' => $tenant->external_id], panel: 'admin'))
tests/Feature/ProviderConnections/ProviderConnectionNeutralitySpec238Test.php:87:            'entra_tenant_id' => '',
tests/Feature/ProviderConnections/ProviderConnectionNeutralitySpec238Test.php:91:        ->assertHasFormErrors(['entra_tenant_id' => 'required']);
tests/Feature/ProviderConnections/ProviderConnectionNeutralitySpec238Test.php:99:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/ProviderConnections/ProviderConnectionNeutralitySpec238Test.php:102:        'entra_tenant_id' => '66666666-6666-6666-6666-666666666666',
tests/Feature/RestoreRunWizardMetadataTest.php:21:        'managed_environment_id' => 'tenant-1',
tests/Feature/RestoreRunWizardMetadataTest.php:31:        'managed_environment_id' => $tenant->id,
tests/Feature/RestoreRunWizardMetadataTest.php:38:        'managed_environment_id' => $tenant->id,
tests/Feature/Providers/ProviderConnectionTargetScopeNeutralityTest.php:24:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Providers/ProviderConnectionTargetScopeNeutralityTest.php:27:            'entra_tenant_id' => '11111111-1111-1111-1111-111111111111',
tests/Feature/Providers/ProviderConnectionTargetScopeNeutralityTest.php:45:        ->and($resolution->targetScope?->toArray())->not->toHaveKey('entra_tenant_id')
tests/Feature/Providers/ProviderConnectionTargetScopeNeutralityTest.php:53:        ->and($summaryPayload['target_scope'])->not->toHaveKey('entra_tenant_id')
tests/Feature/Providers/ProviderConnectionTargetScopeNeutralityTest.php:55:            'detail_key' => 'microsoft_tenant_id',
tests/Feature/Providers/ProviderConnectionTargetScopeNeutralityTest.php:66:        'managed_environment_id' => '66666666-6666-6666-6666-666666666666',
tests/Feature/Providers/ProviderConnectionTargetScopeNeutralityTest.php:74:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Providers/ProviderConnectionTargetScopeNeutralityTest.php:77:            'entra_tenant_id' => '',
tests/Feature/Providers/ProviderConnectionTargetScopeNeutralityTest.php:94:            'detail_key' => 'microsoft_tenant_id',
tests/Feature/Providers/ProviderConnectionTargetScopeNeutralityTest.php:97:        ->and($summaryPayload['target_scope'])->not->toHaveKey('entra_tenant_id');
tests/Feature/Onboarding/OnboardingVerificationTest.php:45:        'entra_tenant_id' => $entraTenantId,
tests/Feature/Onboarding/OnboardingVerificationTest.php:60:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/Onboarding/OnboardingVerificationTest.php:71:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/Onboarding/OnboardingVerificationTest.php:76:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/Onboarding/OnboardingVerificationTest.php:96:        ->where('entra_tenant_id', $entraTenantId)
tests/Feature/Onboarding/OnboardingVerificationTest.php:131:        'entra_tenant_id' => $entraTenantId,
tests/Feature/Onboarding/OnboardingVerificationTest.php:140:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Onboarding/OnboardingVerificationTest.php:142:        'entra_tenant_id' => $entraTenantId,
tests/Feature/Onboarding/OnboardingVerificationTest.php:152:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/Onboarding/OnboardingVerificationTest.php:210:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Onboarding/OnboardingVerificationTest.php:212:        'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Feature/Onboarding/OnboardingVerificationTest.php:224:            'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Feature/Onboarding/OnboardingVerificationTest.php:241:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/Onboarding/OnboardingVerificationTest.php:269:        'managed_environment_id' => $entraTenantId,
tests/Feature/Onboarding/OnboardingVerificationTest.php:279:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Onboarding/OnboardingVerificationTest.php:281:        'entra_tenant_id' => $entraTenantId,
tests/Feature/Onboarding/OnboardingVerificationTest.php:288:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Onboarding/OnboardingVerificationTest.php:295:                'entra_tenant_id' => $entraTenantId,
tests/Feature/Onboarding/OnboardingVerificationTest.php:316:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Onboarding/OnboardingVerificationTest.php:317:        'entra_tenant_id' => $entraTenantId,
tests/Feature/Onboarding/OnboardingVerificationTest.php:364:        'managed_environment_id' => $entraTenantId,
tests/Feature/Onboarding/OnboardingVerificationTest.php:374:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Onboarding/OnboardingVerificationTest.php:376:        'entra_tenant_id' => $entraTenantId,
tests/Feature/Onboarding/OnboardingVerificationTest.php:383:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Onboarding/OnboardingVerificationTest.php:393:                'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Onboarding/OnboardingVerificationTest.php:395:                'entra_tenant_id' => $entraTenantId,
tests/Feature/Onboarding/OnboardingVerificationTest.php:411:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Onboarding/OnboardingVerificationTest.php:413:            'entra_tenant_id' => $entraTenantId,
tests/Feature/Onboarding/OnboardingVerificationTest.php:421:            'tenant_scope' => 'passed',
tests/Feature/Onboarding/OnboardingVerificationTest.php:433:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Onboarding/OnboardingVerificationTest.php:434:        'entra_tenant_id' => $entraTenantId,
tests/Feature/Onboarding/OnboardingVerificationTest.php:476:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Onboarding/OnboardingVerificationTest.php:483:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Onboarding/OnboardingVerificationTest.php:484:        'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Feature/Onboarding/OnboardingVerificationTest.php:504:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Onboarding/OnboardingVerificationTest.php:530:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Onboarding/OnboardingVerificationTest.php:574:        'entra_tenant_id' => $entraTenantId,
tests/Feature/Onboarding/OnboardingVerificationTest.php:590:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Onboarding/OnboardingVerificationTest.php:592:        'entra_tenant_id' => $entraTenantId,
tests/Feature/Onboarding/OnboardingVerificationTest.php:601:        ->where('entra_tenant_id', $entraTenantId)
tests/Feature/Onboarding/OnboardingVerificationTest.php:633:        'entra_tenant_id' => $entraTenantId,
tests/Feature/Onboarding/OnboardingVerificationTest.php:642:        'managed_environment_id' => '18181818-1818-1818-1818-181818181818',
tests/Feature/Onboarding/OnboardingVerificationTest.php:648:        'managed_environment_id' => (int) $otherTenant->getKey(),
tests/Feature/Onboarding/OnboardingVerificationTest.php:650:        'entra_tenant_id' => (string) $otherTenant->managed_environment_id,
tests/Feature/Onboarding/OnboardingVerificationTest.php:657:        'managed_environment_id' => (int) $otherTenant->getKey(),
tests/Feature/Onboarding/OnboardingVerificationTest.php:658:        'entra_tenant_id' => (string) $otherTenant->managed_environment_id,
tests/Feature/Onboarding/OnboardingVerificationTest.php:674:        ->where('managed_environment_id', (int) $otherTenant->getKey())
tests/Feature/Onboarding/OnboardingVerificationTest.php:678:            ->where('managed_environment_id', (int) $primaryTenant->getKey())
tests/Feature/Onboarding/OnboardingVerificationTest.php:699:        'managed_environment_id' => $entraTenantId,
tests/Feature/Onboarding/OnboardingVerificationTest.php:709:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Onboarding/OnboardingVerificationTest.php:711:        'entra_tenant_id' => $entraTenantId,
tests/Feature/Onboarding/OnboardingVerificationTest.php:718:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Onboarding/OnboardingVerificationTest.php:720:        'entra_tenant_id' => $entraTenantId,
tests/Feature/Onboarding/OnboardingVerificationTest.php:727:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Onboarding/OnboardingVerificationTest.php:734:                'entra_tenant_id' => $entraTenantId,
tests/Feature/Onboarding/OnboardingVerificationTest.php:741:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Onboarding/OnboardingVerificationTest.php:742:        'entra_tenant_id' => $entraTenantId,
tests/Feature/PolicySyncServiceReportTest.php:25:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/PolicySyncServiceReportTest.php:29:        'entra_tenant_id' => (string) ($tenant->managed_environment_id ?: 'tenant-'.$tenant->getKey()),
tests/Feature/PolicySyncServiceReportTest.php:84:    expect(Policy::query()->where('managed_environment_id', $tenant->id)->count())->toBe(1);
tests/Feature/Providers/UnsupportedProviderBoundaryPathTest.php:15:        'entra_tenant_id' => 'entra-tenant-id',
tests/Feature/Providers/UnsupportedProviderBoundaryPathTest.php:27:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/Providers/UnsupportedProviderBoundaryPathTest.php:30:        'entra_tenant_id' => 'entra-tenant-id',
app/Services/Intune/RestoreRiskChecker.php:31:        if ($backupSet->managed_environment_id !== $tenant->id) {
app/Services/Intune/RestoreRiskChecker.php:445:            ->where('managed_environment_id', $tenant->id)
app/Services/Intune/RestoreRiskChecker.php:533:            ->where('managed_environment_id', $tenant->id)
app/Services/Auth/ManagedEnvironmentAccessScopeResolver.php:227:            ->join('managed_environments', 'managed_environments.id', '=', 'managed_environment_memberships.managed_environment_id')
app/Services/Auth/ManagedEnvironmentAccessScopeResolver.php:230:            ->pluck('managed_environment_memberships.managed_environment_id')
tests/Unit/GraphContractFallbackTest.php:19:    config()->set('graph.managed_environment_id', 'tenant');
tests/Feature/Onboarding/OnboardingVerificationClustersTest.php:36:        'managed_environment_id' => $entraTenantId,
tests/Feature/Onboarding/OnboardingVerificationClustersTest.php:92:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Onboarding/OnboardingVerificationClustersTest.php:98:                'entra_tenant_id' => $entraTenantId,
tests/Feature/Onboarding/OnboardingVerificationClustersTest.php:107:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Onboarding/OnboardingVerificationClustersTest.php:108:        'entra_tenant_id' => $entraTenantId,
tests/Feature/Onboarding/OnboardingVerificationClustersTest.php:147:        'managed_environment_id' => $entraTenantId,
tests/Feature/Onboarding/OnboardingVerificationClustersTest.php:160:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Onboarding/OnboardingVerificationClustersTest.php:166:                'entra_tenant_id' => $entraTenantId,
tests/Feature/Onboarding/OnboardingVerificationClustersTest.php:175:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Onboarding/OnboardingVerificationClustersTest.php:176:        'entra_tenant_id' => $entraTenantId,
tests/Feature/Onboarding/OnboardingVerificationClustersTest.php:212:        'managed_environment_id' => $entraTenantId,
tests/Feature/Onboarding/OnboardingVerificationClustersTest.php:225:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Onboarding/OnboardingVerificationClustersTest.php:231:                'entra_tenant_id' => $entraTenantId,
tests/Feature/Onboarding/OnboardingVerificationClustersTest.php:242:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Onboarding/OnboardingVerificationClustersTest.php:248:                'entra_tenant_id' => $entraTenantId,
tests/Feature/Onboarding/OnboardingVerificationClustersTest.php:256:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Onboarding/OnboardingVerificationClustersTest.php:257:        'entra_tenant_id' => $entraTenantId,
tests/Feature/Onboarding/OnboardingVerificationClustersTest.php:296:        'managed_environment_id' => 'cccccccc-cccc-cccc-cccc-cccccccccccc',
tests/Feature/Onboarding/OnboardingVerificationClustersTest.php:307:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Onboarding/OnboardingVerificationClustersTest.php:309:        'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Feature/Onboarding/OnboardingVerificationClustersTest.php:329:                    'url' => ProviderConnectionResource::getUrl(
tests/Feature/Onboarding/OnboardingVerificationClustersTest.php:341:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Onboarding/OnboardingVerificationClustersTest.php:347:                'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Feature/Onboarding/OnboardingVerificationClustersTest.php:356:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Onboarding/OnboardingVerificationClustersTest.php:357:        'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Feature/Onboarding/OnboardingVerificationClustersTest.php:377:        ->assertDontSee(ProviderConnectionResource::getUrl(
tests/Feature/Providers/ProviderOperationStartGateTargetScopeContextTest.php:19:        'managed_environment_id' => '44444444-4444-4444-4444-444444444444',
tests/Feature/Providers/ProviderOperationStartGateTargetScopeContextTest.php:23:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Providers/ProviderOperationStartGateTargetScopeContextTest.php:25:        'entra_tenant_id' => '44444444-4444-4444-4444-444444444444',
tests/Feature/Providers/ProviderOperationStartGateTargetScopeContextTest.php:48:        ->and($context['target_scope'] ?? [])->not->toHaveKey('entra_tenant_id')
tests/Feature/Providers/ProviderOperationStartGateTargetScopeContextTest.php:50:            'detail_key' => 'microsoft_tenant_id',
tests/Feature/Providers/ProviderOperationStartGateTargetScopeContextTest.php:58:        'managed_environment_id' => '55555555-5555-5555-5555-555555555555',
tests/Feature/Providers/ProviderOperationStartGateTargetScopeContextTest.php:84:        ->and($context['target_scope'] ?? [])->not->toHaveKey('entra_tenant_id')
tests/Feature/Providers/ProviderOperationStartGateTargetScopeContextTest.php:88:        ->and($identity)->not->toHaveKey('entra_tenant_id')
tests/Feature/Providers/ProviderOperationStartGateTargetScopeContextTest.php:98:        'managed_environment_id' => '88888888-8888-8888-8888-888888888888',
tests/Feature/Providers/ProviderOperationStartGateTargetScopeContextTest.php:102:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Providers/ProviderOperationStartGateTargetScopeContextTest.php:104:        'entra_tenant_id' => '',
tests/Feature/Providers/ProviderOperationStartGateTargetScopeContextTest.php:126:            'detail_key' => 'microsoft_tenant_id',
tests/Feature/Providers/ProviderOperationStartGateTargetScopeContextTest.php:129:        ->and($context['target_scope'] ?? [])->not->toHaveKey('entra_tenant_id');
tests/Feature/BulkDeleteRestoreRunsTest.php:17:        'managed_environment_id' => $tenant->id,
tests/Feature/BulkDeleteRestoreRunsTest.php:25:            'managed_environment_id' => $tenant->id,
tests/Feature/BulkDeleteRestoreRunsTest.php:41:        ->where('managed_environment_id', $tenant->id)
tests/Unit/GraphClientScopeTest.php:15:    Config::set('graph.managed_environment_id', 'tenant-scope');
tests/Unit/GraphClientScopeTest.php:36:        if (! str_contains($request->url(), '/oauth2/v2.0/token')) {
tests/Feature/Onboarding/ManagedEnvironmentOnboardingProviderConnectionScopeTest.php:19:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Onboarding/ManagedEnvironmentOnboardingProviderConnectionScopeTest.php:22:        'entra_tenant_id' => '77777777-7777-7777-7777-777777777777',
tests/Feature/Onboarding/ManagedEnvironmentOnboardingProviderConnectionScopeTest.php:29:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Onboarding/ManagedEnvironmentOnboardingProviderConnectionScopeTest.php:30:        'entra_tenant_id' => '77777777-7777-7777-7777-777777777777',
tests/Feature/Onboarding/ManagedEnvironmentOnboardingProviderConnectionScopeTest.php:58:        ->and($summary['target_scope'])->not->toHaveKey('entra_tenant_id')
tests/Feature/Providers/ProviderIdentityResolutionNeutralityTest.php:17:    config()->set('graph.managed_environment_id', 'platform-home-tenant-id');
tests/Feature/Providers/ProviderIdentityResolutionNeutralityTest.php:23:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Providers/ProviderIdentityResolutionNeutralityTest.php:25:        'entra_tenant_id' => '22222222-2222-2222-2222-222222222222',
tests/Feature/Providers/ProviderIdentityResolutionNeutralityTest.php:40:            fn (array $detail): bool => ($detail['detail_key'] ?? null) === 'microsoft_tenant_id'
tests/Feature/Providers/ProviderIdentityResolutionNeutralityTest.php:47:        'entra_tenant_id' => '33333333-3333-3333-3333-333333333333',
tests/Feature/Providers/ProviderIdentityResolutionNeutralityTest.php:72:    config()->set('graph.managed_environment_id', 'platform-home-tenant-id');
tests/Feature/Providers/ProviderIdentityResolutionNeutralityTest.php:75:        'managed_environment_id' => '77777777-7777-7777-7777-777777777777',
tests/Feature/Providers/ProviderIdentityResolutionNeutralityTest.php:80:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Providers/ProviderIdentityResolutionNeutralityTest.php:82:        'entra_tenant_id' => '',
tests/Feature/Providers/ProviderIdentityResolutionNeutralityTest.php:91:            fn (array $detail): bool => ($detail['detail_key'] ?? null) === 'microsoft_tenant_id'
tests/Feature/OpsUx/BackupSetDeleteBulkJobTest.php:19:        'managed_environment_id' => $tenant->id,
tests/Feature/OpsUx/BackupSetDeleteBulkJobTest.php:26:                'entra_tenant_id' => (string) ($tenant->managed_environment_id ?? $tenant->external_id),
tests/Feature/OpsUx/BackupSetDeleteBulkJobTest.php:56:        'managed_environment_id' => $tenant->id,
tests/Feature/OpsUx/BackupSetDeleteBulkJobTest.php:61:        'managed_environment_id' => $tenant->id,
tests/Feature/OpsUx/BackupSetDeleteBulkJobTest.php:67:        'managed_environment_id' => $tenant->id,
tests/Feature/OpsUx/BackupSetDeleteBulkJobTest.php:78:                'entra_tenant_id' => (string) ($tenant->managed_environment_id ?? $tenant->external_id),
tests/Feature/Onboarding/OnboardingProviderConnectionPlatformDefaultTest.php:39:        'entra_tenant_id' => $entraTenantId,
tests/Feature/Onboarding/OnboardingProviderConnectionPlatformDefaultTest.php:59:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/Onboarding/OnboardingProviderConnectionPlatformDefaultTest.php:61:        ->where('entra_tenant_id', $entraTenantId)
tests/Feature/Onboarding/OnboardingProviderConnectionPlatformDefaultTest.php:72:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/Providers/MicrosoftGraphOptionsResolverTest.php:35:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/Providers/MicrosoftGraphOptionsResolverTest.php:59:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/Providers/MicrosoftGraphOptionsResolverTest.php:62:        'entra_tenant_id' => 'entra-tenant-id',
app/Services/Auth/WorkspaceMembershipManager.php:202:                        'managed_environment_id',
tests/Feature/Providers/ProviderCapabilityEvaluationTest.php:44:                    'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Providers/ProviderCapabilityEvaluationTest.php:62:        'managed_environment_id' => '11111111-1111-1111-1111-111111111111',
tests/Feature/Providers/ProviderCapabilityEvaluationTest.php:66:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Providers/ProviderCapabilityEvaluationTest.php:67:        'entra_tenant_id' => '11111111-1111-1111-1111-111111111111',
tests/Feature/Providers/ProviderCapabilityEvaluationTest.php:83:        'managed_environment_id' => '22222222-2222-2222-2222-222222222222',
tests/Feature/Providers/ProviderCapabilityEvaluationTest.php:87:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Providers/ProviderCapabilityEvaluationTest.php:88:        'entra_tenant_id' => '22222222-2222-2222-2222-222222222222',
tests/Feature/Providers/ProviderCapabilityEvaluationTest.php:109:        'managed_environment_id' => '33333333-3333-3333-3333-333333333333',
tests/Feature/Providers/ProviderCapabilityEvaluationTest.php:113:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Providers/ProviderCapabilityEvaluationTest.php:114:        'entra_tenant_id' => '33333333-3333-3333-3333-333333333333',
tests/Feature/Onboarding/OnboardingRbacSemanticsTest.php:72:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Onboarding/OnboardingRbacSemanticsTest.php:74:        'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Feature/Onboarding/OnboardingRbacSemanticsTest.php:81:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Onboarding/OnboardingRbacSemanticsTest.php:83:        'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Feature/Onboarding/OnboardingRbacSemanticsTest.php:95:            'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Feature/DeviceComplianceScriptPolicyTypeTest.php:97:        'managed_environment_id' => 'tenant-1',
tests/Feature/DeviceComplianceScriptPolicyTypeTest.php:103:        'managed_environment_id' => $tenant->id,
tests/Feature/DeviceComplianceScriptPolicyTypeTest.php:110:        'managed_environment_id' => $tenant->id,
tests/Feature/DeviceComplianceScriptPolicyTypeTest.php:116:        'managed_environment_id' => $tenant->id,
app/Services/Auth/CapabilityResolver.php:116:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/BulkForceDeletePolicyVersionsTest.php:17:    $policy = Policy::factory()->create(['managed_environment_id' => $tenant->id]);
tests/Feature/BulkForceDeletePolicyVersionsTest.php:19:        'managed_environment_id' => $tenant->id,
tests/Feature/BulkForceDeletePolicyVersionsTest.php:35:        ->where('managed_environment_id', $tenant->id)
tests/Feature/BulkRestorePolicyVersionsTest.php:17:    $policy = Policy::factory()->create(['managed_environment_id' => $tenant->id]);
tests/Feature/BulkRestorePolicyVersionsTest.php:19:        'managed_environment_id' => $tenant->id,
tests/Feature/BulkRestorePolicyVersionsTest.php:33:        ->where('managed_environment_id', $tenant->id)
tests/Feature/OpsUx/OperateHubShellTest.php:27:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/OpsUx/OperateHubShellTest.php:46:            ->get(route('admin.operations.index', ['workspace' => (int) $run->workspace_id]))
tests/Feature/OpsUx/OperateHubShellTest.php:53:            ->get(route('admin.operations.view', [
tests/Feature/OpsUx/OperateHubShellTest.php:64:            ->get(AlertsCluster::getUrl(panel: 'admin'))
tests/Feature/OpsUx/OperateHubShellTest.php:71:            ->get(route('admin.monitoring.audit-log'))
tests/Feature/OpsUx/OperateHubShellTest.php:85:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/OpsUx/OperateHubShellTest.php:97:    ])->get(route('admin.operations.view', [
tests/Feature/OpsUx/OperateHubShellTest.php:105:        ->assertSee(EnvironmentDashboard::getUrl(tenant: $tenant), false)
tests/Feature/OpsUx/OperateHubShellTest.php:111:        ->get(AlertsCluster::getUrl(panel: 'admin'))
tests/Feature/OpsUx/OperateHubShellTest.php:122:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/OpsUx/OperateHubShellTest.php:138:    ])->get(route('admin.operations.view', [
tests/Feature/OpsUx/OperateHubShellTest.php:146:        ->assertSee(EnvironmentDashboard::getUrl(tenant: $tenant), false)
tests/Feature/OpsUx/OperateHubShellTest.php:159:        'managed_environment_id' => (int) $entitledTenant->getKey(),
tests/Feature/OpsUx/OperateHubShellTest.php:174:    ])->get(route('admin.operations.view', [
tests/Feature/OpsUx/OperateHubShellTest.php:190:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/OpsUx/OperateHubShellTest.php:202:    ])->get(route('admin.operations.index', ['workspace' => (int) $tenant->workspace_id]))
tests/Feature/OpsUx/OperateHubShellTest.php:210:    ])->get(route('admin.operations.view', [
tests/Feature/OpsUx/OperateHubShellTest.php:227:        ->get(route('admin.operations.index', ['workspace' => (int) $workspace->getKey()]))
tests/Feature/OpsUx/OperateHubShellTest.php:243:        ->get(EnvironmentDashboard::getUrl(tenant: $tenant))
tests/Feature/OpsUx/OperateHubShellTest.php:254:        ->get(RestoreRunResource::getUrl('create', tenant: $tenant))
tests/Feature/OpsUx/OperateHubShellTest.php:258:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/OpsUx/OperateHubShellTest.php:274:    ])->get(route('admin.operations.index', ['workspace' => $workspaceId]));
tests/Feature/OpsUx/OperateHubShellTest.php:318:        'managed_environment_id' => (int) $runTenant->getKey(),
tests/Feature/OpsUx/OperateHubShellTest.php:332:    $request = Request::create(route('admin.operations.view', [
tests/Feature/OpsUx/OperateHubShellTest.php:367:        'managed_environment_id' => (int) $runTenant->getKey(),
tests/Feature/OpsUx/OperateHubShellTest.php:381:    $request = Request::create(route('admin.operations.view', [
tests/Feature/OpsUx/OperateHubShellTest.php:446:    $request = Request::create(EnvironmentRequiredPermissions::getUrl([
tests/Feature/OpsUx/OperateHubShellTest.php:487:    $request = Request::create(EnvironmentDashboard::getUrl(tenant: $routedTenant));
tests/Feature/OpsUx/OperateHubShellTest.php:506:    ])->get(route('admin.operations.index', ['workspace' => (int) $tenant->workspace_id]))
tests/Feature/OpsUx/OperateHubShellTest.php:518:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/OpsUx/OperateHubShellTest.php:535:        ->get(route('admin.operations.index', ['workspace' => (int) $tenant->workspace_id]))
tests/Feature/OpsUx/OperateHubShellTest.php:539:        ->get(route('admin.operations.view', [
tests/Feature/OpsUx/OperateHubShellTest.php:547:        ->get(AlertsCluster::getUrl(panel: 'admin'))
tests/Feature/OpsUx/OperateHubShellTest.php:551:        ->get(route('admin.monitoring.audit-log'))
tests/Feature/OpsUx/OperateHubShellTest.php:565:    ])->get(AlertRuleResource::getUrl(panel: 'admin'))
tests/Feature/OpsUx/OperateHubShellTest.php:580:    ])->get(AlertDestinationResource::getUrl(panel: 'admin'))
tests/Feature/OpsUx/OperateHubShellTest.php:587:it('suppresses tenant indicator on alert rules list with lastTenantId fallback', function (): void {
tests/Feature/OpsUx/OperateHubShellTest.php:599:    ])->get(AlertRuleResource::getUrl(panel: 'admin'))
tests/Feature/OpsUx/OperateHubShellTest.php:625:        'managed_environment_id' => (int) $runTenant->getKey(),
tests/Feature/OpsUx/OperateHubShellTest.php:638:    ])->get(route('admin.operations.view', [
tests/Feature/Onboarding/OnboardingVerificationV1_5UxTest.php:40:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Onboarding/OnboardingVerificationV1_5UxTest.php:46:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Onboarding/OnboardingVerificationV1_5UxTest.php:47:        'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Feature/Onboarding/OnboardingVerificationV1_5UxTest.php:66:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Onboarding/OnboardingVerificationV1_5UxTest.php:77:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/Onboarding/OnboardingVerificationV1_5UxTest.php:95:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Onboarding/OnboardingVerificationV1_5UxTest.php:107:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/Onboarding/OnboardingVerificationV1_5UxTest.php:146:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Onboarding/OnboardingVerificationV1_5UxTest.php:216:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Onboarding/OnboardingVerificationV1_5UxTest.php:228:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Onboarding/OnboardingVerificationV1_5UxTest.php:238:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Onboarding/OnboardingVerificationV1_5UxTest.php:239:        'entra_tenant_id' => (string) $tenant->managed_environment_id,
app/Services/Auth/ManagedEnvironmentMembershipManager.php:56:                ->where('managed_environment_id', $tenant->getKey())
app/Services/Auth/ManagedEnvironmentMembershipManager.php:72:                'managed_environment_id' => (int) $tenant->getKey(),
app/Services/Auth/ManagedEnvironmentMembershipManager.php:119:            if ($membership->managed_environment_id !== (int) $tenant->getKey()) {
app/Services/Intune/VersionService.php:69:                        'managed_environment_id' => $policy->managed_environment_id,
tests/Feature/RestoreAuditLoggingTest.php:19:        'managed_environment_id' => 'tenant-audit',
tests/Feature/RestoreAuditLoggingTest.php:27:        'managed_environment_id' => $tenant->id,
tests/Feature/RestoreAuditLoggingTest.php:34:        'managed_environment_id' => $tenant->id,
tests/Feature/RestoreAuditLoggingTest.php:73:        ->where('managed_environment_id', $tenant->id)
tests/Feature/OpsUx/AdapterRunReconcilerTest.php:15:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/OpsUx/AdapterRunReconcilerTest.php:19:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/OpsUx/AdapterRunReconcilerTest.php:42:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/OpsUx/AdapterRunReconcilerTest.php:59:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/OpsUx/AdapterRunReconcilerTest.php:89:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/OpsUx/AdapterRunReconcilerTest.php:93:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/OpsUx/AdapterRunReconcilerTest.php:104:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/OpsUx/AdapterRunReconcilerTest.php:119:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/OpsUx/AdapterRunReconcilerTest.php:128:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/OpsUx/AdapterRunReconcilerTest.php:142:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/OpsUx/AdapterRunReconcilerTest.php:146:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/OpsUx/AdapterRunReconcilerTest.php:159:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/OpsUx/AdapterRunReconcilerTest.php:172:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Unit/Factories/OperationRunFactoryTest.php:15:    expect($run->managed_environment_id)->not->toBeNull()
tests/Unit/Factories/OperationRunFactoryTest.php:38:    expect($run->managed_environment_id)->toBeNull()
tests/Feature/Onboarding/ManagedEnvironmentOnboardingCapabilityAssistTest.php:18:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Onboarding/ManagedEnvironmentOnboardingCapabilityAssistTest.php:19:        'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Feature/Audit/ProviderConnectionConsentAuditTest.php:22:        'managed_environment_id' => 'tenant-consent-start',
tests/Feature/Audit/ProviderConnectionConsentAuditTest.php:31:        ->get(route('admin.consent.start', ['tenant' => $tenant->managed_environment_id]))
tests/Feature/Audit/ProviderConnectionConsentAuditTest.php:35:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/Audit/ProviderConnectionConsentAuditTest.php:40:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/Audit/ProviderConnectionConsentAuditTest.php:57:        'managed_environment_id' => 'tenant-consent-result',
tests/Feature/Audit/ProviderConnectionConsentAuditTest.php:61:    $this->get(route('admin.consent.callback', [
tests/Feature/Audit/ProviderConnectionConsentAuditTest.php:62:        'tenant' => $tenant->managed_environment_id,
tests/Feature/Audit/ProviderConnectionConsentAuditTest.php:67:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/Audit/ProviderConnectionConsentAuditTest.php:72:        ->where('managed_environment_id', (int) $tenant->getKey())
app/Services/Auth/ManagedEnvironmentDiagnosticsService.php:26:            ->where('managed_environment_id', (int) $tenant->getKey())
app/Services/Auth/ManagedEnvironmentDiagnosticsService.php:35:                ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/PolicySyncServiceTest.php:24:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/PolicySyncServiceTest.php:28:        'entra_tenant_id' => (string) ($tenant->managed_environment_id ?: 'tenant-'.$tenant->getKey()),
tests/Feature/PolicySyncServiceTest.php:47:        'managed_environment_id' => $tenant->id,
tests/Feature/PolicySyncServiceTest.php:147:    expect(Policy::query()->where('managed_environment_id', $tenant->id)->where('policy_type', 'windowsDriverUpdateProfile')->count())
tests/Feature/PolicySyncServiceTest.php:196:    expect(Policy::query()->where('managed_environment_id', $tenant->id)->where('policy_type', 'managedDeviceAppConfiguration')->count())
tests/Feature/PolicySyncServiceTest.php:270:    expect(Policy::query()->where('managed_environment_id', $tenant->id)->where('policy_type', 'settingsCatalogPolicy')->count())
tests/Feature/PolicySyncServiceTest.php:273:    expect(Policy::query()->where('managed_environment_id', $tenant->id)->where('policy_type', 'endpointSecurityPolicy')->count())
tests/Feature/PolicySyncServiceTest.php:276:    expect(Policy::query()->where('managed_environment_id', $tenant->id)->where('policy_type', 'securityBaselinePolicy')->count())
tests/Feature/PolicySyncServiceTest.php:284:        'managed_environment_id' => $tenant->id,
tests/Feature/PolicySyncServiceTest.php:293:        'managed_environment_id' => $tenant->id,
tests/Feature/PolicySyncServiceTest.php:339:        ->where('managed_environment_id', $tenant->id)
tests/Feature/PolicySyncServiceTest.php:346:        ->where('managed_environment_id', $tenant->id)
tests/Feature/PolicySyncServiceTest.php:354:        ->where('managed_environment_id', $tenant->id)
tests/Feature/OpsUx/NonLeakageWorkspaceOperationsTest.php:33:        'managed_environment_id' => (int) $tenantB->getKey(),
tests/Feature/OpsUx/NonLeakageWorkspaceOperationsTest.php:41:        ->get(route('admin.operations.view', [
tests/Feature/Audit/ProviderCredentialAuditSpec081Test.php:17:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Audit/ProviderCredentialAuditSpec081Test.php:33:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/Audit/ProviderCredentialAuditSpec081Test.php:53:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Audit/ProviderCredentialAuditSpec081Test.php:74:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/Audit/ProviderCredentialAuditSpec081Test.php:91:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Audit/ProviderCredentialAuditSpec081Test.php:115:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/Audit/ProviderCredentialAuditSpec081Test.php:132:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Audit/ProviderCredentialAuditSpec081Test.php:150:        ->where('managed_environment_id', (int) $tenant->getKey())
app/Services/PortfolioCompare/CrossEnvironmentPromotionExecutionService.php:63:                        'source_environment_id' => (int) $selection->sourceEnvironment->getKey(),
app/Services/PortfolioCompare/CrossEnvironmentPromotionExecutionService.php:64:                        'target_environment_id' => (int) $selection->targetEnvironment->getKey(),
app/Services/PortfolioCompare/CrossEnvironmentPromotionExecutionService.php:90:            'source_environment_id' => (int) $selection->sourceEnvironment->getKey(),
app/Services/PortfolioCompare/CrossEnvironmentPromotionExecutionService.php:92:            'target_environment_id' => (int) $selection->targetEnvironment->getKey(),
app/Services/PortfolioCompare/CrossEnvironmentPromotionExecutionService.php:99:                'managed_environment_id' => (int) $selection->targetEnvironment->getKey(),
app/Services/PortfolioCompare/CrossEnvironmentPromotionExecutionService.php:101:                'entra_tenant_id' => $providerConnection instanceof ProviderConnection
app/Services/PortfolioCompare/CrossEnvironmentPromotionExecutionService.php:102:                    ? (string) $providerConnection->entra_tenant_id
app/Services/PortfolioCompare/CrossEnvironmentPromotionExecutionService.php:103:                    : (string) ($selection->targetEnvironment->managed_environment_id ?? $selection->targetEnvironment->external_id ?? $selection->targetEnvironment->getKey()),
app/Services/PortfolioCompare/CrossEnvironmentPromotionExecutionService.php:155:            ->where('managed_environment_id', $environmentId)
tests/Feature/Onboarding/OnboardingDraftPickerTest.php:36:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Onboarding/OnboardingDraftPickerTest.php:67:            'entra_tenant_id' => '11111111-1111-1111-1111-111111111111',
tests/Feature/Onboarding/OnboardingDraftPickerTest.php:80:            'entra_tenant_id' => '22222222-2222-2222-2222-222222222222',
tests/Feature/Onboarding/OnboardingDraftPickerTest.php:87:        ->get(route('admin.onboarding'))
tests/Feature/Onboarding/OnboardingDraftPickerTest.php:118:            'entra_tenant_id' => '33333333-3333-3333-3333-333333333333',
tests/Feature/Onboarding/OnboardingDraftPickerTest.php:128:            'entra_tenant_id' => '44444444-4444-4444-4444-444444444444',
tests/Feature/Onboarding/OnboardingDraftPickerTest.php:139:            'entra_tenant_id' => '55555555-5555-5555-5555-555555555555',
tests/Feature/Onboarding/OnboardingDraftPickerTest.php:150:            'entra_tenant_id' => '66666666-6666-6666-6666-666666666666',
tests/Feature/Onboarding/OnboardingDraftPickerTest.php:156:        ->get(route('admin.onboarding'))
tests/Feature/Onboarding/OnboardingDraftPickerTest.php:176:        'managed_environment_id' => '41414141-4141-4141-4141-414141414141',
tests/Feature/Onboarding/OnboardingDraftPickerTest.php:181:        'managed_environment_id' => '42424242-4242-4242-4242-424242424242',
tests/Feature/Onboarding/OnboardingDraftPickerTest.php:194:        'managed_environment_id' => (int) $readyTenant->getKey(),
tests/Feature/Onboarding/OnboardingDraftPickerTest.php:196:        'entra_tenant_id' => (string) $readyTenant->managed_environment_id,
tests/Feature/Onboarding/OnboardingDraftPickerTest.php:203:        'managed_environment_id' => (int) $readyTenant->getKey(),
tests/Feature/Onboarding/OnboardingDraftPickerTest.php:232:            'entra_tenant_id' => (string) $blockedTenant->managed_environment_id,
tests/Feature/Onboarding/OnboardingDraftPickerTest.php:244:            'entra_tenant_id' => (string) $readyTenant->managed_environment_id,
tests/Feature/Onboarding/OnboardingDraftPickerTest.php:254:        ->get(route('admin.onboarding'))
tests/Feature/Onboarding/OnboardingDraftPickerTest.php:279:        'managed_environment_id' => '44444444-4444-4444-4444-444444444444',
tests/Feature/Onboarding/OnboardingDraftPickerTest.php:284:        'managed_environment_id' => '45454545-4545-4545-4545-454545454545',
tests/Feature/Onboarding/OnboardingDraftPickerTest.php:298:        'managed_environment_id' => (int) $staleTenant->getKey(),
tests/Feature/Onboarding/OnboardingDraftPickerTest.php:300:        'entra_tenant_id' => (string) $staleTenant->managed_environment_id,
tests/Feature/Onboarding/OnboardingDraftPickerTest.php:306:        'managed_environment_id' => (int) $mismatchTenant->getKey(),
tests/Feature/Onboarding/OnboardingDraftPickerTest.php:308:        'entra_tenant_id' => '46464646-4646-4646-4646-464646464646',
tests/Feature/Onboarding/OnboardingDraftPickerTest.php:313:        'managed_environment_id' => (int) $mismatchTenant->getKey(),
tests/Feature/Onboarding/OnboardingDraftPickerTest.php:315:        'entra_tenant_id' => (string) $mismatchTenant->managed_environment_id,
tests/Feature/Onboarding/OnboardingDraftPickerTest.php:322:        'managed_environment_id' => (int) $staleTenant->getKey(),
tests/Feature/Onboarding/OnboardingDraftPickerTest.php:345:        'managed_environment_id' => (int) $mismatchTenant->getKey(),
tests/Feature/Onboarding/OnboardingDraftPickerTest.php:374:            'entra_tenant_id' => (string) $staleTenant->managed_environment_id,
tests/Feature/Onboarding/OnboardingDraftPickerTest.php:388:            'entra_tenant_id' => (string) $mismatchTenant->managed_environment_id,
tests/Feature/Onboarding/OnboardingDraftPickerTest.php:398:        ->get(route('admin.onboarding'))
tests/Feature/Onboarding/OnboardingDraftPickerTest.php:422:            'entra_tenant_id' => '43434343-4343-4343-4343-434343434343',
tests/Feature/Onboarding/OnboardingDraftPickerTest.php:430:        ->get(route('admin.onboarding'))
tests/Feature/Onboarding/OnboardingDraftPickerTest.php:431:        ->assertRedirect(route('admin.onboarding.draft', ['onboardingDraft' => $draft->getKey()]));
tests/Feature/Audit/ProviderConnectionConsentRevocationAuditTest.php:60:        'managed_environment_id' => 'revoked-audit-tenant-id',
tests/Feature/Audit/ProviderConnectionConsentRevocationAuditTest.php:65:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Audit/ProviderConnectionConsentRevocationAuditTest.php:68:        'entra_tenant_id' => 'revoked-audit-tenant-id',
tests/Feature/Audit/ProviderConnectionConsentRevocationAuditTest.php:76:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Audit/ProviderConnectionConsentRevocationAuditTest.php:88:                'entra_tenant_id' => $connection->entra_tenant_id,
tests/Feature/Audit/ProviderConnectionConsentRevocationAuditTest.php:111:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/OpsUx/PolicyVersionPruneBulkJobTest.php:20:        'managed_environment_id' => $tenant->id,
tests/Feature/OpsUx/PolicyVersionPruneBulkJobTest.php:27:                'entra_tenant_id' => (string) ($tenant->managed_environment_id ?? $tenant->external_id),
tests/Feature/OpsUx/PolicyVersionPruneBulkJobTest.php:58:        'managed_environment_id' => $tenant->id,
tests/Feature/OpsUx/PolicyVersionPruneBulkJobTest.php:62:        'managed_environment_id' => $tenant->id,
tests/Feature/OpsUx/PolicyVersionPruneBulkJobTest.php:70:        'managed_environment_id' => $tenant->id,
tests/Feature/OpsUx/PolicyVersionPruneBulkJobTest.php:78:        'managed_environment_id' => $tenant->id,
tests/Feature/OpsUx/PolicyVersionPruneBulkJobTest.php:89:                'entra_tenant_id' => (string) ($tenant->managed_environment_id ?? $tenant->external_id),
tests/Feature/DirectoryGroups/BrowseGroupsTest.php:37:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/DirectoryGroups/BrowseGroupsTest.php:47:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/DirectoryGroups/BrowseGroupsTest.php:57:        'managed_environment_id' => $otherTenant->getKey(),
tests/Feature/DirectoryGroups/BrowseGroupsTest.php:101:            ->set('tableFilters.stale.value', 1)
tests/Feature/DirectoryGroups/BrowseGroupsTest.php:110:            ->set('tableFilters.group_type.value', 'security')
tests/Feature/DirectoryGroups/BrowseGroupsTest.php:123:        'managed_environment_id' => $tenantB->getKey(),
tests/Feature/DirectoryGroups/BrowseGroupsTest.php:136:        ->get(EntraGroupResource::getUrl('view', ['record' => $groupB], tenant: $tenantA))
tests/Feature/DirectoryGroups/BrowseGroupsTest.php:147:    bindDirectoryGroupsNavigationRequestPath(route('admin.workspace.home', ['workspace' => $tenant->workspace_id]));
app/Services/Intune/RestoreService.php:79:                ->where('managed_environment_id', $tenant->id)
app/Services/Intune/RestoreService.php:131:        if ($version->managed_environment_id !== $tenant->id) {
app/Services/Intune/RestoreService.php:142:            'managed_environment_id' => $tenant->id,
app/Services/Intune/RestoreService.php:209:            'managed_environment_id' => $tenant->id,
app/Services/Intune/RestoreService.php:243:        if ($restoreRun->managed_environment_id !== $tenant->id) {
app/Services/Intune/RestoreService.php:299:        $tenantIdentifier = $tenant->managed_environment_id ?? $tenant->external_id;
app/Services/Intune/RestoreService.php:304:            $tenantIdentifier = (string) $connection->entra_tenant_id;
app/Services/Intune/RestoreService.php:320:            if ($existingRun->managed_environment_id !== $tenant->id) {
app/Services/Intune/RestoreService.php:347:                'managed_environment_id' => $tenant->id,
app/Services/Intune/RestoreService.php:957:                ->where('managed_environment_id', $tenant->id)
tests/Feature/Audit/AssignmentRestoreAuditSummaryTest.php:51:        'managed_environment_id' => 'tenant-assignment-audit-summary',
tests/Feature/Audit/AssignmentRestoreAuditSummaryTest.php:56:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Audit/AssignmentRestoreAuditSummaryTest.php:62:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Audit/AssignmentRestoreAuditSummaryTest.php:66:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Audit/AssignmentRestoreAuditSummaryTest.php:111:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/Audit/AssignmentRestoreAuditSummaryTest.php:122:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/OpsUx/RestoreRunDeleteBulkJobTest.php:19:        'managed_environment_id' => $tenant->id,
tests/Feature/OpsUx/RestoreRunDeleteBulkJobTest.php:26:                'entra_tenant_id' => (string) ($tenant->managed_environment_id ?? $tenant->external_id),
tests/Feature/OpsUx/RestoreRunDeleteBulkJobTest.php:56:        'managed_environment_id' => $tenant->id,
tests/Feature/OpsUx/RestoreRunDeleteBulkJobTest.php:62:        'managed_environment_id' => $tenant->id,
tests/Feature/OpsUx/RestoreRunDeleteBulkJobTest.php:68:        'managed_environment_id' => $tenant->id,
tests/Feature/OpsUx/RestoreRunDeleteBulkJobTest.php:74:        'managed_environment_id' => $tenant->id,
tests/Feature/OpsUx/RestoreRunDeleteBulkJobTest.php:85:                'entra_tenant_id' => (string) ($tenant->managed_environment_id ?? $tenant->external_id),
tests/Feature/DirectoryGroups/StartSyncFromGroupsPageTest.php:34:        ->where('managed_environment_id', $tenant->getKey())
tests/Feature/Audit/TenantLifecycleAuditLogTest.php:37:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/Audit/TenantLifecycleAuditLogTest.php:43:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/Audit/TenantLifecycleAuditLogTest.php:66:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/DirectoryGroups/NoLiveGraphOnRenderTest.php:19:        'managed_environment_id' => $this->tenant->id,
tests/Feature/DirectoryGroups/NoLiveGraphOnRenderTest.php:36:        'managed_environment_id' => $this->tenant->id,
tests/Feature/DirectoryGroups/NoLiveGraphOnRenderTest.php:60:        ->get(PolicyVersionResource::getUrl('view', ['record' => $version], panel: 'admin', tenant: $this->tenant));
tests/Feature/Onboarding/OnboardingDraftLifecycleTest.php:38:            'entra_tenant_id' => '11111111-1111-1111-1111-111111111111',
tests/Feature/Onboarding/OnboardingDraftLifecycleTest.php:45:        ->get(route('admin.onboarding.draft', ['onboardingDraft' => $draft->getKey()]))
tests/Feature/Onboarding/OnboardingDraftLifecycleTest.php:73:            'entra_tenant_id' => '22222222-2222-2222-2222-222222222222',
tests/Feature/Onboarding/OnboardingDraftLifecycleTest.php:80:        ->get(route('admin.onboarding.draft', ['onboardingDraft' => $draft->getKey()]))
tests/Feature/Onboarding/OnboardingDraftLifecycleTest.php:102:            'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Feature/Onboarding/OnboardingDraftLifecycleTest.php:126:            'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Feature/Onboarding/OnboardingDraftLifecycleTest.php:156:            'entra_tenant_id' => '33333333-3333-3333-3333-333333333333',
tests/Feature/Onboarding/OnboardingDraftLifecycleTest.php:168:        ->assertRedirect(route('admin.onboarding.draft', ['onboardingDraft' => (int) $draft->getKey()]));
tests/Feature/Onboarding/OnboardingDraftLifecycleTest.php:177:        ->get(route('admin.onboarding.draft', ['onboardingDraft' => (int) $draft->getKey()]))
tests/Feature/Onboarding/OnboardingDraftLifecycleTest.php:207:            'entra_tenant_id' => '66666666-6666-6666-6666-666666666666',
tests/Feature/Onboarding/OnboardingDraftLifecycleTest.php:221:        ->assertRedirect(route('admin.onboarding'));
tests/Feature/Onboarding/OnboardingDraftLifecycleTest.php:234:        ->get(route('admin.onboarding.draft', ['onboardingDraft' => (int) $draft->getKey()]))
tests/Feature/Onboarding/OnboardingDraftLifecycleTest.php:255:            'entra_tenant_id' => '44444444-4444-4444-4444-444444444444',
tests/Feature/Onboarding/OnboardingDraftLifecycleTest.php:266:            'entra_tenant_id' => '55555555-5555-5555-5555-555555555555',
tests/Feature/Onboarding/OnboardingDraftLifecycleTest.php:272:        ->get(route('admin.onboarding'))
tests/Feature/Onboarding/OnboardingDraftLifecycleTest.php:273:        ->assertRedirect(route('admin.onboarding.draft', ['onboardingDraft' => $activeDraft->getKey()]));
tests/Feature/Onboarding/OnboardingDraftLifecycleTest.php:293:            'entra_tenant_id' => '44444444-1111-1111-1111-111111111111',
tests/Feature/Onboarding/OnboardingDraftLifecycleTest.php:303:            'entra_tenant_id' => '55555555-1111-1111-1111-111111111111',
tests/Feature/Onboarding/OnboardingDraftLifecycleTest.php:309:        ->get(route('admin.onboarding'))
tests/Feature/Onboarding/OnboardingDraftLifecycleTest.php:315:        ->get(route('admin.onboarding.draft', ['onboardingDraft' => $firstDraft->getKey()]))
tests/Feature/Onboarding/OnboardingDraftLifecycleTest.php:335:        'managed_environment_id' => 'aaaaaaaa-1111-1111-1111-111111111111',
tests/Feature/Onboarding/OnboardingDraftLifecycleTest.php:345:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Onboarding/OnboardingDraftLifecycleTest.php:347:        'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Feature/Onboarding/OnboardingDraftLifecycleTest.php:354:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Onboarding/OnboardingDraftLifecycleTest.php:361:                'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Feature/Onboarding/OnboardingDraftLifecycleTest.php:387:            'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Feature/Onboarding/OnboardingDraftLifecycleTest.php:396:        ->get(route('admin.onboarding'))
tests/Feature/Onboarding/OnboardingDraftLifecycleTest.php:418:            'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Feature/Onboarding/OnboardingDraftLifecycleTest.php:450:            'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Feature/Onboarding/OnboardingDraftLifecycleTest.php:470:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/DirectoryGroups/SyncJobUpsertsGroupsTest.php:17:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/DirectoryGroups/SyncJobUpsertsGroupsTest.php:81:    expect(EntraGroup::query()->where('managed_environment_id', $tenant->getKey())->count())->toBe(2);
tests/Feature/DirectoryGroups/SyncJobUpsertsGroupsTest.php:84:        ->where('managed_environment_id', $tenant->getKey())
tests/Unit/Findings/FindingExceptionDecisionTest.php:17:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Unit/Findings/FindingExceptionDecisionTest.php:30:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Unit/Findings/FindingExceptionDecisionTest.php:47:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Unit/Findings/FindingExceptionDecisionTest.php:60:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/OpsUx/Regression/BackupRetentionTerminalNotificationTest.php:15:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/OpsUx/Regression/BackupRetentionTerminalNotificationTest.php:29:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/OpsUx/Regression/BackupRetentionTerminalNotificationTest.php:42:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/OpsUx/Regression/BackupRetentionTerminalNotificationTest.php:65:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/Audit/ProviderConnectionIdentityAuditTest.php:22:        'managed_environment_id' => 'identity-audit-tenant-id',
tests/Feature/Audit/ProviderConnectionIdentityAuditTest.php:27:    $response = $this->actingAs($user)->get(route('admin.consent.start', [
tests/Feature/Audit/ProviderConnectionIdentityAuditTest.php:35:    $this->get(route('admin.consent.callback', [
tests/Feature/Audit/ProviderConnectionIdentityAuditTest.php:36:        'tenant' => $tenant->managed_environment_id,
tests/Feature/Audit/ProviderConnectionIdentityAuditTest.php:45:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/Audit/ProviderConnectionIdentityAuditTest.php:82:            'entra_tenant_id' => '88888888-8888-8888-8888-888888888888',
tests/Feature/Audit/ProviderConnectionIdentityAuditTest.php:89:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/Audit/ProviderConnectionIdentityAuditTest.php:94:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/Audit/ProviderConnectionIdentityAuditTest.php:108:        ->and($metadata)->not->toHaveKey('entra_tenant_id')
tests/Feature/Audit/ProviderConnectionIdentityAuditTest.php:120:            'detail_key' => 'microsoft_tenant_id',
tests/Feature/DirectoryGroups/ScheduledSyncDispatchTest.php:21:        '--tenant' => [$tenant->managed_environment_id],
tests/Feature/DirectoryGroups/ScheduledSyncDispatchTest.php:27:        ->where('managed_environment_id', $tenant->getKey())
app/Services/PermissionPosture/PermissionPostureFindingGenerator.php:137:            ->where('managed_environment_id', $tenant->getKey())
app/Services/PermissionPosture/PermissionPostureFindingGenerator.php:177:            'managed_environment_id' => (int) $tenant->getKey(),
app/Services/PermissionPosture/PermissionPostureFindingGenerator.php:213:            ->where('managed_environment_id', $tenant->getKey())
app/Services/PermissionPosture/PermissionPostureFindingGenerator.php:252:            'managed_environment_id' => (int) $tenant->getKey(),
app/Services/PermissionPosture/PermissionPostureFindingGenerator.php:276:            ->where('managed_environment_id', $tenant->getKey())
app/Services/PermissionPosture/PermissionPostureFindingGenerator.php:303:            ->where('managed_environment_id', $tenant->getKey())
app/Services/PermissionPosture/PermissionPostureFindingGenerator.php:397:            'managed_environment_id' => (int) $tenant->getKey(),
app/Services/PermissionPosture/PermissionPostureFindingGenerator.php:426:            tenantId: (int) $report->managed_environment_id,
app/Services/PermissionPosture/PermissionPostureFindingGenerator.php:444:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Unit/Findings/FindingExceptionModelTest.php:18:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Unit/Findings/FindingExceptionModelTest.php:31:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Unit/Findings/FindingExceptionModelTest.php:51:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Unit/Findings/FindingExceptionModelTest.php:64:        'managed_environment_id' => (int) $tenant->getKey(),
app/Http/Controllers/SelectEnvironmentController.php:36:            'managed_environment_id' => ['required', 'integer'],
app/Http/Controllers/SelectEnvironmentController.php:41:            ->whereKey($validated['managed_environment_id'])
app/Http/Controllers/SelectEnvironmentController.php:75:        if (Schema::hasColumn('users', 'last_tenant_id')) {
app/Http/Controllers/SelectEnvironmentController.php:76:            $user->forceFill(['last_tenant_id' => $tenant->getKey()])->save();
app/Http/Controllers/SelectEnvironmentController.php:86:            ['user_id' => $user->getKey(), 'managed_environment_id' => $tenant->getKey()],
tests/Feature/Onboarding/OnboardingDraftAuthorizationTest.php:50:            'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Feature/Onboarding/OnboardingDraftAuthorizationTest.php:58:        ->get(route('admin.onboarding.draft', ['onboardingDraft' => $draft->getKey()]))
tests/Feature/Onboarding/OnboardingDraftAuthorizationTest.php:170:        'managed_environment_id' => '35353535-3535-3535-3535-353535353535',
tests/Feature/Onboarding/OnboardingDraftAuthorizationTest.php:176:        'managed_environment_id' => '36363636-3636-3636-3636-363636363636',
tests/Feature/Onboarding/OnboardingDraftAuthorizationTest.php:198:            'entra_tenant_id' => (string) $primaryTenant->managed_environment_id,
tests/Feature/Onboarding/OnboardingDraftAuthorizationTest.php:209:            'entra_tenant_id' => (string) $secondaryTenant->managed_environment_id,
tests/Feature/Onboarding/OnboardingDraftAuthorizationTest.php:336:        ->get(route('admin.onboarding.draft', ['onboardingDraft' => $draft->getKey()]))
tests/Feature/Onboarding/OnboardingDraftAuthorizationTest.php:366:        ->get(route('admin.onboarding.draft', ['onboardingDraft' => $draft->getKey()]))
tests/Feature/Onboarding/OnboardingDraftAuthorizationTest.php:411:            'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Feature/Onboarding/OnboardingDraftAuthorizationTest.php:419:        ->get(route('admin.onboarding.draft', ['onboardingDraft' => $draft->getKey()]))
tests/Feature/Onboarding/OnboardingDraftAuthorizationTest.php:425:        ->get(route('admin.onboarding.draft', ['onboardingDraft' => $draft->getKey()]))
tests/Feature/Onboarding/OnboardingDraftAuthorizationTest.php:431:        ->get(route('admin.onboarding.draft', ['onboardingDraft' => $draft->getKey()]))
tests/Feature/Onboarding/OnboardingDraftAuthorizationTest.php:462:        ->get(route('admin.onboarding.draft', ['onboardingDraft' => $draft->getKey()]))
tests/Feature/Onboarding/OnboardingDraftAuthorizationTest.php:499:            'entra_tenant_id' => (string) $archivedTenant->managed_environment_id,
tests/Feature/Onboarding/OnboardingDraftAuthorizationTest.php:507:        ->get(route('admin.onboarding.draft', ['onboardingDraft' => $draft->getKey()]))
tests/Feature/Onboarding/OnboardingDraftAuthorizationTest.php:533:            'entra_tenant_id' => (string) $archivedTenant->managed_environment_id,
tests/Feature/Onboarding/OnboardingDraftAuthorizationTest.php:541:        ->get(route('admin.onboarding.draft', ['onboardingDraft' => $draft->getKey()]))
tests/Feature/Onboarding/OnboardingDraftAuthorizationTest.php:569:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Onboarding/OnboardingDraftAuthorizationTest.php:571:        'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Feature/Onboarding/OnboardingDraftAuthorizationTest.php:578:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Onboarding/OnboardingDraftAuthorizationTest.php:585:                'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Feature/Onboarding/OnboardingDraftAuthorizationTest.php:611:            'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Feature/Onboarding/OnboardingDraftAuthorizationTest.php:647:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Onboarding/OnboardingDraftAuthorizationTest.php:649:        'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Feature/Onboarding/OnboardingDraftAuthorizationTest.php:656:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Onboarding/OnboardingDraftAuthorizationTest.php:663:                'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Feature/Onboarding/OnboardingDraftAuthorizationTest.php:689:            'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Feature/Onboarding/OnboardingDraftAuthorizationTest.php:702:        ->assertRedirect(EnvironmentDashboard::getUrl(panel: 'admin', tenant: $tenant));
tests/Feature/Audit/ProviderConnectionMigrationAuditTest.php:18:        'managed_environment_id' => 'audit-classification-tenant-id',
tests/Feature/Audit/ProviderConnectionMigrationAuditTest.php:24:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Audit/ProviderConnectionMigrationAuditTest.php:27:        'entra_tenant_id' => 'audit-classification-tenant-id',
tests/Feature/Audit/ProviderConnectionMigrationAuditTest.php:44:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/Audit/ProviderConnectionMigrationAuditTest.php:50:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/Audit/TenantMembershipAuditLogTest.php:37:        ->where('managed_environment_id', $tenant->id)
tests/Feature/Audit/TenantMembershipAuditLogTest.php:73:        ->where('managed_environment_id', $tenant->id)
tests/Feature/Audit/TenantMembershipAuditLogTest.php:88:        ->where('managed_environment_id', $tenant->id)
tests/Feature/OpsUx/Regression/RestoreRunTerminalNotificationTest.php:27:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/OpsUx/Regression/RestoreRunTerminalNotificationTest.php:31:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/DirectoryGroups/StartSyncTest.php:24:        ->and($run->managed_environment_id)->toBe($tenant->getKey())
app/Services/Evidence/EvidenceSnapshotResolver.php:17:            ->where('managed_environment_id', $request->tenantId)
tests/Feature/DirectoryGroups/SyncRetentionPurgeTest.php:19:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/DirectoryGroups/SyncRetentionPurgeTest.php:24:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/OpsUx/Regression/BackupScheduleRunNotificationTest.php:35:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/OpsUx/Regression/BackupScheduleRunNotificationTest.php:68:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Audit/FindingAuditVisibilityTest.php:20:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Audit/FindingAuditVisibilityTest.php:60:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Audit/FindingAuditVisibilityTest.php:99:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Audit/FindingAuditVisibilityTest.php:146:        'managed_environment_id' => (int) $tenantA->getKey(),
tests/Feature/Audit/FindingAuditVisibilityTest.php:166:        'managed_environment_id' => (int) $tenantB->getKey(),
tests/Feature/Audit/FindingAuditVisibilityTest.php:186:        ->get(route('admin.monitoring.audit-log').'?event='.(int) $hidden->getKey())
tests/Feature/Onboarding/ProductKnowledgeOnboardingHelpTest.php:39:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Onboarding/ProductKnowledgeOnboardingHelpTest.php:41:        'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Feature/Onboarding/ProductKnowledgeOnboardingHelpTest.php:90:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Onboarding/ProductKnowledgeOnboardingHelpTest.php:92:            'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Feature/Onboarding/ProductKnowledgeOnboardingHelpTest.php:129:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Onboarding/ProductKnowledgeOnboardingHelpTest.php:136:                'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Feature/Onboarding/ProductKnowledgeOnboardingHelpTest.php:149:        'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Feature/Onboarding/ProductKnowledgeOnboardingHelpTest.php:151:            'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Feature/Onboarding/ProductKnowledgeOnboardingHelpTest.php:174:        ->get(route('admin.onboarding.draft', ['onboardingDraft' => (int) $draft->getKey()]));
tests/Feature/Onboarding/ProductKnowledgeOnboardingHelpTest.php:271:        ->get(route('admin.onboarding.draft', ['onboardingDraft' => (int) $draft->getKey()]))
tests/Unit/Findings/FindingExceptionEvidenceReferenceTest.php:17:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Unit/Findings/FindingExceptionEvidenceReferenceTest.php:30:        'managed_environment_id' => (int) $tenant->getKey(),
app/Services/Evidence/Sources/OperationsSummarySource.php:23:            ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/OpsUx/ActiveRunsTest.php:13:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/OpsUx/ActiveRunsTest.php:27:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/OpsUx/ActiveRunsTest.php:42:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/OpsUx/ActiveRunsTest.php:57:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/OpsUx/ActiveRunsTest.php:74:        'managed_environment_id' => $tenantB->getKey(),
tests/Feature/Audit/OnboardingDraftAuditTest.php:38:            'entra_tenant_id' => '11111111-1111-1111-1111-111111111111',
tests/Feature/Audit/OnboardingDraftAuditTest.php:45:        ->where('entra_tenant_id', '11111111-1111-1111-1111-111111111111')
tests/Feature/Audit/OnboardingDraftAuditTest.php:52:        'entra_tenant_id' => '22222222-2222-2222-2222-222222222222',
tests/Feature/Audit/OnboardingDraftAuditTest.php:54:            'entra_tenant_id' => '22222222-2222-2222-2222-222222222222',
tests/Feature/Audit/OnboardingDraftAuditTest.php:62:            'entra_tenant_id' => '11111111-1111-1111-1111-111111111111',
tests/Feature/Audit/OnboardingDraftAuditTest.php:66:        ->assertRedirect(route('admin.onboarding.draft', ['onboardingDraft' => $firstDraft->getKey()]));
tests/Feature/Audit/OnboardingDraftAuditTest.php:95:            'entra_tenant_id' => '33333333-3333-3333-3333-333333333333',
tests/Feature/Audit/OnboardingDraftAuditTest.php:105:            'entra_tenant_id' => '44444444-4444-4444-4444-444444444444',
tests/Feature/Audit/OnboardingDraftAuditTest.php:113:            TestAction::make('resume_draft_'.$draft->getKey())
tests/Feature/Audit/OnboardingDraftAuditTest.php:116:        ->assertRedirect(route('admin.onboarding.draft', ['onboardingDraft' => $draft->getKey()]));
tests/Feature/Audit/OnboardingDraftAuditTest.php:161:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Audit/OnboardingDraftAuditTest.php:163:        'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Feature/Audit/OnboardingDraftAuditTest.php:176:            'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Feature/Audit/OnboardingDraftAuditTest.php:247:        'entra_tenant_id' => '55555555-5555-5555-5555-555555555555',
tests/Feature/Audit/OnboardingDraftAuditTest.php:264:        ->where('managed_environment_id', (int) $tenant->getKey())
app/Services/Intune/ManagedEnvironmentPermissionService.php:36:            ->where('managed_environment_id', $tenant->id)
app/Services/Intune/ManagedEnvironmentPermissionService.php:169:                    ->where('managed_environment_id', $tenant->id)
app/Services/Intune/ManagedEnvironmentPermissionService.php:194:                        'managed_environment_id' => $tenant->id,
app/Services/Intune/ManagedEnvironmentPermissionService.php:418:                'managed_environment_id' => $tenant->id,
app/Services/Intune/ManagedEnvironmentPermissionService.php:437:            ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/Onboarding/ManagedEnvironmentOnboardingEntitlementTest.php:62:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Onboarding/ManagedEnvironmentOnboardingEntitlementTest.php:64:        'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Feature/Onboarding/ManagedEnvironmentOnboardingEntitlementTest.php:71:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Onboarding/ManagedEnvironmentOnboardingEntitlementTest.php:82:                'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Feature/Onboarding/ManagedEnvironmentOnboardingEntitlementTest.php:94:            'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Feature/DependencyQueryServiceTest.php:14:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/DependencyQueryServiceTest.php:20:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/DependencyQueryServiceTest.php:30:        'managed_environment_id' => $tenant->getKey(),
app/Http/Controllers/AdminConsentCallbackController.php:70:            'entra_tenant_id' => (string) $connection->entra_tenant_id,
app/Http/Controllers/AdminConsentCallbackController.php:130:            'managed_environment_id' => $tenantIdentifier,
app/Http/Controllers/AdminConsentCallbackController.php:139:            ->where('managed_environment_id', (int) $tenant->getKey())
app/Http/Controllers/AdminConsentCallbackController.php:158:                'managed_environment_id' => (int) $tenant->getKey(),
app/Http/Controllers/AdminConsentCallbackController.php:160:                'entra_tenant_id' => (string) ($tenant->graphTenantId() ?? $tenant->managed_environment_id ?? $tenant->external_id),
app/Http/Controllers/AdminConsentCallbackController.php:223:            ->where('managed_environment_id', (int) $tenant->getKey())
app/Services/Evidence/Sources/FindingsSummarySource.php:31:            ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/OpsUx/RestoreExecuteOperationRunSyncTest.php:15:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/OpsUx/RestoreExecuteOperationRunSyncTest.php:19:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/OpsUx/RestoreExecuteOperationRunSyncTest.php:42:        ->where('managed_environment_id', $tenant->getKey())
tests/Feature/Audit/ProviderConnectionVerificationAuditTest.php:57:        'managed_environment_id' => 'verification-audit-tenant-id',
tests/Feature/Audit/ProviderConnectionVerificationAuditTest.php:62:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Audit/ProviderConnectionVerificationAuditTest.php:65:        'entra_tenant_id' => 'verification-audit-tenant-id',
tests/Feature/Audit/ProviderConnectionVerificationAuditTest.php:72:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Audit/ProviderConnectionVerificationAuditTest.php:84:                'entra_tenant_id' => $connection->entra_tenant_id,
tests/Feature/Audit/ProviderConnectionVerificationAuditTest.php:99:        ->where('managed_environment_id', (int) $tenant->getKey())
app/Http/Controllers/OpenFindingExceptionsQueueController.php:56:        return redirect()->to(FindingExceptionsQueue::getUrl([
app/Services/Evidence/Sources/PermissionPostureSource.php:22:            ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/Onboarding/OnboardingInlineConnectionEditTest.php:33:        'managed_environment_id' => '11111111-1111-1111-1111-111111111111',
tests/Feature/Onboarding/OnboardingInlineConnectionEditTest.php:43:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Onboarding/OnboardingInlineConnectionEditTest.php:45:        'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Feature/Onboarding/OnboardingInlineConnectionEditTest.php:60:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Onboarding/OnboardingInlineConnectionEditTest.php:61:        'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Feature/Onboarding/OnboardingInlineConnectionEditTest.php:83:        'managed_environment_id' => '22222222-2222-2222-2222-222222222222',
tests/Feature/Onboarding/OnboardingInlineConnectionEditTest.php:89:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Onboarding/OnboardingInlineConnectionEditTest.php:91:        'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Feature/Onboarding/OnboardingInlineConnectionEditTest.php:106:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Onboarding/OnboardingInlineConnectionEditTest.php:107:        'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Feature/Onboarding/OnboardingInlineConnectionEditTest.php:137:        'managed_environment_id' => '33333333-3333-3333-3333-333333333333',
tests/Feature/Onboarding/OnboardingInlineConnectionEditTest.php:147:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Onboarding/OnboardingInlineConnectionEditTest.php:149:        'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Feature/Onboarding/OnboardingInlineConnectionEditTest.php:165:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Onboarding/OnboardingInlineConnectionEditTest.php:172:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Onboarding/OnboardingInlineConnectionEditTest.php:173:        'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Feature/Onboarding/OnboardingInlineConnectionEditTest.php:212:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/Onboarding/OnboardingInlineConnectionEditTest.php:237:        'managed_environment_id' => '66666666-6666-6666-6666-666666666666',
tests/Feature/Onboarding/OnboardingInlineConnectionEditTest.php:247:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Onboarding/OnboardingInlineConnectionEditTest.php:249:        'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Feature/Onboarding/OnboardingInlineConnectionEditTest.php:264:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Onboarding/OnboardingInlineConnectionEditTest.php:265:        'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Feature/Onboarding/OnboardingInlineConnectionEditTest.php:307:        'managed_environment_id' => '77777777-7777-7777-7777-777777777777',
tests/Feature/Onboarding/OnboardingInlineConnectionEditTest.php:317:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Onboarding/OnboardingInlineConnectionEditTest.php:319:        'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Feature/Onboarding/OnboardingInlineConnectionEditTest.php:337:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Onboarding/OnboardingInlineConnectionEditTest.php:338:        'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Feature/Onboarding/OnboardingInlineConnectionEditTest.php:365:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/Onboarding/OnboardingInlineConnectionEditTest.php:391:        'managed_environment_id' => '88888888-1111-1111-1111-111111111111',
tests/Feature/Onboarding/OnboardingInlineConnectionEditTest.php:401:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Onboarding/OnboardingInlineConnectionEditTest.php:403:        'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Feature/Onboarding/OnboardingInlineConnectionEditTest.php:410:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Onboarding/OnboardingInlineConnectionEditTest.php:411:        'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Feature/Onboarding/OnboardingInlineConnectionEditTest.php:453:        'managed_environment_id' => '99999999-1111-1111-1111-111111111111',
tests/Feature/Onboarding/OnboardingInlineConnectionEditTest.php:463:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Onboarding/OnboardingInlineConnectionEditTest.php:465:        'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Feature/Onboarding/OnboardingInlineConnectionEditTest.php:472:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Onboarding/OnboardingInlineConnectionEditTest.php:473:        'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Feature/Onboarding/OnboardingInlineConnectionEditTest.php:509:        'managed_environment_id' => '44444444-4444-4444-4444-444444444444',
tests/Feature/Onboarding/OnboardingInlineConnectionEditTest.php:519:        'managed_environment_id' => '55555555-5555-5555-5555-555555555555',
tests/Feature/Onboarding/OnboardingInlineConnectionEditTest.php:525:        'managed_environment_id' => (int) $otherTenant->getKey(),
tests/Feature/Onboarding/OnboardingInlineConnectionEditTest.php:527:        'entra_tenant_id' => (string) $otherTenant->managed_environment_id,
tests/Feature/Onboarding/OnboardingInlineConnectionEditTest.php:542:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Onboarding/OnboardingInlineConnectionEditTest.php:543:        'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Unit/PolicyVersionEligibilityTest.php:11:    $policy = Policy::factory()->create(['managed_environment_id' => $tenant->id]);
tests/Unit/PolicyVersionEligibilityTest.php:14:        'managed_environment_id' => $tenant->id,
tests/Unit/PolicyVersionEligibilityTest.php:21:        'managed_environment_id' => $tenant->id,
tests/Unit/PolicyVersionEligibilityTest.php:28:        ->where('managed_environment_id', $tenant->id)
tests/Unit/PolicyVersionEligibilityTest.php:38:    $policy = Policy::factory()->create(['managed_environment_id' => $tenant->id]);
tests/Unit/PolicyVersionEligibilityTest.php:41:        'managed_environment_id' => $tenant->id,
tests/Unit/PolicyVersionEligibilityTest.php:48:        ->where('managed_environment_id', $tenant->id)
tests/Unit/PolicyVersionEligibilityTest.php:57:    $policy = Policy::factory()->create(['managed_environment_id' => $tenant->id]);
tests/Unit/PolicyVersionEligibilityTest.php:60:        'managed_environment_id' => $tenant->id,
tests/Unit/PolicyVersionEligibilityTest.php:67:        'managed_environment_id' => $tenant->id,
tests/Unit/PolicyVersionEligibilityTest.php:76:        ->where('managed_environment_id', $tenant->id)
tests/Feature/BulkForceDeleteBackupSetsTest.php:17:        'managed_environment_id' => $tenant->id,
tests/Feature/BulkForceDeleteBackupSetsTest.php:24:        'managed_environment_id' => $tenant->id,
tests/Feature/BulkForceDeleteBackupSetsTest.php:46:        ->where('managed_environment_id', $tenant->id)
tests/Feature/RequiredPermissions/RequiredPermissionsFiltersTest.php:36:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/RequiredPermissions/RequiredPermissionsFiltersTest.php:44:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/RequiredPermissions/RequiredPermissionsFiltersTest.php:52:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/RequiredPermissions/RequiredPermissionsFiltersTest.php:67:        ->assertSet('tableFilters.status.value', 'missing')
tests/Feature/RequiredPermissions/RequiredPermissionsFiltersTest.php:80:        ->assertSet('tableFilters.status.value', 'present')
tests/Feature/RequiredPermissions/RequiredPermissionsFiltersTest.php:93:        ->assertSet('tableFilters.status.value', 'present')
tests/Feature/RequiredPermissions/RequiredPermissionsFiltersTest.php:94:        ->assertSet('tableFilters.type.value', 'delegated')
tests/Feature/RequiredPermissions/RequiredPermissionsFiltersTest.php:107:        ->assertSet('tableFilters.features.values', ['backup'])
app/Http/Controllers/Auth/EntraController.php:118:                ->where('entra_tenant_id', $entraTenantId)
app/Http/Controllers/Auth/EntraController.php:135:                'entra_tenant_id' => $entraTenantId,
app/Http/Controllers/Auth/EntraController.php:273:     * @return array{success:bool,reason_code?:string,user_id?:int,entra_tenant_id?:string,entra_object_id_hash?:string,correlation_id:string,timestamp:string}
app/Http/Controllers/Auth/EntraController.php:302:            $context['entra_tenant_id'] = $entraTenantId;
app/Services/Evidence/Sources/EntraAdminRolesSource.php:22:            ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/Onboarding/OnboardingActivationTest.php:40:        'entra_tenant_id' => $entraTenantId,
tests/Feature/Onboarding/OnboardingActivationTest.php:48:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Onboarding/OnboardingActivationTest.php:50:        'entra_tenant_id' => $entraTenantId,
tests/Feature/Onboarding/OnboardingActivationTest.php:57:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Onboarding/OnboardingActivationTest.php:68:                'entra_tenant_id' => $connection->entra_tenant_id,
tests/Feature/Onboarding/OnboardingActivationTest.php:75:        ->where('entra_tenant_id', $entraTenantId)
tests/Feature/Onboarding/OnboardingActivationTest.php:115:        'entra_tenant_id' => $entraTenantId,
tests/Feature/Onboarding/OnboardingActivationTest.php:132:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/Onboarding/OnboardingActivationTest.php:184:        'entra_tenant_id' => $entraTenantId,
tests/Feature/Onboarding/OnboardingActivationTest.php:193:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Onboarding/OnboardingActivationTest.php:195:        'entra_tenant_id' => $entraTenantId,
tests/Feature/Onboarding/OnboardingActivationTest.php:202:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Onboarding/OnboardingActivationTest.php:213:                'entra_tenant_id' => $connection->entra_tenant_id,
tests/Feature/Onboarding/OnboardingActivationTest.php:233:        ->where('entra_tenant_id', $entraTenantId)
tests/Feature/Onboarding/OnboardingActivationTest.php:288:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Onboarding/OnboardingActivationTest.php:290:        'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Feature/Onboarding/OnboardingActivationTest.php:297:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Onboarding/OnboardingActivationTest.php:308:                'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Feature/Onboarding/OnboardingActivationTest.php:320:            'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Feature/OpsUx/NotificationViewRunLinkTest.php:17:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/OpsUx/NotificationViewRunLinkTest.php:53:        'managed_environment_id' => $tenant->getKey(),
app/Http/Controllers/ManagedEnvironmentOnboardingController.php:51:                    'entra_tenant_id' => (string) $connection->entra_tenant_id,
app/Http/Controllers/ManagedEnvironmentOnboardingController.php:96:            ->where('managed_environment_id', (int) $tenant->getKey())
app/Http/Controllers/ManagedEnvironmentOnboardingController.php:103:                'managed_environment_id' => (int) $tenant->getKey(),
app/Http/Controllers/ManagedEnvironmentOnboardingController.php:105:                'entra_tenant_id' => (string) ($tenant->graphTenantId() ?? $tenant->managed_environment_id ?? $tenant->external_id),
tests/Feature/Onboarding/EnvironmentLifecyclePresentationCopyTest.php:60:            'entra_tenant_id' => (string) $tenant->managed_environment_id,
app/Services/Evidence/Sources/BaselineDriftPostureSource.php:22:            ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/OpsUx/RestoreExecutionOperationRunSyncTest.php:22:        'managed_environment_id' => $tenant->id,
tests/Feature/OpsUx/RestoreExecutionOperationRunSyncTest.php:26:        'managed_environment_id' => $tenant->id,
tests/Feature/RequiredPermissions/RequiredPermissionsLinksTest.php:11:    $expectedUrl = ManagedEnvironmentResource::getUrl('view', ['record' => $tenant]);
app/Services/Evidence/EvidenceSnapshotService.php:48:                'managed_environment_id' => (int) $tenant->getKey(),
app/Services/Evidence/EvidenceSnapshotService.php:52:                'managed_environment_id' => (int) $tenant->getKey(),
app/Services/Evidence/EvidenceSnapshotService.php:61:            'managed_environment_id' => (int) $tenant->getKey(),
app/Services/Evidence/EvidenceSnapshotService.php:293:                'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/OpsUx/BulkOperationProgressDbOnlyTest.php:20:        'managed_environment_id' => $tenantA->getKey(),
tests/Feature/OpsUx/BulkOperationProgressDbOnlyTest.php:28:        'managed_environment_id' => $tenantB->getKey(),
tests/Feature/OpsUx/BulkOperationProgressDbOnlyTest.php:54:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/OpsUx/BulkOperationProgressDbOnlyTest.php:76:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/OpsUx/BulkOperationProgressDbOnlyTest.php:103:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/OpsUx/BulkOperationProgressDbOnlyTest.php:140:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/OpsUx/BulkOperationProgressDbOnlyTest.php:169:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/OpsUx/BulkOperationProgressDbOnlyTest.php:178:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/OpsUx/BulkOperationProgressDbOnlyTest.php:205:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/OpsUx/BulkOperationProgressDbOnlyTest.php:235:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/RequiredPermissions/RequiredPermissionsOverviewTest.php:22:        'managed_environment_id' => (int) $tenant->getKey(),
app/Http/Controllers/ClearEnvironmentContextController.php:34:            return redirect()->route('admin.evidence.overview');
app/Http/Controllers/ClearEnvironmentContextController.php:41:                return redirect()->route('admin.workspace.managed-environments.index', ['workspace' => $workspace]);
app/Http/Controllers/ClearEnvironmentContextController.php:44:            return redirect()->route('admin.home');
tests/Unit/Support/SupportRequests/SupportRequestContextBuilderTest.php:55:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Unit/Support/SupportRequests/SupportRequestContextBuilderTest.php:85:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Unit/Support/SupportRequests/SupportRequestContextBuilderTest.php:95:        'managed_environment_id' => (int) $tenant->getKey(),
app/Services/Intune/PolicySnapshotService.php:39:        $tenantIdentifier = $tenant->managed_environment_id ?? $tenant->external_id;
app/Services/Intune/PolicySnapshotService.php:53:            $tenantIdentifier = (string) $connection->entra_tenant_id;
tests/Feature/OpsUx/TerminalNotificationFailureMessageTest.php:19:        'managed_environment_id' => $tenant->getKey(),
app/Http/Controllers/RbacDelegatedAuthController.php:27:        $redirectUri = route('admin.rbac.callback');
app/Http/Controllers/RbacDelegatedAuthController.php:107:            config('graph.managed_environment_id', 'common')
app/Http/Controllers/RbacDelegatedAuthController.php:113:            'redirect_uri' => route('admin.rbac.callback'),
tests/Feature/Guards/ProviderDispatchGateCoverageTest.php:92:            'start' => "Action::make('sync_groups')",
tests/Unit/Support/SupportRequests/ExternalSupportDeskHandoffServiceTest.php:35:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Unit/Support/SupportRequests/ExternalSupportDeskHandoffServiceTest.php:62:    Http::assertSent(fn (Request $request): bool => $request->url() === 'https://desk.example.test/api/tickets'
tests/Feature/Filament/TenantRbacWizardTest.php:28:        'managed_environment_id' => 'tenant-guid',
tests/Feature/Filament/TenantRbacWizardTest.php:36:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/RequiredPermissions/RequiredPermissionsSidebarTest.php:126:        ->get(EnvironmentDashboard::getUrl(tenant: $tenant));
tests/Feature/RequiredPermissions/RequiredPermissionsSidebarTest.php:141:| resolveScopedTenant() — NOT from Filament::getTenant(). So the tenant
app/Services/Intune/PolicyCaptureOrchestrator.php:122:                    'managed_environment_id' => $tenant->id,
app/Services/Intune/PolicyCaptureOrchestrator.php:201:                    'managed_environment_id' => $tenant->id,
app/Services/Intune/PolicyCaptureOrchestrator.php:221:                'managed_environment_id' => $tenant->id,
app/Services/Intune/PolicyCaptureOrchestrator.php:258:            'managed_environment_id' => $tenant->id,
tests/Unit/Support/SupportRequests/SupportRequestLatestHandoffSummaryTest.php:22:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Unit/Support/SupportRequests/SupportRequestLatestHandoffSummaryTest.php:32:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Unit/Support/SupportRequests/SupportRequestLatestHandoffSummaryTest.php:50:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Unit/Support/SupportRequests/SupportRequestLatestHandoffSummaryTest.php:73:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Unit/Support/SupportRequests/SupportRequestLatestHandoffSummaryTest.php:81:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/RequiredPermissions/RequiredPermissionsEmptyStateTest.php:11:    $expectedUrl = ManagedEnvironmentResource::getUrl('view', ['record' => $tenant]);
tests/Feature/Filament/EnrollmentAutopilotSettingsDisplayTest.php:20:        'managed_environment_id' => $this->tenant->getKey(),
tests/Feature/Filament/EnrollmentAutopilotSettingsDisplayTest.php:28:        'managed_environment_id' => $this->tenant->getKey(),
tests/Feature/Filament/EnrollmentAutopilotSettingsDisplayTest.php:48:        ->get(PolicyResource::getUrl('view', ['record' => $policy], tenant: $this->tenant));
tests/Feature/Filament/EnrollmentAutopilotSettingsDisplayTest.php:63:        'managed_environment_id' => $this->tenant->getKey(),
tests/Feature/Filament/EnrollmentAutopilotSettingsDisplayTest.php:71:        'managed_environment_id' => $this->tenant->getKey(),
tests/Feature/Filament/EnrollmentAutopilotSettingsDisplayTest.php:89:        ->get(PolicyResource::getUrl('view', ['record' => $policy], tenant: $this->tenant));
tests/Feature/Filament/EnrollmentAutopilotSettingsDisplayTest.php:105:        'managed_environment_id' => $this->tenant->getKey(),
tests/Feature/Filament/EnrollmentAutopilotSettingsDisplayTest.php:113:        'managed_environment_id' => $this->tenant->getKey(),
tests/Feature/Filament/EnrollmentAutopilotSettingsDisplayTest.php:133:        ->get(PolicyResource::getUrl('view', ['record' => $policy], tenant: $this->tenant));
tests/Feature/OpsUx/PolicyVersionForceDeleteBulkJobTest.php:20:        'managed_environment_id' => $tenant->id,
tests/Feature/OpsUx/PolicyVersionForceDeleteBulkJobTest.php:27:                'entra_tenant_id' => (string) ($tenant->managed_environment_id ?? $tenant->external_id),
tests/Feature/OpsUx/PolicyVersionForceDeleteBulkJobTest.php:57:        'managed_environment_id' => $tenant->id,
tests/Feature/OpsUx/PolicyVersionForceDeleteBulkJobTest.php:61:        'managed_environment_id' => $tenant->id,
tests/Feature/OpsUx/PolicyVersionForceDeleteBulkJobTest.php:68:        'managed_environment_id' => $tenant->id,
tests/Feature/OpsUx/PolicyVersionForceDeleteBulkJobTest.php:75:        'managed_environment_id' => $tenant->id,
tests/Feature/OpsUx/PolicyVersionForceDeleteBulkJobTest.php:86:                'entra_tenant_id' => (string) ($tenant->managed_environment_id ?? $tenant->external_id),
app/Services/Intune/PolicySyncService.php:72:        $tenantIdentifier = (string) $connection->entra_tenant_id;
app/Services/Intune/PolicySyncService.php:94:                    'managed_environment_id' => $tenant->id,
app/Services/Intune/PolicySyncService.php:95:                    'tenant_identifier' => $tenantIdentifier,
app/Services/Intune/PolicySyncService.php:102:                'managed_environment_id' => $tenant->id,
app/Services/Intune/PolicySyncService.php:160:                    'managed_environment_id' => $tenant->id,
app/Services/Intune/PolicySyncService.php:373:            ->where('managed_environment_id', $tenant->id)
app/Services/Intune/PolicySyncService.php:390:            ->where('managed_environment_id', $tenant->id)
app/Services/Intune/PolicySyncService.php:429:            ->where('managed_environment_id', $tenant->id)
app/Services/Intune/PolicySyncService.php:446:            ->where('managed_environment_id', $tenant->id)
app/Services/Intune/PolicySyncService.php:484:            ->where('managed_environment_id', $tenant->id)
app/Services/Intune/PolicySyncService.php:519:                ->where('managed_environment_id', $tenant->id)
app/Services/Intune/PolicySyncService.php:596:        $tenantIdentifier = (string) $connection->entra_tenant_id;
app/Services/Intune/PolicySyncService.php:618:                'managed_environment_id' => $tenant->id,
app/Services/Intune/PolicySyncService.php:619:                'tenant_identifier' => $tenantIdentifier,
app/Services/Intune/PolicySyncService.php:625:            'managed_environment_id' => $tenant->id,
tests/Feature/OpsUx/OperationRunNotificationRedactionTest.php:16:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/FindingViewRbacEvidenceTest.php:19:        ->get(FindingResource::getUrl('view', ['record' => $finding], tenant: $tenant))
tests/Feature/Filament/FindingViewRbacEvidenceTest.php:50:        ->get(FindingResource::getUrl('view', ['record' => $finding], tenant: $tenant))
tests/Feature/Filament/FindingViewRbacEvidenceTest.php:89:        ->get(FindingResource::getUrl('view', ['record' => $finding], tenant: $tenant))
tests/Feature/Filament/FindingViewRbacEvidenceTest.php:110:        ->get(FindingResource::getUrl('view', ['record' => $finding], tenant: $tenant))
tests/Feature/Filament/FindingViewRbacEvidenceTest.php:136:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/FindingViewRbacEvidenceTest.php:146:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/FindingViewRbacEvidenceTest.php:194:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/BulkRestoreBackupSetsTest.php:17:        'managed_environment_id' => $tenant->id,
tests/Feature/BulkRestoreBackupSetsTest.php:24:        'managed_environment_id' => $tenant->id,
tests/Feature/BulkRestoreBackupSetsTest.php:49:        ->where('managed_environment_id', $tenant->id)
tests/Feature/Filament/TenantViewHeaderUiEnforcementTest.php:87:                'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Feature/Filament/TenantViewHeaderUiEnforcementTest.php:113:                'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Feature/Filament/TenantViewHeaderUiEnforcementTest.php:121:        $this->get(route('admin.onboarding.draft', ['onboardingDraft' => (int) $draft->getKey()]))
tests/Feature/Filament/TenantViewHeaderUiEnforcementTest.php:130:            ->where('managed_environment_id', (int) $tenant->getKey())
app/Services/BackupScheduling/BackupScheduleDispatcher.php:41:            $schedulesQuery->whereIn('managed_environment_id', $this->resolveTenantIds($tenantIdentifiers));
tests/Unit/Support/SupportDiagnostics/SupportDiagnosticBundleRedactionTest.php:27:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Unit/Support/SupportDiagnostics/SupportDiagnosticBundleRedactionTest.php:54:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Unit/Support/SupportDiagnostics/SupportDiagnosticBundleRedactionTest.php:79:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Unit/Support/SupportDiagnostics/SupportDiagnosticBundleRedactionTest.php:89:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/OpsUx/CanonicalViewRunLinksTest.php:42:    $expectedUrl = route('admin.operations.view', [
tests/Feature/OpsUx/CanonicalViewRunLinksTest.php:55:    $expectedUrl = route('admin.operations.view', [
tests/Feature/OpsUx/CanonicalViewRunLinksTest.php:69:        ->toBe(route('admin.operations.index', [
tests/Feature/OpsUx/CanonicalViewRunLinksTest.php:71:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/OpsUx/CanonicalViewRunLinksTest.php:79:        ->toBe(route('admin.operations.index', [
tests/Feature/OpsUx/CanonicalViewRunLinksTest.php:81:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/OpsUx/CanonicalViewRunLinksTest.php:90:        ->toBe(route('admin.operations.index', [
tests/Feature/OpsUx/CanonicalViewRunLinksTest.php:92:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/OpsUx/CanonicalViewRunLinksTest.php:102:        ->toBe(route('admin.operations.index', [
tests/Feature/OpsUx/CanonicalViewRunLinksTest.php:104:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/OpsUx/CanonicalViewRunLinksTest.php:105:            'tableFilters' => [
tests/Feature/OpsUx/CanonicalViewRunLinksTest.php:127:        ->toBe(\App\Filament\System\Pages\Ops\Runs::getUrl(panel: 'system'))
tests/Feature/OpsUx/CanonicalViewRunLinksTest.php:129:        ->toBe(\App\Filament\System\Pages\Ops\ViewRun::getUrl(['run' => (int) $run->getKey()], panel: 'system'))
tests/Feature/OpsUx/CanonicalViewRunLinksTest.php:131:        ->toBe(\App\Filament\System\Pages\Ops\ViewRun::getUrl(['run' => (int) $run->getKey()], panel: 'system'));
tests/Feature/Filament/TableDetailVisibilityTest.php:70:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/TableDetailVisibilityTest.php:140:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/TableDetailVisibilityTest.php:174:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/TableDetailVisibilityTest.php:183:        FindingResource::getUrl('view', ['record' => $finding], tenant: $tenant)
tests/Feature/Filament/TableDetailVisibilityTest.php:191:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Retention/PruneBaselineEvidencePolicyVersionsTest.php:20:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Retention/PruneBaselineEvidencePolicyVersionsTest.php:28:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Retention/PruneBaselineEvidencePolicyVersionsTest.php:37:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Retention/PruneBaselineEvidencePolicyVersionsTest.php:46:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Retention/PruneBaselineEvidencePolicyVersionsTest.php:55:        'managed_environment_id' => (int) $tenant->getKey(),
app/Http/Middleware/EnsureWorkspaceMember.php:28:        $workspaceParam = $request->route()?->parameter('workspace');
tests/Unit/Support/SupportDiagnostics/SupportDiagnosticBundleBuilderTest.php:22:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Unit/Support/SupportDiagnostics/SupportDiagnosticBundleBuilderTest.php:37:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Unit/Support/SupportDiagnostics/SupportDiagnosticBundleBuilderTest.php:44:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Unit/Support/SupportDiagnostics/SupportDiagnosticBundleBuilderTest.php:80:        'managed_environment_id' => null,
tests/Unit/Support/SupportDiagnostics/SupportDiagnosticBundleBuilderTest.php:95:    expect($bundle['context']['managed_environment_id'])->toBeNull()
tests/Unit/Support/SupportDiagnostics/SupportDiagnosticBundleBuilderTest.php:109:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Guards/Spec194GovernanceActionSemanticsGuardTest.php:50:        ->and($tenantlessViewer)->not->toContain("Action::make('retry')")
tests/Feature/Guards/Spec194GovernanceActionSemanticsGuardTest.php:51:        ->and($tenantlessViewer)->not->toContain("Action::make('cancel')")
tests/Feature/Guards/Spec194GovernanceActionSemanticsGuardTest.php:52:        ->and($tenantlessViewer)->not->toContain("Action::make('mark_investigated')")
tests/Feature/Guards/Spec194GovernanceActionSemanticsGuardTest.php:53:        ->and($systemViewRun)->toContain("Action::make('retry')")
tests/Feature/Guards/Spec194GovernanceActionSemanticsGuardTest.php:54:        ->and($systemViewRun)->toContain("Action::make('cancel')")
tests/Feature/Guards/Spec194GovernanceActionSemanticsGuardTest.php:55:        ->and($systemViewRun)->toContain("Action::make('mark_investigated')");
tests/Feature/Filament/PolicySettingsDisplayTest.php:17:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/PolicySettingsDisplayTest.php:25:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/PolicySettingsDisplayTest.php:48:        ->get(PolicyResource::getUrl('view', ['record' => $policy], tenant: $tenant));
tests/Feature/BulkForceDeleteRestoreRunsTest.php:17:        'managed_environment_id' => $tenant->id,
tests/Feature/BulkForceDeleteRestoreRunsTest.php:25:            'managed_environment_id' => $tenant->id,
tests/Feature/BulkForceDeleteRestoreRunsTest.php:48:        ->where('managed_environment_id', $tenant->getKey())
app/Services/Settings/SettingsResolver.php:119:            ->where('managed_environment_id', (int) $tenant->getKey())
app/Http/Middleware/EnsureWorkspaceSelected.php:40:        $routeName = $request->route()?->getName();
app/Http/Middleware/EnsureWorkspaceSelected.php:212:        if (filled($request->query('tenant')) || filled($request->query('managed_environment_id'))) {
app/Http/Middleware/EnsureWorkspaceSelected.php:216:        $route = $request->route();
tests/Feature/Filament/WorkspaceOverviewAccessTest.php:22:        ->get(route('admin.workspace.home', ['workspace' => $workspace]))
tests/Unit/Support/RestoreSafety/RestoreResultAttentionTest.php:19:        'managed_environment_id' => $tenant->id,
tests/Unit/Support/RestoreSafety/RestoreResultAttentionTest.php:23:        'managed_environment_id' => $tenant->id,
tests/Unit/Support/RestoreSafety/RestoreResultAttentionTest.php:41:        'managed_environment_id' => $tenant->id,
tests/Unit/Support/RestoreSafety/RestoreResultAttentionTest.php:45:        'managed_environment_id' => $tenant->id,
tests/Feature/OpsUx/BulkTenantIsolationTest.php:7:it('rejects bulk enqueue when target_scope entra_tenant_id mismatches tenant', function () {
tests/Feature/OpsUx/BulkTenantIsolationTest.php:9:        'managed_environment_id' => 'tenant-a',
tests/Feature/OpsUx/BulkTenantIsolationTest.php:24:        targetScope: ['entra_tenant_id' => 'tenant-b'],
tests/Feature/Guards/ProviderConnectionNeutralityGuardTest.php:24:        "'entra_tenant_id' => \$record->entra_tenant_id",
tests/Feature/Guards/ProviderConnectionNeutralityGuardTest.php:25:        "'entra_tenant_id' => (string) \$connection->entra_tenant_id",
tests/Feature/RunStartAuthorizationTest.php:31:        ->callAction('run_inventory_sync', data: ['managed_environment_id' => $tenantB->getKey(), 'policy_types' => $allTypes])
tests/Feature/RunStartAuthorizationTest.php:36:    expect(OperationRun::query()->where('managed_environment_id', $tenantB->id)->where('type', 'inventory_sync')->exists())->toBeFalse();
tests/Feature/RunStartAuthorizationTest.php:37:    expect(OperationRun::query()->where('managed_environment_id', $tenantB->id)->exists())->toBeFalse();
tests/Feature/RunStartAuthorizationTest.php:53:        ->callAction('run_inventory_sync', data: ['managed_environment_id' => $tenant->getKey(), 'policy_types' => $allTypes]);
tests/Feature/RunStartAuthorizationTest.php:56:    expect(OperationRun::query()->where('managed_environment_id', $tenant->id)->where('type', 'inventory_sync')->exists())->toBeFalse();
tests/Feature/RunStartAuthorizationTest.php:57:    expect(OperationRun::query()->where('managed_environment_id', $tenant->id)->exists())->toBeFalse();
tests/Feature/RunStartAuthorizationTest.php:73:    expect(OperationRun::query()->where('managed_environment_id', $tenant->id)->exists())->toBeFalse();
tests/Feature/RunStartAuthorizationTest.php:84:        'managed_environment_id' => $tenant->id,
tests/Feature/RunStartAuthorizationTest.php:102:    expect(OperationRun::query()->where('managed_environment_id', $tenant->id)->exists())->toBeFalse();
tests/Feature/RunStartAuthorizationTest.php:113:        'managed_environment_id' => $tenant->id,
tests/Feature/RunStartAuthorizationTest.php:131:    expect(OperationRun::query()->where('managed_environment_id', $tenant->id)->exists())->toBeFalse();
tests/Feature/Filament/OperationRunListFiltersTest.php:25:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/OperationRunListFiltersTest.php:54:        'managed_environment_id' => (int) $tenantA->getKey(),
tests/Feature/Filament/OperationRunListFiltersTest.php:62:        'managed_environment_id' => (int) $tenantA->getKey(),
tests/Feature/Filament/OperationRunListFiltersTest.php:70:        'managed_environment_id' => (int) $tenantB->getKey(),
tests/Feature/Filament/OperationRunListFiltersTest.php:93:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/OperationRunListFiltersTest.php:99:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/OperationRunListFiltersTest.php:110:        ->set('tableFilters.created_at.from', now()->subDays(2)->toDateString())
tests/Feature/Filament/OperationRunListFiltersTest.php:111:        ->set('tableFilters.created_at.until', now()->toDateString())
tests/Feature/Filament/OperationRunListFiltersTest.php:120:        ->set('tableFilters.created_at.from', null)
tests/Feature/Filament/OperationRunListFiltersTest.php:121:        ->set('tableFilters.created_at.until', null)
tests/Feature/Filament/OperationRunListFiltersTest.php:136:        'managed_environment_id' => (int) $tenantA->getKey(),
tests/Feature/Filament/OperationRunListFiltersTest.php:142:        'managed_environment_id' => (int) $tenantB->getKey(),
tests/Feature/Filament/OperationRunListFiltersTest.php:171:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/OperationRunListFiltersTest.php:179:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/OperationRunListFiltersTest.php:187:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/OperationRunListFiltersTest.php:210:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/OperationRunListFiltersTest.php:243:        'managed_environment_id' => (int) $tenantA->getKey(),
tests/Feature/Filament/OperationRunListFiltersTest.php:250:        'managed_environment_id' => (int) $tenantB->getKey(),
tests/Feature/Filament/OperationRunListFiltersTest.php:278:        ->assertSet('tableFilters.managed_environment_id.value', (string) $tenantB->getKey())
tests/Feature/Filament/OperationRunListFiltersTest.php:279:        ->assertSet('tableFilters.type.value', null)
tests/Feature/Filament/OperationRunListFiltersTest.php:280:        ->assertSet('tableFilters.initiator_name.value', null);
app/Services/Settings/SettingsWriter.php:294:            'managed_environment_id' => (int) $tenant->getKey(),
app/Services/Settings/SettingsWriter.php:316:            ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/OpsUx/OperationRunSummaryCountsIncrementTest.php:16:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/OpsUx/OperationRunSummaryCountsIncrementTest.php:54:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/Filament/EntraGroupGlobalSearchScopeTest.php:81:        ->toBe(EntraGroupResource::getUrl('view', ['record' => $groupA], panel: 'admin', tenant: $tenantA))
tests/Feature/Filament/EntraGroupGlobalSearchScopeTest.php:121:        ->toBe(EntraGroupResource::getUrl('view', ['record' => $groupA], panel: 'admin', tenant: $tenantA))
tests/Feature/OpsUx/TenantSyncBulkJobTest.php:22:        'managed_environment_id' => $tenantContext->id,
tests/Feature/OpsUx/TenantSyncBulkJobTest.php:29:                'entra_tenant_id' => (string) ($tenantContext->managed_environment_id ?? $tenantContext->external_id),
tests/Feature/OpsUx/TenantSyncBulkJobTest.php:116:        'managed_environment_id' => $tenantContext->id,
tests/Feature/OpsUx/TenantSyncBulkJobTest.php:127:                'entra_tenant_id' => (string) ($tenantContext->managed_environment_id ?? $tenantContext->external_id),
tests/Unit/Support/CreateUserWithTenantProfilesTest.php:37:        ->and(ProviderConnection::query()->where('managed_environment_id', (int) $tenant->getKey())->exists())->toBeFalse();
tests/Unit/Support/CreateUserWithTenantProfilesTest.php:53:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Unit/Support/CreateUserWithTenantProfilesTest.php:59:        ->and(Filament::getTenant())->toBeNull();
tests/Unit/Support/CreateUserWithTenantProfilesTest.php:75:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Unit/Support/CreateUserWithTenantProfilesTest.php:82:        ->and(Filament::getTenant())->toBeNull();
tests/Unit/Support/CreateUserWithTenantProfilesTest.php:97:    expect(ProviderConnection::query()->where('managed_environment_id', (int) $tenant->getKey())->exists())->toBeFalse()
tests/Unit/Support/CreateUserWithTenantProfilesTest.php:98:        ->and(Filament::getTenant()?->is($tenant))->toBeTrue();
tests/Unit/Support/CreateUserWithTenantProfilesTest.php:114:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Unit/Support/CreateUserWithTenantProfilesTest.php:121:        ->and(Filament::getTenant()?->is($tenant))->toBeTrue();
app/Support/Concerns/DerivesWorkspaceIdFromTenant.php:63:        $tenantId = $model->getAttribute('managed_environment_id');
app/Support/Concerns/DerivesWorkspaceIdFromTenant.php:74:        if (! $model->exists || ! $model->isDirty('managed_environment_id')) {
app/Support/Concerns/DerivesWorkspaceIdFromTenant.php:78:        $originalTenantId = $model->getOriginal('managed_environment_id');
tests/Feature/Filament/InventoryKpiActivityAgreementTest.php:29:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/InventoryKpiActivityAgreementTest.php:68:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/OpsUx/FailureSanitizationTest.php:58:        ->get(route('admin.operations.view', [
tests/Feature/Auth/SessionSeparationSmokeTest.php:38:        ->get(EnvironmentDashboard::getUrl(tenant: $tenant))
tests/Feature/Auth/SessionSeparationSmokeTest.php:43:        ->get(EnvironmentDashboard::getUrl(tenant: $tenant))
tests/Feature/Filament/WorkspaceOverviewLandingTest.php:23:        ->get(route('admin.workspace.home', ['workspace' => $workspace]))
tests/Feature/Filament/WorkspaceOverviewLandingTest.php:44:        ->assertRedirect(route('filament.admin.pages.choose-workspace'));
app/Support/Concerns/DerivesWorkspaceIdFromTenantWhenPresent.php:12: * Like DerivesWorkspaceIdFromTenant, but allows managed_environment_id to be null.
app/Support/Concerns/DerivesWorkspaceIdFromTenantWhenPresent.php:14: * When managed_environment_id IS present the trait enforces the same workspace-derivation
app/Support/Concerns/DerivesWorkspaceIdFromTenantWhenPresent.php:16: * When managed_environment_id IS NULL the caller MUST supply workspace_id explicitly.
app/Support/Concerns/DerivesWorkspaceIdFromTenantWhenPresent.php:33:        $tenantId = $model->getAttribute('managed_environment_id');
app/Support/Concerns/DerivesWorkspaceIdFromTenantWhenPresent.php:93:        if (! $model->exists || ! $model->isDirty('managed_environment_id')) {
app/Support/Concerns/DerivesWorkspaceIdFromTenantWhenPresent.php:97:        $originalTenantId = $model->getOriginal('managed_environment_id');
tests/Feature/Filament/TenantLifecyclePresentationAcrossTenantSurfacesTest.php:48:        ->get(route('admin.workspace.managed-environments.index', ['workspace' => $workspace]))
app/Services/Intune/BackupService.php:44:            ->where('managed_environment_id', $tenant->id)
app/Services/Intune/BackupService.php:51:                'managed_environment_id' => $tenant->id,
app/Services/Intune/BackupService.php:162:        if ($backupSet->trashed() || $backupSet->managed_environment_id !== $tenant->id) {
app/Services/Intune/BackupService.php:185:            ->where('managed_environment_id', $tenant->id)
app/Services/Intune/BackupService.php:354:            'managed_environment_id' => $tenant->id,
app/Services/Intune/BackupService.php:396:            'managed_environment_id' => $tenant->id,
app/Services/Intune/BackupService.php:534:            'managed_environment_id' => $tenant->getKey(),
tests/Feature/Auth/EntraCallbackUpsertByTidOidTest.php:45:        ->get(route('auth.entra.callback', ['code' => 'code-123', 'state' => $state]));
tests/Feature/Auth/EntraCallbackUpsertByTidOidTest.php:50:        ->where('entra_tenant_id', 'tenant-1')
tests/Feature/Filament/OperationRunDerivedStateMemoizationTest.php:24:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/OpsUx/ActivityFeedbackSurfaceTest.php:18:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/OpsUx/ActivityFeedbackSurfaceTest.php:44:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/OpsUx/ActivityFeedbackSurfaceTest.php:72:        'managed_environment_id' => (int) $foreignTenant->getKey(),
tests/Feature/OpsUx/ActivityFeedbackSurfaceTest.php:100:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/OpsUx/ActivityFeedbackSurfaceTest.php:144:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/OpsUx/ActivityFeedbackSurfaceTest.php:179:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/OpsUx/ActivityFeedbackSurfaceTest.php:220:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/OpsUx/ActivityFeedbackSurfaceTest.php:257:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/OpsUx/ActivityFeedbackSurfaceTest.php:267:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/OpsUx/ActivityFeedbackSurfaceTest.php:302:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/OpsUx/ActivityFeedbackSurfaceTest.php:337:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/OpsUx/ActivityFeedbackSurfaceTest.php:374:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/OpsUx/ActivityFeedbackSurfaceTest.php:417:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/OpsUx/ActivityFeedbackSurfaceTest.php:456:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/OpsUx/ActivityFeedbackSurfaceTest.php:490:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/OpsUx/ActivityFeedbackSurfaceTest.php:526:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/OpsUx/ActivityFeedbackSurfaceTest.php:560:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/OpsUx/ActivityFeedbackSurfaceTest.php:584:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/OpsUx/ActivityFeedbackSurfaceTest.php:594:        ->get(InventoryItemResource::getUrl('index', panel: 'admin', tenant: $tenant));
tests/Feature/OpsUx/ActivityFeedbackSurfaceTest.php:611:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Auth/SystemPanelAuthTest.php:25:        'managed_environment_id' => null,
tests/Feature/Auth/SystemPanelAuthTest.php:46:        ->where('managed_environment_id', $platformTenant->getKey())
tests/Feature/Auth/SystemPanelAuthTest.php:59:        'managed_environment_id' => null,
tests/Feature/Auth/SystemPanelAuthTest.php:78:        ->where('managed_environment_id', $platformTenant->getKey())
tests/Feature/Auth/SystemPanelAuthTest.php:91:        'managed_environment_id' => null,
tests/Feature/Auth/SystemPanelAuthTest.php:112:        ->where('managed_environment_id', $platformTenant->getKey())
tests/Feature/Auth/SystemPanelAuthTest.php:125:        'managed_environment_id' => null,
tests/Feature/Auth/SystemPanelAuthTest.php:147:        'managed_environment_id' => null,
tests/Feature/OpsUx/ProgressWidgetFiltersTest.php:18:        'managed_environment_id' => $tenant->id,
tests/Feature/OpsUx/ProgressWidgetFiltersTest.php:25:        'managed_environment_id' => $tenant->id,
tests/Feature/OpsUx/ProgressWidgetFiltersTest.php:32:        'managed_environment_id' => $tenant->id,
tests/Feature/OpsUx/ProgressWidgetFiltersTest.php:55:        'managed_environment_id' => $tenant->id,
tests/Unit/Support/Inventory/TenantCoverageTruthResolverTest.php:53:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Unit/Support/Inventory/TenantCoverageTruthResolverTest.php:58:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Unit/Support/Inventory/TenantCoverageTruthResolverTest.php:63:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Unit/Support/Inventory/TenantCoverageTruthResolverTest.php:135:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Auth/AdminLoginIsEntraOnlyTest.php:10:    $response->assertSee(route('auth.entra.redirect'), false);
tests/Feature/Filament/Localization/PolicyInventoryLocalizationTest.php:69:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/Filament/Localization/PolicyInventoryLocalizationTest.php:76:        ->set('tableFilters.visibility.value', 'provider_missing')
tests/Feature/Filament/Localization/PolicyInventoryLocalizationTest.php:109:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/Filament/Localization/PolicyInventoryLocalizationTest.php:113:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/Filament/Localization/PolicyInventoryLocalizationTest.php:135:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/Filament/Localization/PolicyInventoryLocalizationTest.php:141:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/Filament/Localization/PolicyInventoryLocalizationTest.php:168:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/Filament/Localization/PolicyInventoryLocalizationTest.php:174:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/Auth/AdminLocalSmokeLoginTest.php:17:    $response = $this->get(route('admin.local.smoke-login', [
tests/Feature/Auth/AdminLocalSmokeLoginTest.php:24:        ->assertRedirect(EnvironmentDashboard::getUrl(tenant: $tenant))
tests/Feature/Auth/AdminLocalSmokeLoginTest.php:38:    $this->get(EnvironmentDashboard::getUrl(tenant: $tenant))->assertSuccessful();
tests/Feature/Auth/BreakGlassWorkspaceOwnerRecoveryTest.php:27:        'managed_environment_id' => null,
app/Observers/ProviderCredentialObserver.php:161:                    'entra_tenant_id' => (string) $connection->entra_tenant_id,
tests/Unit/Support/Ai/GovernedAiExecutionBoundaryTest.php:73:        ->and($audit?->managed_environment_id)->toBe((int) $tenant->getKey())
tests/Feature/Filament/SharedVerificationReportFamilyContractTest.php:39:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/SharedVerificationReportFamilyContractTest.php:87:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/SharedVerificationReportFamilyContractTest.php:107:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/SharedVerificationReportFamilyContractTest.php:119:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/SharedVerificationReportFamilyContractTest.php:120:        'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Feature/Filament/SharedVerificationReportFamilyContractTest.php:166:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/SharedVerificationReportFamilyContractTest.php:172:                'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Feature/Guards/ArtifactSourceProviderTruthGuardTest.php:16:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Guards/ArtifactSourceProviderTruthGuardTest.php:21:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Guards/ArtifactSourceProviderTruthGuardTest.php:25:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Guards/ArtifactSourceProviderTruthGuardTest.php:47:        'tenant_id' => 2,
tests/Feature/Guards/ArtifactSourceProviderTruthGuardTest.php:48:        'managed_environment_id' => 2,
tests/Feature/OpsUx/TargetScopeConcurrencyLimiterTest.php:14:    $lockA = $limiter->acquireSlot($tenantId, ['entra_tenant_id' => '00000000-0000-0000-0000-000000000001']);
tests/Feature/OpsUx/TargetScopeConcurrencyLimiterTest.php:17:    $lockB = $limiter->acquireSlot($tenantId, ['entra_tenant_id' => '00000000-0000-0000-0000-000000000001']);
tests/Feature/OpsUx/TargetScopeConcurrencyLimiterTest.php:20:    $lockOtherScope = $limiter->acquireSlot($tenantId, ['entra_tenant_id' => '00000000-0000-0000-0000-000000000002']);
app/Services/AdapterRunReconciler.php:29:     * @param  array{type?: string|null, managed_environment_id?: int|null, older_than_minutes?: int, limit?: int, dry_run?: bool}  $options
app/Services/AdapterRunReconciler.php:35:        $tenantId = $options['managed_environment_id'] ?? null;
app/Services/AdapterRunReconciler.php:63:            $query->where('managed_environment_id', $tenantId);
app/Services/AdapterRunReconciler.php:113:            ->where('managed_environment_id', $run->managed_environment_id)
tests/Feature/Auth/OidcFailureRedirectsSafelyTest.php:29:        ->get(route('auth.entra.callback', ['code' => 'code-123', 'state' => 'wrong-state']));
tests/Feature/Auth/OidcFailureRedirectsSafelyTest.php:49:        ->get(route('auth.entra.callback', ['code' => 'code-123', 'state' => $state]));
tests/Feature/Auth/OidcFailureRedirectsSafelyTest.php:75:        ->get(route('auth.entra.callback', ['code' => 'code-123', 'state' => $state]));
tests/Feature/OpsUx/BulkEnqueueIdempotencyTest.php:13:    $tenant = ManagedEnvironment::factory()->create(['managed_environment_id' => $entraTenantId]);
tests/Feature/OpsUx/BulkEnqueueIdempotencyTest.php:25:        targetScope: ['entra_tenant_id' => $entraTenantId],
tests/Feature/OpsUx/BulkEnqueueIdempotencyTest.php:36:        targetScope: ['entra_tenant_id' => $entraTenantId],
tests/Feature/OpsUx/BulkEnqueueIdempotencyTest.php:47:    expect(OperationRun::query()->where('managed_environment_id', $tenant->id)->count())->toBe(1);
tests/Feature/OpsUx/BulkEnqueueIdempotencyTest.php:52:    $tenant = ManagedEnvironment::factory()->create(['managed_environment_id' => $entraTenantId]);
tests/Feature/OpsUx/BulkEnqueueIdempotencyTest.php:65:        targetScope: ['entra_tenant_id' => $entraTenantId],
tests/Feature/Auth/BreakGlassModeTest.php:20:        'managed_environment_id' => null,
tests/Feature/Auth/BreakGlassModeTest.php:75:    expect(AuditLog::query()->where('managed_environment_id', $tenant->getKey())->where('action', 'platform.break_glass.enter')->exists())->toBeTrue();
tests/Feature/Auth/BreakGlassModeTest.php:76:    expect(AuditLog::query()->where('managed_environment_id', $tenant->getKey())->where('action', 'platform.break_glass.exit')->exists())->toBeTrue();
tests/Feature/Auth/BreakGlassModeTest.php:107:    expect(AuditLog::query()->where('managed_environment_id', $tenant->getKey())->where('action', 'platform.break_glass.expired')->exists())->toBeTrue();
tests/Feature/Guards/ManagedEnvironmentCanonicalRouteContractTest.php:25:        ManagedEnvironmentResource::getUrl('index'),
tests/Feature/Guards/ManagedEnvironmentCanonicalRouteContractTest.php:26:        ManagedEnvironmentResource::getUrl('view', ['record' => $tenant]),
tests/Feature/Guards/ManagedEnvironmentCanonicalRouteContractTest.php:27:        ManagedEnvironmentResource::getUrl('edit', ['record' => $tenant]),
tests/Feature/Guards/ManagedEnvironmentCanonicalRouteContractTest.php:28:        ManagedEnvironmentResource::getUrl('memberships', ['record' => $tenant]),
tests/Feature/Guards/ManagedEnvironmentCanonicalRouteContractTest.php:34:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Guards/ManagedEnvironmentCanonicalRouteContractTest.php:50:        ->and(ManagedEnvironmentLinks::providerConnectionsUrl($tenant))->toContain('/admin/provider-connections?managed_environment_id='.(string) $tenant->external_id)
tests/Unit/Support/Ai/AiDecisionAuditMetadataTest.php:58:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/BackupItemsNoPollingTest.php:19:        'managed_environment_id' => $tenant->id,
app/Jobs/CaptureBaselineSnapshotJob.php:103:        $sourceEnvironmentId = (int) ($context['source_environment_id'] ?? 0);
app/Jobs/CaptureBaselineSnapshotJob.php:601:            ->where('managed_environment_id', $sourceTenant->getKey());
app/Services/Inventory/InventoryMissingService.php:31:            ->where('managed_environment_id', $tenant->getKey())
app/Services/Inventory/InventoryMissingService.php:48:            ->where('managed_environment_id', $tenant->getKey())
tests/Feature/Auth/PostLoginRoutingByMembershipTest.php:54:        'entra_tenant_id' => 'tenant-1',
tests/Feature/Auth/PostLoginRoutingByMembershipTest.php:62:        ->get(route('auth.entra.callback', ['code' => 'code-123', 'state' => $state]));
tests/Feature/Auth/PostLoginRoutingByMembershipTest.php:72:        'entra_tenant_id' => 'tenant-1',
tests/Feature/Auth/PostLoginRoutingByMembershipTest.php:89:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/Auth/PostLoginRoutingByMembershipTest.php:101:        ->get(route('auth.entra.callback', ['code' => 'code-123', 'state' => $state]));
tests/Feature/Auth/PostLoginRoutingByMembershipTest.php:111:        'entra_tenant_id' => 'tenant-1',
tests/Feature/Auth/PostLoginRoutingByMembershipTest.php:129:            'managed_environment_id' => $tenant->getKey(),
tests/Feature/Auth/PostLoginRoutingByMembershipTest.php:142:        ->get(route('auth.entra.callback', ['code' => 'code-123', 'state' => $state]));
tests/Unit/Support/Ai/AiApprovedSourceInputsTest.php:27:        ->and($source)->not->toHaveKeys(['tenant', 'managed_environment_id', 'workspace', 'workspace_id']);
tests/Feature/Filament/TenantDashboardArrivalContextPerformanceTest.php:68:    $arrivalUrl = EnvironmentDashboard::getUrl([
tests/Feature/OpsUx/TerminalNotificationIdempotencyTest.php:16:        'managed_environment_id' => $tenant->getKey(),
app/Services/Inventory/InventorySyncService.php:56:            'managed_environment_id' => (int) $tenant->getKey(),
app/Services/Inventory/InventorySyncService.php:364:                            'managed_environment_id' => $tenant->getKey(),
app/Services/Inventory/InventorySyncService.php:674:            'managed_environment_id' => $tenant->getKey(),
tests/Feature/Auth/TenantChooserSelectionTest.php:55:        ->assertRedirect(EnvironmentDashboard::getUrl(tenant: $activeTenant));
tests/Feature/Auth/TenantChooserSelectionTest.php:59:    if (Schema::hasColumn('users', 'last_tenant_id')) {
tests/Feature/Auth/TenantChooserSelectionTest.php:60:        expect($user->last_tenant_id)->toBe($activeTenant->getKey());
tests/Feature/Auth/TenantChooserSelectionTest.php:67:            ->where('managed_environment_id', $activeTenant->getKey())
tests/Feature/Auth/TenantChooserSelectionTest.php:81:        ->post(route('admin.select-environment'), ['managed_environment_id' => (int) $tenant->getKey()])
tests/Feature/Filament/EntraGroupAdminScopeTest.php:22:    expect(EntraGroupResource::getUrl(panel: 'admin'))
tests/Feature/Filament/EntraGroupAdminScopeTest.php:52:    $url = EntraGroupResource::getUrl(panel: 'admin', tenant: $tenantA);
tests/Feature/Filament/EntraGroupAdminScopeTest.php:95:    $groupAUrl = EntraGroupResource::getUrl('view', ['record' => $groupA], panel: 'admin', tenant: $tenantA);
tests/Feature/Filament/EntraGroupAdminScopeTest.php:96:    $groupBUrl = EntraGroupResource::getUrl('view', ['record' => $groupB], panel: 'admin', tenant: $tenantA);
tests/Feature/Filament/EntraGroupAdminScopeTest.php:126:    $mismatchedWorkspaceUrl = EntraGroupResource::getUrl(
tests/Feature/OpsUx/SummaryCountsWhitelistTest.php:16:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/OpsUx/SummaryCountsWhitelistTest.php:57:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/OpsUx/SummaryCountsWhitelistTest.php:97:        'managed_environment_id' => $tenant->getKey(),
app/Jobs/BulkPolicySyncJob.php:34:            tenantId: (int) $run->managed_environment_id,
tests/Feature/Auth/BackupHealthBrowserFixtureLoginTest.php:20:    $tenantRouteKey = $scenarioConfig['managed_environment_id'] ?? $scenarioConfig['tenant_external_id'];
tests/Feature/Auth/BackupHealthBrowserFixtureLoginTest.php:30:    $this->get(route('admin.local.backup-health-browser-fixture-login'))
tests/Feature/Auth/BackupHealthBrowserFixtureLoginTest.php:31:        ->assertRedirect(EnvironmentDashboard::getUrl(tenant: $tenant))
tests/Feature/Auth/BackupHealthBrowserFixtureLoginTest.php:40:    $this->get(EnvironmentDashboard::getUrl(tenant: $tenant))
tests/Feature/Auth/BackupHealthBrowserFixtureLoginTest.php:43:    $this->get(BackupSetResource::getUrl('index', tenant: $tenant))
app/Services/Inventory/DependencyTargets/DependencyTargetResolver.php:167:            ->where('managed_environment_id', $tenant->getKey())
app/Services/Inventory/DependencyTargets/DependencyTargetResolver.php:170:            ->get(['id', 'managed_environment_id', 'policy_type', 'external_id', 'display_name']);
tests/Feature/Filament/ProviderConnectionCapabilitySummaryTest.php:19:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/ProviderConnectionCapabilitySummaryTest.php:21:        'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Feature/Filament/ProviderConnectionCapabilitySummaryTest.php:42:        ->get(ProviderConnectionResource::getUrl('view', [
tests/Feature/Filament/ProviderConnectionCapabilitySummaryTest.php:44:            'managed_environment_id' => $tenant->external_id,
tests/Unit/Support/OperatorExplanation/OperationRunExplanationTest.php:21:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Auth/EntraCallbackRateLimiterTest.php:13:            ->get(route('auth.entra.callback'));
app/Jobs/BackfillWorkspaceIdsJob.php:60:                    ->join('managed_environments', 'managed_environments.id', '=', sprintf('%s.managed_environment_id', $this->table))
app/Jobs/BackfillWorkspaceIdsJob.php:153:            ->join('managed_environments', 'managed_environments.id', '=', sprintf('%s.managed_environment_id', $this->table))
tests/Feature/OpsUx/ProgressWidgetOverflowTest.php:15:        'managed_environment_id' => $tenant->id,
tests/Feature/OpsUx/ProgressWidgetOverflowTest.php:24:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/WorkspaceOverviewNavigationTest.php:14:        ->get(route('admin.workspace.home', ['workspace' => $tenant->workspace]))
tests/Feature/Filament/WorkspaceOverviewNavigationTest.php:21:    expect(Filament::getPanel('admin')->getHomeUrl())->toBe(route('admin.home'));
tests/Feature/Filament/WorkspaceOverviewNavigationTest.php:22:    expect((string) $response->getContent())->toContain('href="'.route('admin.home').'"');
tests/Feature/Filament/WorkspaceOverviewNavigationTest.php:23:    expect((string) $response->getContent())->toContain('href="'.MyFindingsInbox::getUrl(panel: 'admin').'"');
tests/Feature/Auth/DisabledUserLoginIsBlockedTest.php:30:        'entra_tenant_id' => 'tenant-1',
tests/Feature/Auth/DisabledUserLoginIsBlockedTest.php:53:        ->get(route('auth.entra.callback', ['code' => 'code-123', 'state' => $state]));
tests/Feature/PolicyCaptureSnapshotIdempotencyTest.php:38:        ->where('managed_environment_id', $tenant->id)
app/Services/Inventory/DependencyTargets/DependencyTargetDto.php:75:        $url = $inventoryItemId ? InventoryItemResource::getUrl('view', ['record' => $inventoryItemId], tenant: $tenant) : null;
tests/Feature/Filament/EnvironmentReviewHeaderDisciplineTest.php:16:function environmentReviewHeaderActions(Testable $component): array
tests/Feature/Filament/EnvironmentReviewHeaderDisciplineTest.php:20:    if ($instance->getCachedHeaderActions() === []) {
tests/Feature/Filament/EnvironmentReviewHeaderDisciplineTest.php:21:        $instance->cacheInteractsWithHeaderActions();
tests/Feature/Filament/EnvironmentReviewHeaderDisciplineTest.php:24:    return $instance->getCachedHeaderActions();
tests/Feature/Filament/EnvironmentReviewHeaderDisciplineTest.php:29:    return collect(environmentReviewHeaderActions($component))
tests/Feature/Filament/EnvironmentReviewHeaderDisciplineTest.php:39:    return collect(environmentReviewHeaderActions($component))
tests/Feature/Auth/AdminPanelAuthTest.php:15:    $response->assertSee(route('auth.entra.redirect'), escape: false);
tests/Feature/Auth/AdminPanelAuthTest.php:27:    $response = $this->get(route('auth.entra.redirect'));
tests/Feature/Guards/FilamentTableStandardsGuardTest.php:159:        foreach (['->persistSearchInSession()', '->persistSortInSession()', '->persistFiltersInSession()'] as $pattern) {
app/Services/Inventory/DependencyQueryService.php:14:            ->where('managed_environment_id', $item->managed_environment_id)
app/Services/Inventory/DependencyQueryService.php:29:            ->where('managed_environment_id', $item->managed_environment_id)
tests/Feature/Filament/BaselineSnapshotStructuredRenderingTest.php:89:        ->get(BaselineSnapshotResource::getUrl('view', ['record' => $snapshot], panel: 'admin'))
tests/Feature/Filament/BaselineSnapshotStructuredRenderingTest.php:97:        ->assertSee(BaselineProfileResource::getUrl('view', ['record' => $profile], panel: 'admin'), false)
tests/Feature/Filament/BaselineSnapshotStructuredRenderingTest.php:110:        ->get(BaselineSnapshotResource::getUrl(panel: 'admin'))
tests/Feature/Filament/BaselineSnapshotStructuredRenderingTest.php:113:        ->assertSee(BaselineSnapshotResource::getUrl('view', ['record' => $snapshot], panel: 'admin'))
tests/Feature/Auth/WorkspaceFirstManagedEnvironmentAccessTest.php:66:        'managed_environment_id' => (int) $allowedTenant->getKey(),
tests/Feature/Auth/WorkspaceFirstManagedEnvironmentAccessTest.php:86:        ->and(app(WorkspaceContext::class)->lastTenantId())->toBeNull()
tests/Feature/Hardening/ExecuteRestoreRunJobGateTest.php:29:        'managed_environment_id' => $tenant->id,
tests/Feature/Hardening/ExecuteRestoreRunJobGateTest.php:36:        'managed_environment_id' => $tenant->id,
tests/Feature/Hardening/ExecuteRestoreRunJobGateTest.php:84:        'managed_environment_id' => $tenant->id,
tests/Feature/Hardening/ExecuteRestoreRunJobGateTest.php:91:        'managed_environment_id' => $tenant->id,
app/Jobs/ProviderConnectionHealthCheckJob.php:75:            ->where('managed_environment_id', $tenant->getKey())
app/Jobs/ProviderConnectionHealthCheckJob.php:204:                            'value' => (string) ($targetScope['scope_identifier'] ?? $connection->entra_tenant_id),
tests/Feature/Filament/DerivedStateMutationFreshnessTest.php:35:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/DerivedStateMutationFreshnessTest.php:74:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/DerivedStateMutationFreshnessTest.php:108:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/DerivedStateMutationFreshnessTest.php:152:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/DerivedStateMutationFreshnessTest.php:156:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/DerivedStateMutationFreshnessTest.php:162:        'managed_environment_id' => (int) $tenant->getKey(),
app/Services/Inventory/DependencyExtractionService.php:31:                (string) ($e['managed_environment_id'] ?? ''),
app/Services/Inventory/DependencyExtractionService.php:51:        /** @var Collection<int, array{managed_environment_id:int,source_type:string,source_id:string,target_type:string,target_id:?string,relationship_type:string,metadata:array}> $sorted */
app/Services/Inventory/DependencyExtractionService.php:74:                ['managed_environment_id', 'source_type', 'source_id', 'target_type', 'target_id', 'relationship_type'],
app/Services/Inventory/DependencyExtractionService.php:122:                    'managed_environment_id' => (int) $item->managed_environment_id,
app/Services/Inventory/DependencyExtractionService.php:142:                    'managed_environment_id' => (int) $item->managed_environment_id,
app/Services/Inventory/DependencyExtractionService.php:192:                    'managed_environment_id' => (int) $item->managed_environment_id,
tests/Unit/Support/PortfolioTriage/PortfolioArrivalContextResolverTest.php:110:                'leak' => ['managed_environment_id' => 999],
tests/Feature/Filament/WorkspaceOnlySurfaceTenantIndependenceTest.php:38:        ->get(AlertRuleResource::getUrl(panel: 'admin'))
tests/Feature/Filament/WorkspaceOnlySurfaceTenantIndependenceTest.php:43:        ->get(BaselineProfileResource::getUrl(panel: 'admin'))
tests/Feature/Filament/WorkspaceOnlySurfaceTenantIndependenceTest.php:48:        ->get(ManagedEnvironmentResource::getUrl(panel: 'admin'))
tests/Feature/Filament/WorkspaceOnlySurfaceTenantIndependenceTest.php:92:            ->get(AlertRuleResource::getUrl(panel: 'admin'))
tests/Feature/Filament/WorkspaceOnlySurfaceTenantIndependenceTest.php:97:            ->get(BaselineProfileResource::getUrl(panel: 'admin'))
tests/Feature/Filament/WorkspaceOnlySurfaceTenantIndependenceTest.php:102:            ->get(ManagedEnvironmentResource::getUrl(panel: 'admin'))
tests/Feature/Hardening/RestoreRunActionDisabledStateTest.php:20:    $backupSet = BackupSet::factory()->create(['managed_environment_id' => $tenant->id]);
tests/Feature/Hardening/RestoreRunActionDisabledStateTest.php:23:        'managed_environment_id' => $tenant->id,
tests/Feature/Hardening/RestoreRunActionDisabledStateTest.php:44:    $backupSet = BackupSet::factory()->create(['managed_environment_id' => $tenant->id]);
tests/Feature/Hardening/RestoreRunActionDisabledStateTest.php:47:        'managed_environment_id' => $tenant->id,
tests/Feature/Hardening/RestoreRunActionDisabledStateTest.php:68:    $backupSet = BackupSet::factory()->create(['managed_environment_id' => $tenant->id]);
tests/Feature/Hardening/RestoreRunActionDisabledStateTest.php:71:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/PolicySyncCtaPlacementTest.php:18:    $instance->cacheInteractsWithHeaderActions();
tests/Feature/Filament/PolicySyncCtaPlacementTest.php:20:    foreach ($instance->getCachedHeaderActions() as $action) {
tests/Feature/Filament/PolicySyncCtaPlacementTest.php:52:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/RestoreItemSelectionTest.php:19:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/RestoreItemSelectionTest.php:26:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/RestoreItemSelectionTest.php:33:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/RestoreItemSelectionTest.php:41:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/RestoreItemSelectionTest.php:49:        'managed_environment_id' => $tenant->id,
app/Services/Findings/FindingNotificationService.php:125:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/078/KpiHeaderTenantlessTest.php:21:            'managed_environment_id' => (int) $tenant->getKey(),
app/Jobs/ProviderComplianceSnapshotJob.php:65:            ->where('managed_environment_id', $tenant->getKey())
tests/Unit/Support/OpsUx/GovernanceRunDiagnosticSummaryBuilderTest.php:18:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Unit/Support/OpsUx/GovernanceRunDiagnosticSummaryBuilderTest.php:53:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Unit/Support/OpsUx/GovernanceRunDiagnosticSummaryBuilderTest.php:114:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Unit/Support/OpsUx/GovernanceRunDiagnosticSummaryBuilderTest.php:209:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/078/OperationsListTenantlessSafetyTest.php:21:            'managed_environment_id' => null,
tests/Feature/078/OperationsListTenantlessSafetyTest.php:30:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/078/OperationsListTenantlessSafetyTest.php:53:            'managed_environment_id' => null,
tests/Feature/078/OperationsListTenantlessSafetyTest.php:62:            'managed_environment_id' => (int) $tenant->getKey(),
app/Jobs/AddPoliciesToBackupSetJob.php:94:                ->where('managed_environment_id', $tenant->getKey())
app/Jobs/AddPoliciesToBackupSetJob.php:201:                ->where('managed_environment_id', $tenant->getKey())
app/Jobs/AddPoliciesToBackupSetJob.php:408:                        'managed_environment_id' => $tenant->getKey(),
app/Jobs/AddPoliciesToBackupSetJob.php:767:            'managed_environment_id' => $tenant->getKey(),
app/Jobs/AddPoliciesToBackupSetJob.php:803:            'managed_environment_id' => $tenant->getKey(),
tests/Feature/Filament/BackupSetUiEnforcementTest.php:37:        ->get(BackupSetResource::getUrl('index', panel: 'admin', tenant: $tenant))
tests/Feature/Filament/BackupSetUiEnforcementTest.php:46:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/Filament/BackupSetUiEnforcementTest.php:67:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/Filament/BackupSetUiEnforcementTest.php:121:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/Filament/BackupSetUiEnforcementTest.php:127:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/Filament/BackupSetUiEnforcementTest.php:139:        ->get(BackupSetResource::getUrl('index', tenant: $tenant))
app/Services/Findings/FindingExceptionService.php:78:                'managed_environment_id' => (int) $tenant->getKey(),
app/Services/Findings/FindingExceptionService.php:109:                'managed_environment_id' => (int) $tenant->getKey(),
app/Services/Findings/FindingExceptionService.php:210:                'managed_environment_id' => (int) $tenant->getKey(),
app/Services/Findings/FindingExceptionService.php:332:                'managed_environment_id' => (int) $tenant->getKey(),
app/Services/Findings/FindingExceptionService.php:435:                'managed_environment_id' => (int) $tenant->getKey(),
app/Services/Findings/FindingExceptionService.php:524:                'managed_environment_id' => (int) $tenant->getKey(),
app/Services/Findings/FindingExceptionService.php:592:        if ((int) $exception->workspace_id !== (int) $workspace->getKey() || (int) $exception->managed_environment_id !== (int) $tenant->getKey()) {
app/Services/Findings/FindingExceptionService.php:609:        if ((int) $exception->workspace_id !== (int) $tenant->workspace_id || (int) $exception->managed_environment_id !== (int) $tenant->getKey()) {
app/Services/Findings/FindingExceptionService.php:625:            $tenant = ManagedEnvironment::query()->findOrFail((int) $exception->managed_environment_id);
app/Services/Findings/FindingExceptionService.php:644:        if ((int) $finding->managed_environment_id !== (int) $tenant->getKey()) {
app/Services/Findings/FindingExceptionService.php:823:                'managed_environment_id' => (int) $exception->managed_environment_id,
tests/Feature/Hardening/BlockedWriteAuditLogTest.php:25:    $backupSet = BackupSet::factory()->create(['managed_environment_id' => $tenant->id]);
tests/Feature/Hardening/BlockedWriteAuditLogTest.php:44:        ->where('managed_environment_id', $tenant->id)
tests/Feature/Hardening/BlockedWriteAuditLogTest.php:66:    $backupSet = BackupSet::factory()->create(['managed_environment_id' => $tenant->id]);
tests/Feature/Hardening/BlockedWriteAuditLogTest.php:85:        ->where('managed_environment_id', $tenant->id)
tests/Feature/Hardening/BlockedWriteAuditLogTest.php:109:    $backupSet = BackupSet::factory()->create(['managed_environment_id' => $tenant->id]);
tests/Feature/Hardening/BlockedWriteAuditLogTest.php:128:        ->where('managed_environment_id', $tenant->id)
tests/Feature/Hardening/RestoreStartGateBypassTest.php:22:                && ($context['managed_environment_id'] ?? null) === $tenant->getKey()
tests/Feature/Filament/Pages/WorkspaceContextClosureRecoveryTest.php:35:        ->get(route('filament.admin.pages.choose-workspace'))
tests/Feature/078/CanonicalDetailRenderTest.php:26:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/078/CanonicalDetailRenderTest.php:33:                    'entra_tenant_id' => '11111111-1111-1111-1111-111111111111',
tests/Feature/078/CanonicalDetailRenderTest.php:56:    public function test_renders_canonical_detail_gracefully_when_tenant_id_is_null(): void
tests/Feature/078/CanonicalDetailRenderTest.php:64:            'managed_environment_id' => null,
tests/Feature/078/CanonicalDetailRenderTest.php:85:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/078/CanonicalDetailRenderTest.php:105:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Hardening/RestoreAssignmentsJobGateTest.php:29:        'managed_environment_id' => $tenant->id,
tests/Feature/Hardening/RestoreAssignmentsJobGateTest.php:36:        'managed_environment_id' => $tenant->id,
tests/Feature/Hardening/RestoreAssignmentsJobGateTest.php:101:        'managed_environment_id' => $tenant->id,
tests/Feature/Hardening/RestoreAssignmentsJobGateTest.php:108:        'managed_environment_id' => $tenant->id,
tests/Feature/078/LegacyRoutesReturnNotFoundTest.php:14:    public function test_returns_404_for_legacy_tenant_scoped_operation_detail_urls(): void
tests/Feature/078/LegacyRoutesReturnNotFoundTest.php:20:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Unit/Support/ProductTelemetry/ProductTelemetryRecorderTest.php:35:        ->and($event->managed_environment_id)->toBe((int) $tenant->getKey())
tests/Unit/Support/ProductTelemetry/ProductTelemetryRecorderTest.php:47:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Unit/Support/ProductTelemetry/ProductTelemetryRecorderTest.php:75:        ->and($event->managed_environment_id)->toBe((int) $tenant->getKey())
app/Services/Findings/FindingWorkflowService.php:548:        if ((int) $finding->managed_environment_id !== (int) $tenant->getKey()) {
app/Jobs/SyncPoliciesJob.php:95:                    ->where('managed_environment_id', $tenant->getKey())
tests/Feature/Filament/ProviderConnectionsDbOnlyTest.php:16:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/Filament/ProviderConnectionsDbOnlyTest.php:18:        'entra_tenant_id' => fake()->uuid(),
tests/Feature/Filament/ProviderConnectionsDbOnlyTest.php:27:        $this->get(ProviderConnectionResource::getUrl('index', tenant: $tenant))
tests/Feature/Filament/ProviderConnectionsDbOnlyTest.php:31:        $this->get(ProviderConnectionResource::getUrl('edit', ['record' => $connection], tenant: $tenant))
tests/Feature/Filament/ProviderConnectionsDbOnlyTest.php:52:            ->set('tableFilters.default_only.isActive', true);
tests/Feature/Filament/ProviderConnectionsDbOnlyTest.php:67:        expect($visibleColumnNames)->not->toContain('entra_tenant_id');
tests/Feature/Filament/ProviderConnectionsDbOnlyTest.php:72:        expect($table->getColumn('entra_tenant_id')?->getLabel())->toBe('Microsoft tenant ID');
tests/Feature/Filament/ProviderConnectionsDbOnlyTest.php:73:        expect($table->getColumn('entra_tenant_id')?->isToggledHiddenByDefault())->toBeTrue();
tests/Feature/Filament/ProviderConnectionsDbOnlyTest.php:83:            ->assertSet('tableFilters.default_only.isActive', true);
tests/Feature/078/VerificationReportTenantlessTest.php:28:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/078/VerificationReportTenantlessTest.php:42:            'managed_environment_id' => (int) $tenant->getKey(),
app/Services/Findings/FindingAssignmentHygieneService.php:124:            ->join('managed_environments', 'managed_environments.id', '=', 'findings.managed_environment_id')
app/Services/Findings/FindingAssignmentHygieneService.php:133:                    ->on('hygiene_assignee_scope.managed_environment_id', '=', 'findings.managed_environment_id')
app/Services/Findings/FindingAssignmentHygieneService.php:138:                    ->select('managed_environment_id')
app/Services/Findings/FindingAssignmentHygieneService.php:139:                    ->groupBy('managed_environment_id'),
app/Services/Findings/FindingAssignmentHygieneService.php:142:                    $join->on('hygiene_environment_scope_state.managed_environment_id', '=', 'findings.managed_environment_id');
app/Services/Findings/FindingAssignmentHygieneService.php:151:                        ->on('hygiene_workflow_audit.managed_environment_id', '=', 'findings.managed_environment_id')
app/Services/Findings/FindingAssignmentHygieneService.php:156:            ->whereIn('findings.managed_environment_id', $visibleTenantIds === [] ? [-1] : $visibleTenantIds)
app/Services/Findings/FindingAssignmentHygieneService.php:304:            ->selectRaw('workspace_id, managed_environment_id, resource_id, max(recorded_at) as latest_workflow_activity_at')
app/Services/Findings/FindingAssignmentHygieneService.php:307:            ->groupBy('workspace_id', 'managed_environment_id', 'resource_id');
app/Services/Findings/FindingAssignmentHygieneService.php:312:        return '(findings.assignee_user_id is not null and ((hygiene_assignee_lookup.id is not null and hygiene_assignee_lookup.deleted_at is not null) or hygiene_assignee_workspace_membership.id is null or (hygiene_environment_scope_state.managed_environment_id is not null and hygiene_assignee_scope.id is null)))';
tests/Feature/Filament/WorkspaceOverviewGovernanceAttentionTest.php:45:        'managed_environment_id' => (int) $tenantActivity->getKey(),
tests/Feature/Filament/WorkspaceOverviewGovernanceAttentionTest.php:66:        'managed_environment_id' => (int) $tenantAlerts->getKey(),
tests/Feature/Filament/WorkspaceOverviewGovernanceAttentionTest.php:95:        'managed_environment_id' => (int) $tenantExpiring->getKey(),
tests/Feature/Filament/WorkspaceOverviewGovernanceAttentionTest.php:100:        'managed_environment_id' => (int) $tenantExpiring->getKey(),
tests/Feature/Filament/WorkspaceOverviewGovernanceAttentionTest.php:158:        'managed_environment_id' => (int) $tenantLapsed->getKey(),
tests/Feature/Filament/WorkspaceOverviewGovernanceAttentionTest.php:258:        'managed_environment_id' => (int) $operationsTenant->getKey(),
tests/Feature/Directory/ProviderBackedDirectoryStartTest.php:42:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/078/TenantListRedirectTest.php:14:    public function test_returns_not_found_for_legacy_tenant_scoped_operations_list_url(): void
app/Jobs/SyncRoleDefinitionsJob.php:65:                'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/InventoryHubDbOnlyTest.php:15:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/Filament/InventoryHubDbOnlyTest.php:23:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/Filament/InventoryHubDbOnlyTest.php:37:        $this->get(InventoryItemResource::getUrl('index', tenant: $tenant))
tests/Feature/Filament/InventoryHubDbOnlyTest.php:42:        $this->get(InventoryCoverage::getUrl(tenant: $tenant))
tests/Unit/Support/ProductTelemetry/ProductTelemetrySummaryQueryTest.php:31:            'managed_environment_id' => (int) $tenantA->getKey(),
tests/Unit/Support/ProductTelemetry/ProductTelemetrySummaryQueryTest.php:44:            'managed_environment_id' => (int) $tenantB->getKey(),
tests/Unit/Support/ProductTelemetry/ProductTelemetrySummaryQueryTest.php:57:            'managed_environment_id' => (int) $tenantB->getKey(),
tests/Unit/Support/ProductTelemetry/ProductTelemetrySummaryQueryTest.php:70:            'managed_environment_id' => (int) $tenantA->getKey(),
tests/Feature/078/RelatedLinksOnDetailTest.php:25:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/078/RelatedLinksOnDetailTest.php:30:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/078/RelatedLinksOnDetailTest.php:37:        $expectedUrl = RestoreRunResource::getUrl('view', ['record' => $restoreRun], tenant: $tenant);
tests/Feature/078/RelatedLinksOnDetailTest.php:55:            'managed_environment_id' => null,
tests/Feature/078/RelatedLinksOnDetailTest.php:77:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/078/RelatedLinksOnDetailTest.php:97:    public function test_hides_tenant_scoped_follow_up_links_when_the_run_tenant_is_not_selector_eligible(): void
tests/Feature/078/RelatedLinksOnDetailTest.php:119:            'managed_environment_id' => (int) $onboardingTenant->getKey(),
tests/Feature/078/RelatedLinksOnDetailTest.php:129:            ->assertDontSee(InventoryItemResource::getUrl('index', panel: 'admin', tenant: $onboardingTenant), false)
tests/Feature/Operations/ReconcileAdapterRunsJobTrackingTest.php:32:        ->whereNull('managed_environment_id')
tests/Feature/Operations/ReconcileAdapterRunsJobTrackingTest.php:62:        ->whereNull('managed_environment_id')
app/Jobs/ScanEntraAdminRolesJob.php:47:            ->where('managed_environment_id', $tenant->getKey())
app/Jobs/ScanEntraAdminRolesJob.php:66:                'managed_environment_id' => $this->tenantId,
tests/Feature/Spec085/TenantNavigationMonitoringShortcutsTest.php:24:        ->get(EnvironmentDashboard::getUrl(panel: 'admin', tenant: $tenant))
tests/Feature/Filament/NormalizedDetailFamilyContractTest.php:26:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/Filament/NormalizedDetailFamilyContractTest.php:34:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/Filament/NormalizedDetailFamilyContractTest.php:50:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/Filament/NormalizedDetailFamilyContractTest.php:66:        ->get(PolicyResource::getUrl('view', ['record' => $policy], tenant: $tenant));
tests/Feature/Filament/NormalizedDetailFamilyContractTest.php:75:        ->get(PolicyVersionResource::getUrl('view', ['record' => $version], tenant: $tenant));
tests/Feature/Filament/NormalizedDetailFamilyContractTest.php:165:        ->get(FindingResource::getUrl('view', ['record' => $finding], tenant: $tenant));
tests/Feature/Operations/ProviderBackedRunReasonAlignmentTest.php:24:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Operations/ProviderBackedRunReasonAlignmentTest.php:37:                'entra_tenant_id' => $tenant->managed_environment_id,
tests/Feature/Operations/ProviderBackedRunReasonAlignmentTest.php:86:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Operations/ProviderBackedRunReasonAlignmentTest.php:99:                'entra_tenant_id' => $tenant->managed_environment_id,
app/Services/Audit/WorkspaceAuditLogger.php:159:                'source_environment_id' => (int) $sourceEnvironment->getKey(),
app/Services/Audit/WorkspaceAuditLogger.php:161:                'target_environment_id' => (int) $targetEnvironment->getKey(),
app/Services/Audit/WorkspaceAuditLogger.php:197:                'source_environment_id' => (int) $sourceEnvironment->getKey(),
app/Services/Audit/WorkspaceAuditLogger.php:199:                'target_environment_id' => (int) $targetEnvironment->getKey(),
app/Services/Audit/WorkspaceAuditLogger.php:237:                'source_environment_id' => $sourceEnvironmentId,
app/Services/Audit/WorkspaceAuditLogger.php:239:                'target_environment_id' => (int) $targetEnvironment->getKey(),
tests/Feature/Guards/OperationRunLinkContractGuardTest.php:126:return route('admin.operations.view', ['run' => 123]);
tests/Feature/Guards/OperationRunLinkContractGuardTest.php:140:        ->and($violations[0]['snippet'])->toContain("route('admin.operations.view'")
tests/Feature/Spec085/OperationsIndexHeaderTest.php:25:        ->get(route('admin.operations.index', ['workspace' => $tenant->workspace]))
tests/Feature/Spec085/OperationsIndexHeaderTest.php:46:        ->get(route('admin.operations.index', ['workspace' => $entitledTenant->workspace]))
tests/Feature/Spec085/OperationsIndexHeaderTest.php:59:    $lastTenantIds = [
tests/Feature/Spec085/OperationsIndexHeaderTest.php:68:            WorkspaceContext::LAST_TENANT_IDS_SESSION_KEY => $lastTenantIds,
tests/Feature/Spec085/OperationsIndexHeaderTest.php:74:    expect(Filament::getTenant())->toBeNull();
tests/Feature/Spec085/OperationsIndexHeaderTest.php:81:        ->get(route('admin.operations.index', ['workspace' => $tenant->workspace]))
tests/Feature/Spec085/OperationsIndexHeaderTest.php:112:        ->from(route('admin.operations.index', ['workspace' => $activeTenant->workspace]))
tests/Feature/Spec085/OperationsIndexHeaderTest.php:114:        ->assertRedirect(route('admin.operations.index', ['workspace' => $activeTenant->workspace]));
tests/Feature/Filament/PolicyVersionAdminTenantParityTest.php:70:        ->get(PolicyVersionResource::getUrl('view', ['record' => $versionA], panel: 'admin', tenant: $tenantA))
tests/Feature/Filament/PolicyVersionAdminTenantParityTest.php:74:        ->get(PolicyVersionResource::getUrl('view', ['record' => $versionB], panel: 'admin', tenant: $tenantA))
tests/Feature/Filament/PolicyVersionAdminTenantParityTest.php:142:        ->get(PolicyVersionResource::getUrl('view', ['record' => $versionA], panel: 'admin'));
tests/Feature/Operations/AssignmentRunSummaryCountsTest.php:20:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Operations/AssignmentRunSummaryCountsTest.php:24:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Operations/AssignmentRunSummaryCountsTest.php:87:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Operations/AssignmentRunSummaryCountsTest.php:91:        'managed_environment_id' => (int) $tenant->getKey(),
app/Services/Audit/AuditEventBuilder.php:79:            'managed_environment_id' => $tenant?->getKey(),
app/Services/Audit/AuditEventBuilder.php:106:        if (is_numeric($attributes['managed_environment_id'] ?? null)) {
app/Services/Audit/AuditEventBuilder.php:107:            $tenant = ManagedEnvironment::query()->whereKey((int) $attributes['managed_environment_id'])->first();
app/Services/Audit/AuditEventBuilder.php:246:            'managed_environment_id' => 'tenant',
app/Jobs/CompareBaselineToTenantJob.php:128:        $tenant = ManagedEnvironment::query()->find($this->operationRun->managed_environment_id);
app/Jobs/CompareBaselineToTenantJob.php:131:            throw new RuntimeException("ManagedEnvironment #{$this->operationRun->managed_environment_id} not found.");
app/Jobs/CompareBaselineToTenantJob.php:1343:            ->where('managed_environment_id', $tenant->getKey());
app/Jobs/CompareBaselineToTenantJob.php:1426:            ->where('managed_environment_id', (int) $tenant->getKey())
app/Jobs/CompareBaselineToTenantJob.php:1916:                ->where('managed_environment_id', $tenantId)
app/Jobs/CompareBaselineToTenantJob.php:1936:                'managed_environment_id' => $tenantId,
tests/Feature/Spec085/RunDetailBackAffordanceTest.php:26:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Spec085/RunDetailBackAffordanceTest.php:36:        ->get(route('admin.operations.view', ['workspace' => $tenant->workspace, 'run' => (int) $run->getKey()]))
tests/Feature/Spec085/RunDetailBackAffordanceTest.php:49:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Spec085/RunDetailBackAffordanceTest.php:59:        ->get(route('admin.operations.view', ['workspace' => $tenant->workspace, 'run' => (int) $run->getKey()]))
tests/Feature/Spec085/RunDetailBackAffordanceTest.php:76:        'managed_environment_id' => (int) $entitledTenant->getKey(),
tests/Feature/Spec085/RunDetailBackAffordanceTest.php:86:        ->get(route('admin.operations.view', ['workspace' => $entitledTenant->workspace, 'run' => (int) $run->getKey()]))
tests/Feature/Guards/ProviderConnectionMicrosoftScopeLeakGuardTest.php:11:            'target_scope.entra_tenant_id',
tests/Feature/Guards/ProviderConnectionMicrosoftScopeLeakGuardTest.php:20:            "'entra_tenant_id' =>",
tests/Feature/Guards/ProviderConnectionMicrosoftScopeLeakGuardTest.php:21:            'target_scope.entra_tenant_id',
tests/Feature/Guards/ProviderConnectionMicrosoftScopeLeakGuardTest.php:24:            'target_scope.entra_tenant_id',
tests/Feature/Filament/BaselineCompareLandingRbacLabelsTest.php:40:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/BaselineCompareLandingRbacLabelsTest.php:45:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/BaselineCompareLandingRbacLabelsTest.php:75:        'managed_environment_id' => (int) $tenant->getKey(),
app/Services/Audit/AuditRecorder.php:62:                ->where('managed_environment_id', $attributes['managed_environment_id'])
tests/Feature/Spec085/DenyAsNotFoundSemanticsTest.php:39:        'managed_environment_id' => null,
tests/Feature/Spec085/DenyAsNotFoundSemanticsTest.php:75:        ->get(EnvironmentDashboard::getUrl(panel: 'admin', tenant: $tenantB))
tests/Feature/Operations/AssignmentJobDedupeTest.php:20:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Operations/AssignmentJobDedupeTest.php:24:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Operations/AssignmentJobDedupeTest.php:97:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Operations/AssignmentJobDedupeTest.php:100:        'managed_environment_id' => (int) $tenant->getKey(),
app/Jobs/ApplyBackupScheduleRetentionJob.php:38:            'managed_environment_id' => (int) $schedule->managed_environment_id,
app/Jobs/ApplyBackupScheduleRetentionJob.php:44:            'run_identity_hash' => hash('sha256', (string) $schedule->managed_environment_id.':'.OperationRunType::BackupScheduleRetention->value.':'.$schedule->id.':'.Str::uuid()->toString()),
app/Jobs/ApplyBackupScheduleRetentionJob.php:92:            ->where('managed_environment_id', (int) $schedule->managed_environment_id)
app/Jobs/ApplyBackupScheduleRetentionJob.php:107:            ->where('managed_environment_id', (int) $schedule->managed_environment_id)
app/Jobs/ApplyBackupScheduleRetentionJob.php:127:                ->where('managed_environment_id', $schedule->managed_environment_id)
tests/Feature/Spec085/CanonicalMonitoringDoesNotMutateTenantContextTest.php:26:        ->get(route('admin.operations.index', ['workspace' => $tenant->workspace]))
tests/Feature/Spec085/CanonicalMonitoringDoesNotMutateTenantContextTest.php:29:    expect(Filament::getTenant())->toBe($tenant);
tests/Feature/Spec085/CanonicalMonitoringDoesNotMutateTenantContextTest.php:40:        ->get(route('admin.operations.index', ['workspace' => $tenant->workspace]))
tests/Feature/Spec085/CanonicalMonitoringDoesNotMutateTenantContextTest.php:44:    expect(Filament::getTenant())->toBeNull();
tests/Feature/Spec085/CanonicalMonitoringDoesNotMutateTenantContextTest.php:58:        'managed_environment_id' => (int) $tenantB->getKey(),
tests/Feature/Spec085/CanonicalMonitoringDoesNotMutateTenantContextTest.php:74:        ->get(route('admin.operations.view', ['workspace' => $tenantB->workspace, 'run' => (int) $run->getKey()]))
tests/Feature/Filament/ScriptPoliciesNormalizedDisplayTest.php:17:    putenv('INTUNE_TENANT_ID='.$tenant->managed_environment_id);
tests/Feature/Filament/ScriptPoliciesNormalizedDisplayTest.php:21:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/ScriptPoliciesNormalizedDisplayTest.php:43:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/ScriptPoliciesNormalizedDisplayTest.php:53:    $this->get(\App\Filament\Resources\PolicyVersionResource::getUrl('index').'?tenant='.(string) $tenant->external_id)
tests/Feature/Filament/ScriptPoliciesNormalizedDisplayTest.php:56:    $this->get(\App\Filament\Resources\PolicyVersionResource::getUrl('view', ['record' => $version]).'?tab=normalized-settings&tenant='.(string) $tenant->external_id)
tests/Feature/Filament/ScriptPoliciesNormalizedDisplayTest.php:81:    putenv('INTUNE_TENANT_ID='.$tenant->managed_environment_id);
tests/Feature/Filament/ScriptPoliciesNormalizedDisplayTest.php:85:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/Filament/ScriptPoliciesNormalizedDisplayTest.php:95:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/Filament/ScriptPoliciesNormalizedDisplayTest.php:108:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/Filament/ScriptPoliciesNormalizedDisplayTest.php:119:    $url = \App\Filament\Resources\PolicyVersionResource::getUrl('view', ['record' => $v2]).'?tenant='.(string) $tenant->external_id;
tests/Feature/Filament/ScriptPoliciesNormalizedDisplayTest.php:146:    putenv('INTUNE_TENANT_ID='.$tenant->managed_environment_id);
tests/Feature/Filament/ScriptPoliciesNormalizedDisplayTest.php:150:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/Filament/ScriptPoliciesNormalizedDisplayTest.php:160:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/Filament/ScriptPoliciesNormalizedDisplayTest.php:173:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/Filament/ScriptPoliciesNormalizedDisplayTest.php:184:    $url = \App\Filament\Resources\PolicyVersionResource::getUrl('view', ['record' => $v2]).'?tenant='.(string) $tenant->external_id;
tests/Feature/Operations/BulkOperationExecutionReauthorizationTest.php:27:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Operations/BulkOperationExecutionReauthorizationTest.php:36:            'entra_tenant_id' => (string) ($tenant->managed_environment_id ?? $tenant->external_id),
tests/Feature/Operations/BulkOperationExecutionReauthorizationTest.php:62:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Operations/BulkOperationExecutionReauthorizationTest.php:71:            'entra_tenant_id' => (string) ($tenant->managed_environment_id ?? $tenant->external_id),
tests/Feature/Operations/BulkOperationExecutionReauthorizationTest.php:108:        ->and($run->context['execution_legitimacy']['target_scope']['managed_environment_id'] ?? null)->toBe((int) $tenant->getKey());
tests/Feature/Filament/BaselineSnapshotFallbackRenderingTest.php:46:        ->get(BaselineSnapshotResource::getUrl('view', ['record' => $snapshot], panel: 'admin'))
app/Jobs/BulkRestoreRunForceDeleteJob.php:77:                    ->where('managed_environment_id', $tenant->getKey())
tests/Feature/Guards/AdminTenantResolverGuardTest.php:52:        '/\bFilament::getTenant\s*\(/',
tests/Feature/PortfolioCompare/CrossEnvironmentPromotionExecutionActionTest.php:51:        'source_environment_id' => (int) $fixture['sourceEnvironment']->getKey(),
tests/Feature/PortfolioCompare/CrossEnvironmentPromotionExecutionActionTest.php:52:        'target_environment_id' => (int) $fixture['targetEnvironment']->getKey(),
tests/Feature/PortfolioCompare/CrossEnvironmentPromotionExecutionActionTest.php:103:        'source_environment_id' => (int) $fixture['sourceEnvironment']->getKey(),
tests/Feature/PortfolioCompare/CrossEnvironmentPromotionExecutionActionTest.php:104:        'target_environment_id' => (int) $fixture['targetEnvironment']->getKey(),
tests/Feature/Operations/OperationRunBlockedExecutionPresentationTest.php:18:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/PortfolioCompare/CrossEnvironmentCompareAuthorizationTest.php:25:        ->get(CrossEnvironmentComparePage::getUrl(panel: 'admin'))
tests/Feature/PortfolioCompare/CrossEnvironmentCompareAuthorizationTest.php:46:        ->get(CrossEnvironmentComparePage::getUrl(panel: 'admin'))
tests/Feature/PortfolioCompare/CrossEnvironmentCompareAuthorizationTest.php:60:        ->get(CrossEnvironmentComparePage::getUrl(parameters: [
tests/Feature/PortfolioCompare/CrossEnvironmentCompareAuthorizationTest.php:61:            'source_environment_id' => (int) $fixture['sourceEnvironment']->getKey(),
tests/Feature/PortfolioCompare/CrossEnvironmentCompareAuthorizationTest.php:62:            'target_environment_id' => (int) $hiddenTarget->getKey(),
tests/Feature/PortfolioCompare/CrossEnvironmentCompareAuthorizationTest.php:84:        'source_environment_id' => (int) $fixture['sourceEnvironment']->getKey(),
tests/Feature/PortfolioCompare/CrossEnvironmentCompareAuthorizationTest.php:85:        'target_environment_id' => (int) $fixture['targetEnvironment']->getKey(),
tests/Feature/Filament/TenantDiagnosticsRepairsTest.php:42:            ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/Filament/TenantDiagnosticsRepairsTest.php:59:            $table->dropUnique(['managed_environment_id', 'user_id']);
tests/Feature/Filament/TenantDiagnosticsRepairsTest.php:63:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/TenantDiagnosticsRepairsTest.php:87:            $table->dropUnique(['managed_environment_id', 'user_id']);
tests/Feature/Filament/TenantDiagnosticsRepairsTest.php:91:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/TenantDiagnosticsRepairsTest.php:99:            ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/Filament/TenantDiagnosticsRepairsTest.php:111:            ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/Filament/TenantDiagnosticsRepairsTest.php:116:            ->where('managed_environment_id', (int) $tenant->getKey())
app/Jobs/GeneratePermissionPostureFindingsJob.php:49:                'managed_environment_id' => $this->tenantId,
tests/Feature/Operations/AssignmentRestoreOperationRunFailureTest.php:64:        'managed_environment_id' => 'tenant-assignment-restore-failure',
tests/Feature/Operations/AssignmentRestoreOperationRunFailureTest.php:69:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Operations/AssignmentRestoreOperationRunFailureTest.php:75:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Operations/AssignmentRestoreOperationRunFailureTest.php:79:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Operations/AssignmentRestoreOperationRunFailureTest.php:116:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/PortfolioCompare/CrossEnvironmentComparePageTest.php:39:        'source_environment_id' => (int) $fixture['sourceEnvironment']->getKey(),
tests/Feature/PortfolioCompare/CrossEnvironmentComparePageTest.php:40:        'target_environment_id' => (int) $fixture['targetEnvironment']->getKey(),
tests/Feature/PortfolioCompare/CrossEnvironmentComparePageTest.php:45:        ->get(CrossEnvironmentComparePage::getUrl(parameters: $query, panel: 'admin'))
tests/Feature/PortfolioCompare/CrossEnvironmentComparePageTest.php:53:        ->assertSee(ManagedEnvironmentResource::getUrl('view', ['record' => $fixture['sourceEnvironment']], panel: 'admin'), false)
tests/Feature/PortfolioCompare/CrossEnvironmentComparePageTest.php:54:        ->assertSee(ManagedEnvironmentResource::getUrl('view', ['record' => $fixture['targetEnvironment']], panel: 'admin'), false);
tests/Feature/PortfolioCompare/CrossEnvironmentComparePageTest.php:80:        'source_environment_id' => (int) $fixture['sourceEnvironment']->getKey(),
tests/Feature/PortfolioCompare/CrossEnvironmentComparePageTest.php:81:        'target_environment_id' => (int) $fixture['targetEnvironment']->getKey(),
tests/Feature/PortfolioCompare/CrossEnvironmentComparePageTest.php:100:        ->get(CrossEnvironmentComparePage::getUrl(parameters: [
tests/Feature/PortfolioCompare/CrossEnvironmentComparePageTest.php:101:            'source_environment_id' => (int) $fixture['sourceEnvironment']->getKey(),
tests/Feature/PortfolioCompare/CrossEnvironmentComparePageTest.php:102:            'target_environment_id' => (int) $fixture['sourceEnvironment']->getKey(),
tests/Feature/Filament/WorkspaceOverviewContentTest.php:22:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/WorkspaceOverviewContentTest.php:31:        ->get(route('admin.workspace.home', ['workspace' => $tenant->workspace]));
tests/Feature/Filament/WorkspaceOverviewContentTest.php:120:        ->and($metrics->get('backup_attention_tenants')['destination_url'])->toContain(ManagedEnvironmentResource::getUrl('index', panel: 'admin'))
tests/Feature/Filament/WorkspaceOverviewContentTest.php:123:        ->and($metrics->get('recovery_attention_tenants')['destination_url'])->toContain(ManagedEnvironmentResource::getUrl('index', panel: 'admin'))
tests/Feature/Operations/QueuedExecutionAuditTrailTest.php:18:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Operations/QueuedExecutionAuditTrailTest.php:42:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Operations/QueuedExecutionAuditTrailTest.php:51:            'tenant_scope' => 'failed',
app/Services/System/AllowedTenantUniverse.php:33:            'managed_environment_id' => 'This tenant is not eligible for System runbooks.',
app/Services/System/AllowedTenantUniverse.php:58:                'managed_environment_id' => 'Select a tenant.',
app/Services/System/AllowedTenantUniverse.php:66:                'managed_environment_id' => 'Select a valid tenant.',
tests/Feature/PortfolioCompare/CrossEnvironmentPromotionExecutionRunUxTest.php:31:        'source_environment_id' => (int) $fixture['sourceEnvironment']->getKey(),
tests/Feature/PortfolioCompare/CrossEnvironmentPromotionExecutionRunUxTest.php:32:        'target_environment_id' => (int) $fixture['targetEnvironment']->getKey(),
tests/Feature/Filament/BaselineSnapshotFidelityVisibilityTest.php:42:        ->get(BaselineSnapshotResource::getUrl(panel: 'admin'))
tests/Feature/Filament/BaselineSnapshotFidelityVisibilityTest.php:48:        ->get(BaselineSnapshotResource::getUrl('view', ['record' => $withGaps], panel: 'admin'))
tests/Feature/Filament/BaselineSnapshotFidelityVisibilityTest.php:56:        ->get(BaselineSnapshotResource::getUrl('view', ['record' => $complete], panel: 'admin'))
tests/Feature/Operations/AssignmentFetchOperationRunTest.php:19:        'managed_environment_id' => 'tenant-assignment-fetch-run',
tests/Feature/Operations/AssignmentFetchOperationRunTest.php:25:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Operations/AssignmentFetchOperationRunTest.php:100:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/PortfolioCompare/CrossEnvironmentCompareLaunchContextTest.php:57:        'target_environment_id' => (string) $targetEnvironment->getKey(),
tests/Feature/PortfolioCompare/CrossEnvironmentCompareLaunchContextTest.php:60:        ->and(data_get($query, 'nav.managed_environment_id'))->toBe((string) $targetEnvironment->getKey())
tests/Feature/PortfolioCompare/CrossEnvironmentCompareLaunchContextTest.php:73:            && $action->getUrl() === ManagedEnvironmentResource::getUrl(panel: 'admin', parameters: $triageState));
tests/Feature/PortfolioCompare/CrossEnvironmentCompareLaunchContextTest.php:109:        'source_environment_id' => (string) $anchorTenant->getKey(),
tests/Feature/PortfolioCompare/CrossEnvironmentCompareLaunchContextTest.php:110:        'target_environment_id' => (string) $targetEnvironment->getKey(),
tests/Feature/PortfolioCompare/CrossEnvironmentCompareLaunchContextTest.php:114:        ->and(data_get($query, 'nav.managed_environment_id'))->toBeNull()
tests/Feature/PortfolioCompare/CrossEnvironmentCompareLaunchContextTest.php:160:    $expectedBackUrl = ManagedEnvironmentResource::getUrl(panel: 'admin', parameters: $triageState);
tests/Feature/PortfolioCompare/CrossEnvironmentCompareLaunchContextTest.php:174:            && $action->getUrl() === $expectedBackUrl);
tests/Feature/PortfolioCompare/CrossEnvironmentPromotionExecutionAuditTest.php:40:        'source_environment_id' => (int) $fixture['sourceEnvironment']->getKey(),
tests/Feature/PortfolioCompare/CrossEnvironmentPromotionExecutionAuditTest.php:41:        'target_environment_id' => (int) $fixture['targetEnvironment']->getKey(),
tests/Feature/PortfolioCompare/CrossEnvironmentPromotionExecutionAuditTest.php:64:        ->and(data_get($audit?->metadata, 'source_environment_id'))->toBe((int) $fixture['sourceEnvironment']->getKey())
tests/Feature/PortfolioCompare/CrossEnvironmentPromotionExecutionAuditTest.php:65:        ->and(data_get($audit?->metadata, 'target_environment_id'))->toBe((int) $fixture['targetEnvironment']->getKey())
tests/Feature/PortfolioCompare/CrossEnvironmentPromotionExecutionAuditTest.php:87:        'source_environment_id' => (int) $fixture['sourceEnvironment']->getKey(),
tests/Feature/PortfolioCompare/CrossEnvironmentPromotionExecutionAuditTest.php:88:        'target_environment_id' => (int) $fixture['targetEnvironment']->getKey(),
tests/Feature/PortfolioCompare/CrossEnvironmentPromotionExecutionAuditTest.php:105:                'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/PortfolioCompare/CrossEnvironmentPromotionExecutionAuditTest.php:149:        ->and(data_get($completedAudit?->metadata, 'source_environment_id'))->toBe((int) $fixture['sourceEnvironment']->getKey())
tests/Feature/PortfolioCompare/CrossEnvironmentPromotionExecutionAuditTest.php:150:        ->and(data_get($completedAudit?->metadata, 'target_environment_id'))->toBe((int) $fixture['targetEnvironment']->getKey())
app/Services/Verification/VerificationCheckAcknowledgementService.php:43:        if ((int) $run->managed_environment_id !== (int) $tenant->getKey()) {
app/Services/Verification/VerificationCheckAcknowledgementService.php:97:                'managed_environment_id' => (int) $tenant->getKey(),
app/Services/Verification/VerificationCheckAcknowledgementService.php:127:                        'managed_environment_id' => (int) $tenant->getKey(),
tests/Unit/Support/GovernanceDecisions/GovernanceDecisionRegisterBuilderTest.php:248:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Unit/Support/GovernanceDecisions/GovernanceDecisionRegisterBuilderTest.php:256:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Unit/Support/GovernanceDecisions/GovernanceDecisionRegisterBuilderTest.php:309:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Unit/Support/GovernanceDecisions/GovernanceDecisionRegisterBuilderTest.php:335:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Unit/Support/GovernanceDecisions/GovernanceDecisionRegisterBuilderTest.php:429:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Unit/Support/GovernanceDecisions/GovernanceDecisionRegisterBuilderTest.php:448:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Unit/Support/GovernanceDecisions/GovernanceDecisionRegisterBuilderTest.php:496:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Unit/Support/GovernanceDecisions/GovernanceDecisionRegisterBuilderTest.php:519:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Unit/Support/GovernanceDecisions/GovernanceDecisionRegisterBuilderTest.php:544:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Unit/Support/GovernanceDecisions/GovernanceDecisionRegisterBuilderTest.php:600:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Unit/Support/GovernanceDecisions/GovernanceDecisionRegisterBuilderTest.php:614:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/SettingsCatalogSettingsTableRenderTest.php:15:        'managed_environment_id' => 'local-tenant',
tests/Feature/Filament/SettingsCatalogSettingsTableRenderTest.php:24:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/SettingsCatalogSettingsTableRenderTest.php:32:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/SettingsCatalogSettingsTableRenderTest.php:62:        ->get(PolicyResource::getUrl('view', ['record' => $policy], panel: 'admin').'?tab=settings&tenant='.(string) $tenant->external_id);
tests/Feature/Filament/SettingsCatalogSettingsTableRenderTest.php:73:        ->get(PolicyVersionResource::getUrl('view', ['record' => $version], panel: 'admin').'?tenant='.(string) $tenant->external_id);
tests/Feature/Operations/ProductTelemetryOperationStartCaptureTest.php:47:        ->and($event->managed_environment_id)->toBe((int) $tenant->getKey())
tests/Feature/PortfolioCompare/CrossEnvironmentPromotionExecutionAuthorizationTest.php:34:        'source_environment_id' => (int) $fixture['sourceEnvironment']->getKey(),
tests/Feature/PortfolioCompare/CrossEnvironmentPromotionExecutionAuthorizationTest.php:35:        'target_environment_id' => (int) $fixture['targetEnvironment']->getKey(),
tests/Feature/PortfolioCompare/CrossEnvironmentPromotionExecutionAuthorizationTest.php:87:        'source_environment_id' => (int) $fixture['sourceEnvironment']->getKey(),
tests/Feature/PortfolioCompare/CrossEnvironmentPromotionExecutionAuthorizationTest.php:88:        'target_environment_id' => (int) $fixture['targetEnvironment']->getKey(),
tests/Feature/PortfolioCompare/CrossEnvironmentPromotionExecutionAuthorizationTest.php:138:        'source_environment_id' => (int) $fixture['sourceEnvironment']->getKey(),
tests/Feature/PortfolioCompare/CrossEnvironmentPromotionExecutionAuthorizationTest.php:139:        'target_environment_id' => (int) $fixture['targetEnvironment']->getKey(),
tests/Feature/PortfolioCompare/CrossEnvironmentPromotionExecutionAuthorizationTest.php:170:        'source_environment_id' => (int) $fixture['sourceEnvironment']->getKey(),
tests/Feature/PortfolioCompare/CrossEnvironmentPromotionExecutionAuthorizationTest.php:171:        'target_environment_id' => (int) $fixture['targetEnvironment']->getKey(),
tests/Feature/PortfolioCompare/CrossEnvironmentPromotionExecutionAuthorizationTest.php:193:        ->get(CrossEnvironmentComparePage::getUrl(parameters: [
tests/Feature/PortfolioCompare/CrossEnvironmentPromotionExecutionAuthorizationTest.php:194:            'source_environment_id' => (int) $fixture['sourceEnvironment']->getKey(),
tests/Feature/PortfolioCompare/CrossEnvironmentPromotionExecutionAuthorizationTest.php:195:            'target_environment_id' => (int) $hiddenTarget->getKey(),
app/Jobs/Alerts/EvaluateAlertsJob.php:205:            ->whereNull('managed_environment_id')
app/Jobs/Alerts/EvaluateAlertsJob.php:262:                'managed_environment_id' => (int) $finding->managed_environment_id,
app/Jobs/Alerts/EvaluateAlertsJob.php:338:                'managed_environment_id' => (int) $finding->managed_environment_id,
app/Jobs/Alerts/EvaluateAlertsJob.php:368:            ->whereNotNull('managed_environment_id')
app/Jobs/Alerts/EvaluateAlertsJob.php:383:            $tenantId = (int) ($failedRun->managed_environment_id ?? 0);
app/Jobs/Alerts/EvaluateAlertsJob.php:391:                'managed_environment_id' => $tenantId,
app/Jobs/Alerts/EvaluateAlertsJob.php:414:            ->whereNotNull('managed_environment_id')
app/Jobs/Alerts/EvaluateAlertsJob.php:419:            ->orderBy('managed_environment_id')
app/Jobs/Alerts/EvaluateAlertsJob.php:420:            ->pluck('managed_environment_id')
app/Jobs/Alerts/EvaluateAlertsJob.php:456:            ->whereIn('managed_environment_id', $newlyOverdueTenantIds)
app/Jobs/Alerts/EvaluateAlertsJob.php:460:            ->orderBy('managed_environment_id')
app/Jobs/Alerts/EvaluateAlertsJob.php:462:            ->get(['managed_environment_id', 'severity']);
app/Jobs/Alerts/EvaluateAlertsJob.php:465:            $tenantId = (int) ($finding->managed_environment_id ?? 0);
app/Jobs/Alerts/EvaluateAlertsJob.php:502:                'managed_environment_id' => $tenantId,
app/Jobs/Alerts/EvaluateAlertsJob.php:624:                'managed_environment_id' => (int) $finding->managed_environment_id,
app/Jobs/Alerts/EvaluateAlertsJob.php:631:                    (int) $finding->managed_environment_id,
app/Jobs/Alerts/EvaluateAlertsJob.php:665:                'managed_environment_id' => (int) $finding->managed_environment_id,
app/Services/PortfolioTriage/ManagedEnvironmentTriageReviewService.php:113:                'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/PortfolioCompare/CrossEnvironmentPromotionPreflightAuditTest.php:36:        'source_environment_id' => (int) $fixture['sourceEnvironment']->getKey(),
tests/Feature/PortfolioCompare/CrossEnvironmentPromotionPreflightAuditTest.php:37:        'target_environment_id' => (int) $fixture['targetEnvironment']->getKey(),
tests/Feature/PortfolioCompare/CrossEnvironmentPromotionPreflightAuditTest.php:54:        ->and(data_get($audit?->metadata, 'source_environment_id'))->toBe((int) $fixture['sourceEnvironment']->getKey())
tests/Feature/PortfolioCompare/CrossEnvironmentPromotionPreflightAuditTest.php:55:        ->and(data_get($audit?->metadata, 'target_environment_id'))->toBe((int) $fixture['targetEnvironment']->getKey())
tests/Feature/Filament/AdminHomeRedirectsToChooseEnvironmentWhenWorkspaceSelectedTest.php:29:        ->get(route('admin.workspace.home', ['workspace' => $workspace]))
tests/Feature/Filament/AdminHomeRedirectsToChooseEnvironmentWhenWorkspaceSelectedTest.php:54:            'managed_environment_id' => $tenant->getKey(),
tests/Feature/Filament/AdminHomeRedirectsToChooseEnvironmentWhenWorkspaceSelectedTest.php:66:        ->get(route('admin.workspace.home', ['workspace' => $workspace]))
tests/Feature/Filament/AdminHomeRedirectsToChooseEnvironmentWhenWorkspaceSelectedTest.php:89:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/Filament/AdminHomeRedirectsToChooseEnvironmentWhenWorkspaceSelectedTest.php:100:        ->get(route('admin.workspace.home', ['workspace' => $workspace]))
tests/Feature/Operations/QueuedExecutionContractMatrixTest.php:33:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Operations/QueuedExecutionContractMatrixTest.php:35:        'entra_tenant_id' => fake()->uuid(),
tests/Feature/Operations/QueuedExecutionContractMatrixTest.php:129:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Operations/QueuedExecutionContractMatrixTest.php:207:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Operations/QueuedExecutionContractMatrixTest.php:209:        'entra_tenant_id' => fake()->uuid(),
app/Jobs/RestoreAssignmentsJob.php:143:                'managed_environment_id' => $this->tenantId,
app/Jobs/RestoreAssignmentsJob.php:388:            'managed_environment_id' => $tenantId,
tests/Feature/Filament/ManagedEnvironmentsLandingLifecycleTest.php:47:        ->get(route('admin.workspace.managed-environments.index', ['workspace' => $workspace]))
tests/Feature/Filament/ManagedEnvironmentsLandingLifecycleTest.php:89:        ->get(route('admin.workspace.managed-environments.index', ['workspace' => $workspace]))
tests/Feature/Filament/ManagedEnvironmentsLandingLifecycleTest.php:132:        ->get(route('admin.workspace.managed-environments.index', ['workspace' => $workspace]))
tests/Feature/Guards/ActionSurfaceContractTest.php:259:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Guards/ActionSurfaceContractTest.php:308:        ->and($table->getRecordUrl($profile))->toBe(BaselineProfileResource::getUrl('view', ['record' => $profile]));
tests/Feature/Guards/ActionSurfaceContractTest.php:327:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Guards/ActionSurfaceContractTest.php:361:        ->and($table->getRecordUrl($schedule))->toBe(BackupScheduleResource::getUrl('edit', ['record' => $schedule]));
tests/Feature/Guards/ActionSurfaceContractTest.php:391:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Guards/ActionSurfaceContractTest.php:429:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Guards/ActionSurfaceContractTest.php:433:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Guards/ActionSurfaceContractTest.php:439:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Guards/ActionSurfaceContractTest.php:489:        ->and($table->getRecordUrl($backupItem))->toBe(PolicyVersionResource::getUrl('view', ['record' => $version], tenant: $tenant));
tests/Feature/Guards/ActionSurfaceContractTest.php:501:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/Guards/ActionSurfaceContractTest.php:581:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Guards/ActionSurfaceContractTest.php:585:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Guards/ActionSurfaceContractTest.php:595:    $this->get(PolicyResource::getUrl('view', ['record' => $policy], tenant: $tenant))
tests/Feature/Guards/ActionSurfaceContractTest.php:614:    $membershipsUrl = ManagedEnvironmentResource::getUrl('memberships', ['record' => $tenant->getRouteKey()], panel: 'admin');
tests/Feature/Guards/ActionSurfaceContractTest.php:617:        ->get(ManagedEnvironmentResource::getUrl('view', ['record' => $tenant->getRouteKey()], panel: 'admin'))
tests/Feature/Guards/ActionSurfaceContractTest.php:630:            && $action->getUrl() === ManagedEnvironmentLinks::viewUrl($tenant));
tests/Feature/Guards/ActionSurfaceContractTest.php:636:        ->get(ManagedEnvironmentResource::getUrl('memberships', ['record' => $tenant->getRouteKey()], panel: 'admin'))
tests/Feature/Guards/ActionSurfaceContractTest.php:660:        ->assertTableActionHasUrl('openTenant', EnvironmentDashboard::getUrl(panel: 'admin', tenant: $tenant), $tenant);
tests/Feature/Guards/ActionSurfaceContractTest.php:663:        ->toBe(ManagedEnvironmentResource::getUrl('view', ['record' => $tenant], panel: 'admin'));
tests/Feature/Guards/ActionSurfaceContractTest.php:675:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Guards/ActionSurfaceContractTest.php:713:    if ($instance->getCachedHeaderActions() === []) {
tests/Feature/Guards/ActionSurfaceContractTest.php:714:        $instance->cacheInteractsWithHeaderActions();
tests/Feature/Guards/ActionSurfaceContractTest.php:717:    $headerActions = $instance->getCachedHeaderActions();
tests/Feature/Guards/ActionSurfaceContractTest.php:718:    $primaryHeaderActions = collect($headerActions)
tests/Feature/Guards/ActionSurfaceContractTest.php:749:        ->and($primaryHeaderActions)->toEqual(['memberships'])
tests/Feature/Guards/ActionSurfaceContractTest.php:766:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Guards/ActionSurfaceContractTest.php:771:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Guards/ActionSurfaceContractTest.php:784:    $this->get(BackupSetResource::getUrl('view', ['record' => $backupSet], tenant: $tenant))
tests/Feature/Guards/ActionSurfaceContractTest.php:811:        ->get(WorkspaceResource::getUrl('view', ['record' => $workspace]))
tests/Feature/Guards/ActionSurfaceContractTest.php:1279:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Guards/ActionSurfaceContractTest.php:1311:        ->and($table->getRecordUrl($snapshot))->toBe(EvidenceSnapshotResource::getUrl('view', ['record' => $snapshot]));
tests/Feature/Guards/ActionSurfaceContractTest.php:1340:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Guards/ActionSurfaceContractTest.php:1372:        ->and($table->getRecordUrl($pack))->toBe(ReviewPackResource::getUrl('view', ['record' => $pack], tenant: $tenant));
tests/Feature/Guards/ActionSurfaceContractTest.php:1379:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Guards/ActionSurfaceContractTest.php:1384:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Guards/ActionSurfaceContractTest.php:1428:        ->and($table->getRecordUrl($restoreRun))->toBe(RestoreRunResource::getUrl('view', ['record' => $restoreRun], tenant: $tenant));
tests/Feature/Guards/ActionSurfaceContractTest.php:1470:        ->and($table->getRecordUrl($finding))->toBe(FindingResource::getUrl('view', ['record' => $finding]))
tests/Feature/Guards/ActionSurfaceContractTest.php:1498:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Guards/ActionSurfaceContractTest.php:1502:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Guards/ActionSurfaceContractTest.php:1526:        ->and($table->getRecordUrl($version))->toBe(PolicyVersionResource::getUrl('view', ['record' => $version], panel: 'admin'));
tests/Feature/Guards/ActionSurfaceContractTest.php:1532:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/Guards/ActionSurfaceContractTest.php:1537:        ->toBe(route('admin.operations.view', [
tests/Feature/Guards/ActionSurfaceContractTest.php:1556:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Guards/ActionSurfaceContractTest.php:1616:        ->and($evidenceRow['view_url'] ?? null)->toBe(EvidenceSnapshotResource::getUrl('view', ['record' => $snapshot], tenant: $tenant, panel: 'admin'));
tests/Feature/Guards/ActionSurfaceContractTest.php:1624:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Guards/ActionSurfaceContractTest.php:1641:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Guards/ActionSurfaceContractTest.php:1701:        'managed_environment_id' => null,
tests/Feature/Guards/ActionSurfaceContractTest.php:1760:        ->get(EnvironmentRequiredPermissions::getUrl([
tests/Feature/Guards/ActionSurfaceContractTest.php:1794:        ->assertActionExists('go_to_runbooks', fn (Action $action): bool => $action->getLabel() === 'Go to runbooks' && $action->getUrl() === \App\Filament\System\Pages\Ops\Runbooks::getUrl(panel: 'system'));
tests/Feature/Guards/ActionSurfaceContractTest.php:1825:        ->assertActionExists('show_all_operations', fn (Action $action): bool => $action->getLabel() === 'Show all operations' && $action->getUrl() === SystemOperationRunLinks::index());
tests/Feature/Guards/ActionSurfaceContractTest.php:1858:        ->assertActionExists('show_all_operations', fn (Action $action): bool => $action->getLabel() === 'Show all operations' && $action->getUrl() === SystemOperationRunLinks::index());
tests/Feature/Guards/ActionSurfaceContractTest.php:1921:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Guards/ActionSurfaceContractTest.php:1951:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/Guards/ActionSurfaceContractTest.php:1962:    expect($recordUrl)->toBe(InventoryItemResource::getUrl('view', ['record' => $item]));
tests/Feature/Guards/ActionSurfaceContractTest.php:1997:        ->and($table->getRecordUrl($workspace))->toBe(WorkspaceResource::getUrl('view', ['record' => $workspace]));
tests/Feature/Guards/ActionSurfaceContractTest.php:2004:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Guards/ActionSurfaceContractTest.php:2048:        ->and($table->getRecordUrl($policy))->toBe(PolicyResource::getUrl('view', ['record' => $policy]));
tests/Feature/Guards/ActionSurfaceContractTest.php:2083:        ->and($table->getRecordUrl($rule))->toBe(AlertRuleResource::getUrl('edit', ['record' => $rule]))
tests/Feature/Guards/ActionSurfaceContractTest.php:2122:        ->and($table->getRecordUrl($destination))->toBe(AlertDestinationResource::getUrl('edit', ['record' => $destination]))
tests/Feature/Guards/ActionSurfaceContractTest.php:2133:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Guards/ActionSurfaceContractTest.php:2164:        ->and($table->getRecordUrl($connection))->toBe(ProviderConnectionResource::getUrl('view', ['record' => $connection], tenant: $tenant))
tests/Feature/Guards/ActionSurfaceContractTest.php:2187:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Guards/ActionSurfaceContractTest.php:2203:    if ($instance->getCachedHeaderActions() === []) {
tests/Feature/Guards/ActionSurfaceContractTest.php:2204:        $instance->cacheInteractsWithHeaderActions();
tests/Feature/Guards/ActionSurfaceContractTest.php:2207:    $headerActions = $instance->getCachedHeaderActions();
tests/Feature/Guards/ActionSurfaceContractTest.php:2208:    $primaryHeaderActions = collect($headerActions)
tests/Feature/Guards/ActionSurfaceContractTest.php:2222:    expect($primaryHeaderActions)->toEqual(['grant_admin_consent'])
tests/Feature/Guards/ActionSurfaceContractTest.php:2252:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Guards/ActionSurfaceContractTest.php:2267:        ->and($table->getRecordUrl($delivery))->toBe(AlertDeliveryResource::getUrl('view', ['record' => $delivery], panel: 'admin'));
tests/Feature/Guards/ActionSurfaceContractTest.php:2288:        ->where('managed_environment_id', $tenant->getKey())
tests/Feature/Guards/ActionSurfaceContractTest.php:2294:    expect((int) $run?->managed_environment_id)->toBe((int) $tenant->getKey());
tests/Feature/Guards/ActionSurfaceContractTest.php:2388:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Guards/ActionSurfaceContractTest.php:2451:        'managed_environment_id' => (int) $tenant->getKey(),
app/Services/Alerts/AlertDestinationTestMessageService.php:77:            'managed_environment_id' => null,
tests/Feature/Operations/OperationRunFailedJobBridgeTest.php:21:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Operations/OperationRunFailedJobBridgeTest.php:48:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/PermissionPosture/PermissionPostureIntegrationTest.php:47:        ->where('managed_environment_id', $tenant->getKey())
tests/Feature/PermissionPosture/PermissionPostureIntegrationTest.php:56:        ->where('managed_environment_id', $tenant->getKey())
tests/Feature/PermissionPosture/PermissionPostureIntegrationTest.php:68:        ->where('managed_environment_id', $tenant->getKey())
tests/Feature/PermissionPosture/PermissionPostureIntegrationTest.php:117:        ->where('managed_environment_id', $tenant->getKey())
tests/Feature/PermissionPosture/PermissionPostureIntegrationTest.php:144:        ->where('managed_environment_id', $tenant->getKey())
tests/Feature/Filament/ProviderConnectionResourceScopeSummaryTest.php:19:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/ProviderConnectionResourceScopeSummaryTest.php:21:        'entra_tenant_id' => '66666666-6666-6666-6666-666666666666',
tests/Feature/Filament/ProviderConnectionResourceScopeSummaryTest.php:41:        ->and($visibleColumnNames)->not->toContain('entra_tenant_id');
tests/Feature/Filament/ProviderConnectionResourceScopeSummaryTest.php:44:        ->get(ProviderConnectionResource::getUrl('view', [
tests/Feature/Filament/ProviderConnectionResourceScopeSummaryTest.php:46:            'managed_environment_id' => $tenant->external_id,
app/Jobs/Operations/TenantSyncWorkerJob.php:82:                'entra_tenant_id' => (string) ($tenant->managed_environment_id ?? $tenant->external_id),
app/Jobs/Operations/RestoreRunDeleteWorkerJob.php:62:                ->where('managed_environment_id', $this->tenantId)
tests/Feature/Operations/AssignmentRestoreOperationRunTest.php:51:        'managed_environment_id' => 'tenant-assignment-restore-success',
tests/Feature/Operations/AssignmentRestoreOperationRunTest.php:56:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Operations/AssignmentRestoreOperationRunTest.php:62:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Operations/AssignmentRestoreOperationRunTest.php:66:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Operations/AssignmentRestoreOperationRunTest.php:103:        ->where('managed_environment_id', (int) $tenant->getKey())
app/Services/Alerts/AlertSender.php:84:        Notification::route('mail', $recipients)
tests/Feature/Filament/WorkspaceMembershipRoleManagementTest.php:37:        'managed_environment_id' => (int) $tenant->getKey(),
app/Jobs/Operations/PolicyVersionForceDeleteWorkerJob.php:62:                ->where('managed_environment_id', $this->tenantId)
app/Services/Alerts/AlertFingerprintService.php:27:            'managed_environment_id' => $tenantId,
tests/Feature/PermissionPosture/PermissionPostureFindingGeneratorTest.php:56:        ->where('managed_environment_id', $tenant->getKey())
tests/Feature/PermissionPosture/PermissionPostureFindingGeneratorTest.php:88:    expect(Finding::query()->where('managed_environment_id', $tenant->getKey())->where('status', Finding::STATUS_NEW)->count())->toBe(1);
tests/Feature/PermissionPosture/PermissionPostureFindingGeneratorTest.php:98:        ->where('managed_environment_id', $tenant->getKey())
tests/Feature/PermissionPosture/PermissionPostureFindingGeneratorTest.php:114:    $finding = Finding::query()->where('managed_environment_id', $tenant->getKey())->first();
tests/Feature/PermissionPosture/PermissionPostureFindingGeneratorTest.php:143:    expect(Finding::query()->where('managed_environment_id', $tenant->getKey())->count())->toBe(1);
tests/Feature/PermissionPosture/PermissionPostureFindingGeneratorTest.php:145:    $finding = Finding::query()->where('managed_environment_id', $tenant->getKey())->first();
tests/Feature/PermissionPosture/PermissionPostureFindingGeneratorTest.php:161:    $finding = Finding::query()->where('managed_environment_id', $tenant->getKey())->firstOrFail();
tests/Feature/PermissionPosture/PermissionPostureFindingGeneratorTest.php:200:    $initial = Finding::query()->where('managed_environment_id', $tenant->getKey())->first();
tests/Feature/PermissionPosture/PermissionPostureFindingGeneratorTest.php:206:    $finding = Finding::query()->where('managed_environment_id', $tenant->getKey())->first();
tests/Feature/PermissionPosture/PermissionPostureFindingGeneratorTest.php:240:        ->where('managed_environment_id', $tenant->getKey())
tests/Feature/PermissionPosture/PermissionPostureFindingGeneratorTest.php:254:    expect(Finding::query()->where('managed_environment_id', $tenant->getKey())->count())->toBe(2);
tests/Feature/PermissionPosture/PermissionPostureFindingGeneratorTest.php:272:        ->where('managed_environment_id', $tenant->getKey())
tests/Feature/PermissionPosture/PermissionPostureFindingGeneratorTest.php:302:        ->and($report->managed_environment_id)->toBe($tenant->getKey())
tests/Feature/PermissionPosture/PermissionPostureFindingGeneratorTest.php:316:    expect(Finding::query()->where('managed_environment_id', $tenant->getKey())->where('status', Finding::STATUS_NEW)->count())->toBe(1);
tests/Feature/PermissionPosture/PermissionPostureFindingGeneratorTest.php:346:    $finding = Finding::query()->where('managed_environment_id', $tenant->getKey())->first();
tests/Feature/PermissionPosture/PermissionPostureFindingGeneratorTest.php:350:// (12) All findings are scoped to managed_environment_id
tests/Feature/PermissionPosture/PermissionPostureFindingGeneratorTest.php:351:it('scopes all findings to managed_environment_id', function (): void {
tests/Feature/PermissionPosture/PermissionPostureFindingGeneratorTest.php:359:    expect(Finding::query()->where('managed_environment_id', $tenant1->getKey())->count())->toBe(1)
tests/Feature/PermissionPosture/PermissionPostureFindingGeneratorTest.php:360:        ->and(Finding::query()->where('managed_environment_id', $tenant2->getKey())->count())->toBe(1);
tests/Feature/PermissionPosture/PermissionPostureFindingGeneratorTest.php:374:        ->where('managed_environment_id', $tenant->getKey())
tests/Feature/PermissionPosture/PermissionPostureFindingGeneratorTest.php:395:    expect(Finding::query()->where('managed_environment_id', $tenant->getKey())->where('status', Finding::STATUS_NEW)->count())->toBe(2);
tests/Feature/PermissionPosture/PermissionPostureFindingGeneratorTest.php:405:        ->where('managed_environment_id', $tenant->getKey())
app/Jobs/Operations/PolicyBulkDeleteWorkerJob.php:68:                ->where('managed_environment_id', $this->tenantId)
tests/Feature/Filament/RestoreRunUiEnforcementTest.php:44:        ->get(RestoreRunResource::getUrl('index', panel: 'admin', tenant: $tenant))
tests/Feature/Filament/RestoreRunUiEnforcementTest.php:53:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/Filament/RestoreRunUiEnforcementTest.php:58:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/Filament/RestoreRunUiEnforcementTest.php:80:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/Filament/RestoreRunUiEnforcementTest.php:85:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/Filament/RestoreRunUiEnforcementTest.php:140:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/Filament/RestoreRunUiEnforcementTest.php:154:        ->get(RestoreRunResource::getUrl('view', [
tests/Feature/Filament/RestoreRunUiEnforcementTest.php:165:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/Filament/RestoreRunUiEnforcementTest.php:190:        ->get(RestoreRunResource::getUrl('index', tenant: $tenant))
tests/Feature/Filament/RestoreRunUiEnforcementTest.php:193:    $this->get(RestoreRunResource::getUrl('view', [
app/Services/Alerts/AlertDispatchService.php:27:        $tenantId = (int) ($event['managed_environment_id'] ?? 0);
app/Services/Alerts/AlertDispatchService.php:93:                    'managed_environment_id' => $tenantId,
tests/Feature/PermissionPosture/StoredReportModelTest.php:35:        ->and($report->tenant->getKey())->toBe($report->managed_environment_id);
tests/Feature/PermissionPosture/StoredReportModelTest.php:42:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/PermissionPosture/StoredReportModelTest.php:72:        ->where('managed_environment_id', $tenant->getKey())
tests/Feature/PermissionPosture/StoredReportModelTest.php:103:        ->where('managed_environment_id', $tenant->getKey())
tests/Feature/PermissionPosture/StoredReportModelTest.php:119:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/PermissionPosture/StoredReportModelTest.php:125:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/PermissionPosture/StoredReportModelTest.php:131:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/PermissionPosture/StoredReportModelTest.php:137:        ->where('managed_environment_id', $tenant->getKey())
tests/Feature/PermissionPosture/StoredReportModelTest.php:148:it('reports queryable by managed_environment_id and report_type', function (): void {
tests/Feature/PermissionPosture/StoredReportModelTest.php:153:        'managed_environment_id' => $tenantA->getKey(),
tests/Feature/PermissionPosture/StoredReportModelTest.php:158:        'managed_environment_id' => $tenantB->getKey(),
tests/Feature/PermissionPosture/StoredReportModelTest.php:163:        ->where('managed_environment_id', $tenantA->getKey())
tests/Feature/PermissionPosture/StoredReportModelTest.php:176:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/PermissionPosture/StoredReportModelTest.php:181:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/PermissionPosture/StoredReportModelTest.php:187:        ->where('managed_environment_id', $tenant->getKey())
tests/Feature/PermissionPosture/StoredReportModelTest.php:192:        ->where('managed_environment_id', $tenant->getKey())
tests/Feature/PermissionPosture/StoredReportModelTest.php:197:        ->where('managed_environment_id', $tenant->getKey())
app/Jobs/Operations/PolicyVersionPruneWorkerJob.php:63:                ->where('managed_environment_id', $this->tenantId)
app/Jobs/Operations/PolicyVersionPruneWorkerJob.php:95:                ->where('managed_environment_id', $this->tenantId)
tests/Feature/Operations/QueuedExecutionRetryReauthorizationTest.php:33:                'entra_tenant_id' => (string) ($tenant->managed_environment_id ?? $tenant->external_id),
tests/Feature/Operations/QueuedExecutionRetryReauthorizationTest.php:56:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Operations/QueuedExecutionRetryReauthorizationTest.php:65:            'tenant_scope' => 'passed',
tests/Feature/Operations/QueuedExecutionRetryReauthorizationTest.php:76:            'tenant_scope' => 'passed',
app/Jobs/Operations/PolicyVersionRestoreWorkerJob.php:62:                ->where('managed_environment_id', $this->tenantId)
tests/Feature/Filament/WindowsUpdateProfilesRestoreTest.php:22:            'managed_environment_id' => 'tenant-1',
tests/Feature/Filament/WindowsUpdateProfilesRestoreTest.php:28:            'managed_environment_id' => $tenant->id,
tests/Feature/Filament/WindowsUpdateProfilesRestoreTest.php:94:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/WindowsUpdateProfilesRestoreTest.php:102:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/WindowsUpdateProfilesRestoreTest.php:119:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/WindowsUpdateProfilesRestoreTest.php:169:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/WindowsUpdateProfilesRestoreTest.php:177:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/WindowsUpdateProfilesRestoreTest.php:194:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/WindowsUpdateProfilesRestoreTest.php:244:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/WindowsUpdateProfilesRestoreTest.php:252:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/WindowsUpdateProfilesRestoreTest.php:275:        'managed_environment_id' => $tenant->id,
tests/Unit/Support/CanonicalNavigationContextTest.php:16:            'tableFilters' => [
tests/Unit/Support/CanonicalNavigationContextTest.php:17:                'managed_environment_id' => ['value' => '44'],
tests/Unit/Support/CanonicalNavigationContextTest.php:24:            'tableFilters' => [
tests/Unit/Support/CanonicalNavigationContextTest.php:25:                'managed_environment_id' => ['value' => '44'],
tests/Unit/Support/CanonicalNavigationContextTest.php:30:                'managed_environment_id' => 44,
tests/Unit/Support/CanonicalNavigationContextTest.php:42:            'managed_environment_id' => 22,
tests/Unit/Support/CanonicalNavigationContextTest.php:61:        backLinkUrl: '/admin/governance/inbox?managed_environment_id=12&family=finding_exceptions',
tests/Unit/Support/CanonicalNavigationContextTest.php:69:            'managed_environment_id' => 12,
tests/Unit/Support/CanonicalNavigationContextTest.php:76:        ->and($roundTrip?->backLinkUrl)->toBe('/admin/governance/inbox?managed_environment_id=12&family=finding_exceptions');
tests/Feature/Filament/DatabaseNotificationsPollingTest.php:27:        ->get(route('admin.workspace.home', ['workspace' => $tenant->workspace]));
tests/Feature/RestoreAssignmentApplicationTest.php:79:        'managed_environment_id' => 'tenant-1',
tests/Feature/RestoreAssignmentApplicationTest.php:87:        'managed_environment_id' => $tenant->id,
tests/Feature/RestoreAssignmentApplicationTest.php:95:        'managed_environment_id' => $tenant->id,
tests/Feature/RestoreAssignmentApplicationTest.php:102:        'managed_environment_id' => $tenant->id,
tests/Feature/RestoreAssignmentApplicationTest.php:185:        'managed_environment_id' => 'tenant-1',
tests/Feature/RestoreAssignmentApplicationTest.php:193:        'managed_environment_id' => $tenant->id,
tests/Feature/RestoreAssignmentApplicationTest.php:201:        'managed_environment_id' => $tenant->id,
tests/Feature/RestoreAssignmentApplicationTest.php:208:        'managed_environment_id' => $tenant->id,
tests/Feature/RestoreAssignmentApplicationTest.php:273:        'managed_environment_id' => 'tenant-1',
tests/Feature/RestoreAssignmentApplicationTest.php:281:        'managed_environment_id' => $tenant->id,
tests/Feature/RestoreAssignmentApplicationTest.php:289:        'managed_environment_id' => $tenant->id,
tests/Feature/RestoreAssignmentApplicationTest.php:296:        'managed_environment_id' => $tenant->id,
tests/Feature/RestoreAssignmentApplicationTest.php:307:        'managed_environment_id' => $tenant->id,
tests/Feature/PermissionPosture/GeneratePermissionPostureFindingsJobTest.php:45:        ->where('managed_environment_id', $tenant->getKey())
tests/Feature/PermissionPosture/GeneratePermissionPostureFindingsJobTest.php:75:    expect(Finding::query()->where('managed_environment_id', $tenant->getKey())->count())->toBe(0)
tests/Feature/PermissionPosture/GeneratePermissionPostureFindingsJobTest.php:76:        ->and(StoredReport::query()->where('managed_environment_id', $tenant->getKey())->count())->toBe(0)
tests/Feature/PermissionPosture/GeneratePermissionPostureFindingsJobTest.php:77:        ->and(OperationRun::query()->where('managed_environment_id', $tenant->getKey())->where('type', OperationCatalog::TYPE_PERMISSION_POSTURE_CHECK)->count())->toBe(0);
tests/Feature/PermissionPosture/GeneratePermissionPostureFindingsJobTest.php:96:        ->where('managed_environment_id', $tenant->getKey())
tests/Feature/PermissionPosture/GeneratePermissionPostureFindingsJobTest.php:132:        ->where('managed_environment_id', $tenant->getKey())
tests/Feature/Operations/AssignmentFetchOperationRunFailureTest.php:64:        'managed_environment_id' => 'tenant-assignment-fetch-failure',
tests/Feature/Operations/AssignmentFetchOperationRunFailureTest.php:70:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Operations/AssignmentFetchOperationRunFailureTest.php:114:        ->where('managed_environment_id', (int) $tenant->getKey())
app/Jobs/Operations/BackupSetForceDeleteWorkerJob.php:62:                ->where('managed_environment_id', $this->tenantId)
tests/Feature/Filament/TenantTruthCleanupSpec179Test.php:32:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/TenantTruthCleanupSpec179Test.php:93:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/TenantTruthCleanupSpec179Test.php:140:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/TenantTruthCleanupSpec179Test.php:175:        'managed_environment_id' => (int) $tenant->getKey(),
app/Services/Drift/DriftFindingDiffBuilder.php:377:                'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Operations/OperationLifecycleReconciliationTest.php:17:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Operations/OperationLifecycleReconciliationTest.php:28:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Operations/OperationLifecycleReconciliationTest.php:39:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Operations/OperationLifecycleReconciliationTest.php:51:        'tenant_ids' => [(int) $tenant->getKey()],
tests/Feature/Operations/OperationLifecycleReconciliationTest.php:74:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Operations/OperationLifecycleReconciliationTest.php:87:        'tenant_ids' => [(int) $tenant->getKey()],
tests/Feature/Operations/OperationLifecycleReconciliationTest.php:92:        'tenant_ids' => [(int) $tenant->getKey()],
tests/Feature/Scheduling/PruneOldOperationRunsScheduleTest.php:43:            'managed_environment_id' => null,
app/Jobs/Operations/CrossEnvironmentPromotionExecutionJob.php:165:                sourceEnvironmentId: is_numeric($context['source_environment_id'] ?? null) ? (int) $context['source_environment_id'] : null,
app/Jobs/Operations/CrossEnvironmentPromotionExecutionJob.php:198:            'managed_environment_id' => (int) $targetEnvironment->getKey(),
app/Jobs/Operations/CrossEnvironmentPromotionExecutionJob.php:222:            $sourceEnvironmentId = data_get($item, 'source.managed_environment_id');
app/Jobs/Operations/CrossEnvironmentPromotionExecutionJob.php:228:                    ->where('managed_environment_id', (int) $sourceEnvironmentId)
app/Jobs/Operations/CrossEnvironmentPromotionExecutionJob.php:251:                ->where('managed_environment_id', (int) $targetEnvironment->getKey())
app/Jobs/Operations/CrossEnvironmentPromotionExecutionJob.php:257:                'managed_environment_id' => (int) $targetEnvironment->getKey(),
app/Jobs/Operations/CrossEnvironmentPromotionExecutionJob.php:269:                    'source_environment_id' => (int) $sourcePolicy->managed_environment_id,
tests/Feature/Filament/PolicyVersionResolvedReferenceLinksTest.php:42:    $groupUrl = EntraGroupResource::getUrl('view', ['record' => $group], panel: 'admin', tenant: $tenant);
tests/Feature/Filament/PolicyVersionResolvedReferenceLinksTest.php:49:        ->get(PolicyVersionResource::getUrl('view', ['record' => $version], panel: 'admin', tenant: $tenant))
tests/Feature/Notifications/FindingNotificationLinkTest.php:56:        ->toBe(FindingResource::getUrl('view', ['record' => $finding], panel: 'admin', tenant: $tenant))
tests/Feature/Notifications/FindingNotificationLinkTest.php:121:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Unit/Support/PortfolioCompare/CrossEnvironmentPromotionPreflightTest.php:67:        'managed_environment_id' => (int) $fixture['sourceEnvironment']->getKey(),
tests/Unit/Support/PortfolioCompare/CrossEnvironmentPromotionPreflightTest.php:74:        'managed_environment_id' => (int) $fixture['sourceEnvironment']->getKey(),
tests/Unit/Support/PortfolioCompare/CrossEnvironmentPromotionPreflightTest.php:81:        'managed_environment_id' => (int) $fixture['sourceEnvironment']->getKey(),
tests/Unit/Support/PortfolioCompare/CrossEnvironmentPromotionPreflightTest.php:89:        'managed_environment_id' => (int) $fixture['targetEnvironment']->getKey(),
tests/Unit/Support/PortfolioCompare/CrossEnvironmentPromotionPreflightTest.php:96:        'managed_environment_id' => (int) $fixture['targetEnvironment']->getKey(),
tests/Unit/Support/PortfolioCompare/CrossEnvironmentPromotionPreflightTest.php:196:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Unit/Support/PortfolioCompare/CrossEnvironmentPromotionPreflightTest.php:204:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Unit/Support/PortfolioCompare/CrossEnvironmentPromotionPreflightTest.php:215:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Operations/QueuedExecutionMiddlewareOrderingTest.php:20:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Operations/QueuedExecutionMiddlewareOrderingTest.php:39:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Operations/QueuedExecutionMiddlewareOrderingTest.php:48:            'tenant_scope' => 'passed',
tests/Feature/Operations/QueuedExecutionMiddlewareOrderingTest.php:97:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Operations/QueuedExecutionMiddlewareOrderingTest.php:116:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Operations/QueuedExecutionMiddlewareOrderingTest.php:125:            'tenant_scope' => 'passed',
tests/Feature/Operations/QueuedExecutionMiddlewareOrderingTest.php:172:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Operations/QueuedExecutionMiddlewareOrderingTest.php:191:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Operations/QueuedExecutionMiddlewareOrderingTest.php:200:            'tenant_scope' => 'passed',
app/Jobs/Operations/BackupSetRestoreWorkerJob.php:62:                ->where('managed_environment_id', $this->tenantId)
tests/Unit/Support/PortfolioCompare/CrossEnvironmentPromotionExecutionPlannerTest.php:62:            'source_environment_id' => 10,
tests/Unit/Support/PortfolioCompare/CrossEnvironmentPromotionExecutionPlannerTest.php:63:            'target_environment_id' => 20,
tests/Feature/Filament/EntraGroupResolvedReferencePresentationTest.php:42:    $this->get(\App\Filament\Resources\PolicyVersionResource::getUrl('view', ['record' => $version], tenant: $tenant))
tests/Feature/Filament/EntraGroupResolvedReferencePresentationTest.php:69:    $this->get(\App\Filament\Resources\PolicyVersionResource::getUrl('view', ['record' => $version], tenant: $tenant))
tests/Feature/Notifications/SharedDatabaseNotificationContractTest.php:88:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Notifications/SharedDatabaseNotificationContractTest.php:170:        'managed_environment_id' => null,
tests/Feature/Notifications/SharedDatabaseNotificationContractTest.php:182:        'managed_environment_id' => null,
tests/Unit/Support/PortfolioCompare/CrossEnvironmentComparePreviewBuilderTest.php:80:        'managed_environment_id' => (int) $fixture['sourceEnvironment']->getKey(),
tests/Unit/Support/PortfolioCompare/CrossEnvironmentComparePreviewBuilderTest.php:161:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Unit/Support/PortfolioCompare/CrossEnvironmentComparePreviewBuilderTest.php:169:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Unit/Support/PortfolioCompare/CrossEnvironmentComparePreviewBuilderTest.php:180:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/PlatformRelocation/RuntimeSmokeTest.php:20:    expect(route('filament.admin.pages.choose-workspace', absolute: false))->toBe('/admin/choose-workspace')
app/Jobs/Operations/CapturePolicySnapshotWorkerJob.php:72:                ->where('managed_environment_id', $this->tenantId)
tests/Feature/Filament/FindingResolvedReferencePresentationTest.php:57:    $this->get(FindingResource::getUrl('view', ['record' => $finding], tenant: $tenant))
tests/Feature/Filament/FindingResolvedReferencePresentationTest.php:78:    $this->get(FindingResource::getUrl('view', ['record' => $finding], tenant: $tenant))
tests/Feature/Filament/FindingResolvedReferencePresentationTest.php:105:    $this->get(FindingResource::getUrl('view', ['record' => $verifiedFinding], tenant: $tenant))
tests/Feature/Filament/FindingResolvedReferencePresentationTest.php:110:    $this->get(FindingResource::getUrl('view', ['record' => $closedFinding], tenant: $tenant))
tests/Feature/Notifications/OperationRunNotificationTest.php:96:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/Notifications/OperationRunNotificationTest.php:128:        'managed_environment_id' => null,
tests/Feature/Notifications/OperationRunNotificationTest.php:155:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/Notifications/OperationRunNotificationTest.php:203:        'managed_environment_id' => null,
tests/Feature/Notifications/OperationRunNotificationTest.php:244:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Notifications/OperationRunNotificationTest.php:282:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Notifications/OperationRunNotificationTest.php:315:        'managed_environment_id' => null,
tests/Feature/Notifications/OperationRunNotificationTest.php:345:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/Notifications/OperationRunNotificationTest.php:420:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Operations/SystemRunBlockedExecutionNotificationTest.php:12:        'managed_environment_id' => (int) $tenant->getKey(),
app/Jobs/Operations/BackupSetDeleteWorkerJob.php:62:                ->where('managed_environment_id', $this->tenantId)
tests/Feature/Filament/AdminTenantScopedSurfacesRedirectToChooseEnvironmentTest.php:45:            'managed_environment_id' => $tenant->getKey(),
tests/Feature/Filament/AdminTenantScopedSurfacesRedirectToChooseEnvironmentTest.php:104:            '/admin/policies' => PolicyResource::getUrl(panel: 'admin', tenant: $tenantA),
tests/Feature/Filament/AdminTenantScopedSurfacesRedirectToChooseEnvironmentTest.php:105:            '/admin/policy-versions' => PolicyVersionResource::getUrl(panel: 'admin', tenant: $tenantA),
tests/Feature/Filament/AdminTenantScopedSurfacesRedirectToChooseEnvironmentTest.php:106:            '/admin/backup-sets' => BackupSetResource::getUrl(panel: 'admin', tenant: $tenantA),
tests/Feature/Filament/AdminTenantScopedSurfacesRedirectToChooseEnvironmentTest.php:107:            '/admin/inventory', '/admin/inventory/inventory-coverage' => InventoryCoverage::getUrl(panel: 'admin', tenant: $tenantA),
app/Services/Hardening/IntuneRbacWriteGate.php:16:                'managed_environment_id' => $tenant->getKey(),
tests/Feature/Operations/RestoreLinkedOperationDetailTest.php:22:        'managed_environment_id' => $tenant->id,
tests/Feature/Operations/RestoreLinkedOperationDetailTest.php:26:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Operations/RestoreLinkedOperationDetailTest.php:36:        'managed_environment_id' => $tenant->id,
tests/Unit/Support/GovernanceArtifactTruth/GovernanceArtifactLifecycleContractTest.php:21:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Unit/Support/GovernanceArtifactTruth/GovernanceArtifactLifecycleContractTest.php:30:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Unit/Support/GovernanceArtifactTruth/GovernanceArtifactLifecycleContractTest.php:66:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Unit/Support/GovernanceArtifactTruth/GovernanceArtifactLifecycleContractTest.php:83:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Unit/Support/GovernanceArtifactTruth/GovernanceArtifactLifecycleContractTest.php:93:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Unit/Support/GovernanceArtifactTruth/GovernanceArtifactLifecycleContractTest.php:130:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/ChooseEnvironmentIsWorkspaceScopedTest.php:46:        'managed_environment_id' => $tenantA->getKey(),
tests/Feature/Filament/ChooseEnvironmentIsWorkspaceScopedTest.php:55:        'managed_environment_id' => $tenantB->getKey(),
tests/Feature/Operations/BaselineOperationRunGuardTest.php:34:        'managed_environment_id' => (int) $tenant->getKey(),
app/Jobs/FetchAssignmentsJob.php:308:            'managed_environment_id' => $tenantId,
app/Services/Directory/EntraGroupLabelResolver.php:106:            ->where('managed_environment_id', $tenant->getKey())
tests/Feature/Filament/TenantRegistryArrivalContextTest.php:59:    $expectedUrl = EnvironmentDashboard::getUrl(panel: 'admin', tenant: $tenant);
tests/Feature/BulkExportToBackupTest.php:19:    $policy = Policy::factory()->create(['managed_environment_id' => $tenant->id]);
tests/Feature/BulkExportToBackupTest.php:21:        'managed_environment_id' => $tenant->id,
tests/Feature/BulkExportToBackupTest.php:30:        'managed_environment_id' => $tenant->id,
tests/Feature/BulkExportToBackupTest.php:59:        'managed_environment_id' => $tenant->id,
tests/Feature/BulkExportToBackupTest.php:68:        'managed_environment_id' => $tenant->id,
tests/Feature/BulkExportToBackupTest.php:73:        'managed_environment_id' => $tenant->id,
tests/Feature/BulkExportToBackupTest.php:82:        'managed_environment_id' => $tenant->id,
tests/Feature/Operations/RunInventorySyncExecutionReauthorizationTest.php:45:        ->where('managed_environment_id', $tenant->getKey())
app/Services/Directory/EntraGroupSyncService.php:170:                        'managed_environment_id' => $tenant->getKey(),
app/Services/Directory/EntraGroupSyncService.php:194:                ->where('managed_environment_id', $tenant->getKey())
tests/Feature/Filament/BackupSetListContinuityTest.php:18:    $this->get(BackupSetResource::getUrl('index', [
tests/Feature/Filament/BackupSetListContinuityTest.php:32:    $this->get(BackupSetResource::getUrl('index', [
tests/Unit/Support/ReasonTranslation/ProviderReasonTranslationTest.php:16:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Unit/Support/ReasonTranslation/ProviderReasonTranslationTest.php:19:        'entra_tenant_id' => (string) $tenant->graphTenantId(),
tests/Feature/Operations/ExecuteRestoreRunExecutionReauthorizationTest.php:43:        'managed_environment_id' => $tenant->id,
tests/Feature/Operations/ExecuteRestoreRunExecutionReauthorizationTest.php:111:        'managed_environment_id' => $tenant->id,
tests/Feature/StoredReports/StoredReportDetailPresentationTest.php:19:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/StoredReports/StoredReportDetailPresentationTest.php:30:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/StoredReports/StoredReportDetailPresentationTest.php:38:    if ($page->getCachedHeaderActions() === []) {
tests/Feature/StoredReports/StoredReportDetailPresentationTest.php:39:        $page->cacheInteractsWithHeaderActions();
tests/Feature/StoredReports/StoredReportDetailPresentationTest.php:42:    return collect($page->getCachedHeaderActions())
tests/Feature/StoredReports/StoredReportDetailPresentationTest.php:64:        ->get(StoredReportResource::getUrl('view', ['record' => $report], tenant: $tenant, panel: 'admin'))
tests/Feature/StoredReports/StoredReportDetailPresentationTest.php:136:        ->get(StoredReportResource::getUrl('view', ['record' => $historical], tenant: $tenant, panel: 'admin'))
tests/Feature/StoredReports/StoredReportDetailPresentationTest.php:157:            && $action->getUrl() === StoredReportResource::getUrl('view', ['record' => $current], panel: 'admin', tenant: $tenant))
tests/Feature/StoredReports/StoredReportDetailPresentationTest.php:165:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/StoredReports/StoredReportDetailPresentationTest.php:172:        ->get(StoredReportResource::getUrl('view', ['record' => $unsupported], tenant: $tenant, panel: 'admin'))
app/Services/Directory/RoleDefinitionsSyncService.php:162:                        'managed_environment_id' => $tenant->getKey(),
app/Services/Directory/RoleDefinitionsSyncService.php:186:                ->where('managed_environment_id', $tenant->getKey())
tests/Feature/Filament/InventoryCoverageAdminTenantParityTest.php:22:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/InventoryCoverageAdminTenantParityTest.php:75:    $url = InventoryCoverage::getUrl(panel: 'admin', tenant: $tenant);
tests/Feature/Filament/InventoryCoverageAdminTenantParityTest.php:104:        ->get(InventoryCoverage::getUrl(panel: 'admin', tenant: $tenantA))
tests/Feature/Operations/TenantlessOperationRunViewerTest.php:43:        'managed_environment_id' => null,
tests/Feature/Operations/TenantlessOperationRunViewerTest.php:64:        'managed_environment_id' => null,
tests/Feature/Operations/TenantlessOperationRunViewerTest.php:89:        'managed_environment_id' => null,
tests/Feature/Operations/TenantlessOperationRunViewerTest.php:165:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Operations/TenantlessOperationRunViewerTest.php:182:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Operations/TenantlessOperationRunViewerTest.php:225:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Operations/TenantlessOperationRunViewerTest.php:297:        'managed_environment_id' => (int) $tenantA->getKey(),
tests/Feature/Operations/TenantlessOperationRunViewerTest.php:325:        'managed_environment_id' => null,
tests/Feature/Operations/TenantlessOperationRunViewerTest.php:366:        'managed_environment_id' => (int) $runTenant->getKey(),
tests/Feature/Operations/TenantlessOperationRunViewerTest.php:409:        'managed_environment_id' => (int) $runTenant->getKey(),
tests/Feature/Operations/TenantlessOperationRunViewerTest.php:449:        'managed_environment_id' => null,
tests/Feature/Operations/TenantlessOperationRunViewerTest.php:455:                'entra_tenant_id' => $entraTenantId,
tests/Feature/Operations/TenantlessOperationRunViewerTest.php:498:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Operations/TenantlessOperationRunViewerTest.php:542:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Operations/TenantlessOperationRunViewerTest.php:555:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Operations/TenantlessOperationRunViewerTest.php:579:        'managed_environment_id' => null,
tests/Feature/Operations/TenantlessOperationRunViewerTest.php:603:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Operations/TenantlessOperationRunViewerTest.php:644:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Operations/TenantlessOperationRunViewerTest.php:690:        'managed_environment_id' => null,
tests/Feature/Operations/TenantlessOperationRunViewerTest.php:730:        'managed_environment_id' => null,
tests/Feature/Operations/TenantlessOperationRunViewerTest.php:759:        'managed_environment_id' => null,
tests/Feature/Operations/TenantlessOperationRunViewerTest.php:782:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/StoredReports/StoredReportEntitlementEnforcementTest.php:25:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/StoredReports/StoredReportEntitlementEnforcementTest.php:36:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/StoredReports/StoredReportEntitlementEnforcementTest.php:57:        ->get(StoredReportResource::getUrl('index', tenant: $tenant, panel: 'admin'))
tests/Feature/StoredReports/StoredReportEntitlementEnforcementTest.php:61:        ->get(StoredReportResource::getUrl('view', ['record' => $report], tenant: $tenant, panel: 'admin'))
tests/Feature/StoredReports/StoredReportEntitlementEnforcementTest.php:72:        ->get(StoredReportResource::getUrl('index', tenant: $tenant, panel: 'admin'))
tests/Feature/StoredReports/StoredReportEntitlementEnforcementTest.php:103:        ->get(StoredReportResource::getUrl('view', ['record' => $permissionReport], tenant: $tenant, panel: 'admin'))
tests/Feature/StoredReports/StoredReportEntitlementEnforcementTest.php:111:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/StoredReports/StoredReportEntitlementEnforcementTest.php:118:        ->get(StoredReportResource::getUrl('view', ['record' => $unsupported], tenant: $tenant, panel: 'admin'))
tests/Feature/StoredReports/StoredReportEntitlementEnforcementTest.php:127:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/StoredReports/StoredReportEntitlementEnforcementTest.php:137:        ->get(StoredReportResource::getUrl('view', ['record' => $wrongWorkspaceReportId], tenant: $tenant, panel: 'admin'))
tests/Feature/BulkDeletePoliciesTest.php:18:    $policies = Policy::factory()->count(10)->create(['managed_environment_id' => $tenant->id]);
tests/Feature/BulkDeletePoliciesTest.php:33:            'entra_tenant_id' => (string) ($tenant->managed_environment_id ?? $tenant->external_id ?? $tenant->getKey()),
app/Jobs/GenerateReviewPackJob.php:385:            'managed_environment_id' => $tenant->external_id,
app/Jobs/GenerateReviewPackJob.php:682:                'managed_environment_id' => $tenant->external_id,
tests/Feature/AdminConsentCallbackTest.php:16:        'managed_environment_id' => 'tenant-1',
tests/Feature/AdminConsentCallbackTest.php:20:    $response = $this->get(route('admin.consent.callback', [
tests/Feature/AdminConsentCallbackTest.php:21:        'tenant' => $tenant->managed_environment_id,
tests/Feature/AdminConsentCallbackTest.php:34:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/AdminConsentCallbackTest.php:36:        ->where('entra_tenant_id', $tenant->graphTenantId())
tests/Feature/AdminConsentCallbackTest.php:46:        'managed_environment_id' => $tenant->id,
tests/Feature/AdminConsentCallbackTest.php:54:        'managed_environment_id' => 'tenant-3',
tests/Feature/AdminConsentCallbackTest.php:59:    $response = $this->get(route('admin.consent.callback', [
tests/Feature/AdminConsentCallbackTest.php:60:        'tenant' => $tenant->managed_environment_id,
tests/Feature/AdminConsentCallbackTest.php:65:    $response->assertSee(route('admin.onboarding'), false);
tests/Feature/AdminConsentCallbackTest.php:70:        'managed_environment_id' => 'tenant-verify-reset',
tests/Feature/AdminConsentCallbackTest.php:76:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/AdminConsentCallbackTest.php:79:        'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Feature/AdminConsentCallbackTest.php:84:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/AdminConsentCallbackTest.php:91:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/AdminConsentCallbackTest.php:92:        'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Feature/AdminConsentCallbackTest.php:104:    $this->get(route('admin.consent.callback', [
tests/Feature/AdminConsentCallbackTest.php:105:        'tenant' => $tenant->managed_environment_id,
tests/Feature/AdminConsentCallbackTest.php:125:    ])->get(route('admin.consent.callback', [
tests/Feature/AdminConsentCallbackTest.php:136:        ->where('managed_environment_id', (int) $tenant->id)
tests/Feature/AdminConsentCallbackTest.php:138:        ->where('entra_tenant_id', $tenant->graphTenantId())
tests/Feature/AdminConsentCallbackTest.php:150:        'managed_environment_id' => 'tenant-2',
tests/Feature/AdminConsentCallbackTest.php:154:    $response = $this->get(route('admin.consent.callback', [
tests/Feature/AdminConsentCallbackTest.php:155:        'tenant' => $tenant->managed_environment_id,
tests/Feature/AdminConsentCallbackTest.php:164:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/AdminConsentCallbackTest.php:166:        ->where('entra_tenant_id', $tenant->graphTenantId())
tests/Feature/AdminConsentCallbackTest.php:177:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/RestoreExecutionTest.php:55:        'managed_environment_id' => 'tenant-1',
tests/Feature/Filament/RestoreExecutionTest.php:62:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/RestoreExecutionTest.php:70:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/RestoreExecutionTest.php:77:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/RestoreExecutionTest.php:337:        'managed_environment_id' => 'tenant-3',
tests/Feature/Filament/RestoreExecutionTest.php:344:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/RestoreExecutionTest.php:352:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/RestoreExecutionTest.php:359:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/RestoreExecutionTest.php:451:        'managed_environment_id' => 'tenant-scope-tags',
tests/Feature/Filament/RestoreExecutionTest.php:459:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/RestoreExecutionTest.php:467:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/RestoreExecutionTest.php:474:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/RestoreExecutionTest.php:569:        'managed_environment_id' => 'tenant-1',
tests/Feature/Filament/RestoreExecutionTest.php:675:        'managed_environment_id' => 'tenant-4',
tests/Feature/StoredReports/StoredReportResourceTest.php:21:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/StoredReports/StoredReportResourceTest.php:32:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/StoredReports/StoredReportResourceTest.php:42:        ->get(StoredReportResource::getUrl('index', tenant: $tenant, panel: 'admin'))
tests/Feature/StoredReports/StoredReportResourceTest.php:74:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/StoredReports/StoredReportResourceTest.php:90:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/StoredReports/StoredReportResourceTest.php:130:        ->and($table->getRecordUrl($report))->toBe(StoredReportResource::getUrl('view', ['record' => $report]));
app/Support/SupportRequests/SupportRequestSubmissionService.php:111:                'managed_environment_id' => (int) $tenant->getKey(),
app/Support/SupportRequests/SupportRequestSubmissionService.php:225:            ->where('managed_environment_id', (int) $tenant->getKey())
app/Support/SupportRequests/SupportRequestSubmissionService.php:264:            ->where('managed_environment_id', (int) $tenant->getKey())
app/Support/SupportRequests/SupportRequestSubmissionService.php:297:                : (is_numeric($supportRequest->managed_environment_id) ? (int) $supportRequest->managed_environment_id : null),
app/Services/Operations/OperationLifecycleReconciler.php:27:     *     tenant_ids?: array<int, int>,
app/Services/Operations/OperationLifecycleReconciler.php:41:            $options['tenant_ids'] ?? [],
app/Services/Operations/OperationLifecycleReconciler.php:60:                fn (Builder $query): Builder => $query->whereIn('managed_environment_id', $tenantIds),
tests/Unit/Support/ProductKnowledge/ContextualHelpFallbackTest.php:31:    expect($encoded)->not->toContain('managed_environment_id')
app/Support/SupportRequests/SupportRequestContextBuilder.php:62:                'managed_environment_id' => data_get($bundle, 'context.managed_environment_id'),
app/Jobs/BulkPolicyExportJob.php:67:                'managed_environment_id' => $tenant->getKey(),
app/Jobs/BulkPolicyExportJob.php:89:                        ->where('managed_environment_id', $tenant->getKey())
app/Jobs/BulkPolicyExportJob.php:202:                        'managed_environment_id' => $tenant->getKey(),
tests/Feature/SupportRequests/TenantSupportRequestActionTest.php:54:        ->and($supportRequest->managed_environment_id)->toBe((int) $tenant->getKey())
tests/Feature/SupportRequests/TenantSupportRequestActionTest.php:65:        ->and(data_get($supportRequest->context_envelope, 'primary_context.managed_environment_id'))->toBe((int) $tenant->getKey())
tests/Feature/SupportRequests/TenantSupportRequestActionTest.php:125:        'managed_environment_id' => (int) $allowedTenant->getKey(),
tests/Feature/SupportRequests/TenantSupportRequestActionTest.php:135:        ->get(EnvironmentDashboard::getUrl(panel: 'admin', tenant: $tenant))
tests/Feature/SettingsFoundation/RetentionFallbackUsesWorkspaceDefaultTest.php:23:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/SettingsFoundation/RetentionFallbackUsesWorkspaceDefaultTest.php:37:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/SettingsFoundation/RetentionFallbackUsesWorkspaceDefaultTest.php:50:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/BaselineCompareLandingWhyNoFindingsTest.php:36:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/BaselineCompareLandingWhyNoFindingsTest.php:41:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/BaselineCompareLandingWhyNoFindingsTest.php:90:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/BaselineCompareLandingWhyNoFindingsTest.php:95:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/BaselineCompareLandingWhyNoFindingsTest.php:149:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/BaselineCompareLandingWhyNoFindingsTest.php:154:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/BaselineCompareLandingWhyNoFindingsTest.php:206:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/BaselineCompareLandingWhyNoFindingsTest.php:211:        'managed_environment_id' => (int) $tenant->getKey(),
app/Services/Operations/QueuedExecutionLegitimacyGate.php:57:            $checks['tenant_scope'] = 'passed';
app/Services/Operations/QueuedExecutionLegitimacyGate.php:58:        } elseif ($run->managed_environment_id !== null) {
app/Services/Operations/QueuedExecutionLegitimacyGate.php:59:            $checks['tenant_scope'] = 'failed';
app/Services/Operations/QueuedExecutionLegitimacyGate.php:72:                $checks['tenant_scope'] = 'failed';
app/Services/Operations/QueuedExecutionLegitimacyGate.php:173:                'managed_environment_id' => $run->managed_environment_id !== null ? (int) $run->managed_environment_id : null,
app/Services/Operations/QueuedExecutionLegitimacyGate.php:188:     * @param  array{workspace_scope:string,tenant_scope:string,capability:string,tenant_operability:string,execution_prerequisites:string}  $checks
app/Services/Operations/QueuedExecutionLegitimacyGate.php:189:     * @return array{workspace_scope:string,tenant_scope:string,capability:string,tenant_operability:string,execution_prerequisites:string}|QueuedExecutionLegitimacyDecision
app/Services/Operations/QueuedExecutionLegitimacyGate.php:198:                    fn ($query) => $query->where('managed_environment_id', (int) $context->tenant->getKey()),
app/Jobs/GenerateEvidenceSnapshotJob.php:61:                ->where('managed_environment_id', (int) $snapshot->managed_environment_id)
app/Jobs/GenerateEvidenceSnapshotJob.php:71:                    'managed_environment_id' => (int) $snapshot->managed_environment_id,
app/Support/SupportRequests/ExternalSupportDeskHandoffService.php:172:                    : $supportRequest->managed_environment_id,
app/Support/SupportRequests/ExternalSupportDeskHandoffService.php:174:                'managed_environment_id' => $supportRequest->managed_environment_id,
tests/Feature/SupportRequests/OperationRunSupportRequestExternalHandoffTest.php:47:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/SettingsFoundation/WorkspaceSettingsAuditTest.php:34:        ->and($audit?->managed_environment_id)->toBeNull()
tests/Feature/SettingsFoundation/WorkspaceSettingsAuditTest.php:77:        ->and($audit?->managed_environment_id)->toBeNull()
tests/Feature/SettingsFoundation/WorkspaceSettingsAuditTest.php:105:        ->and($audit?->managed_environment_id)->toBeNull()
tests/Feature/SettingsFoundation/WorkspaceSettingsAuditTest.php:148:        ->and($audit?->managed_environment_id)->toBeNull()
tests/Feature/Filament/SelectEnvironmentPostPersistsLastUsedTest.php:34:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/Filament/SelectEnvironmentPostPersistsLastUsedTest.php:45:        ->post(route('admin.select-environment'), ['managed_environment_id' => (int) $tenant->getKey()]);
tests/Feature/Filament/SelectEnvironmentPostPersistsLastUsedTest.php:47:    $response->assertRedirect(EnvironmentDashboard::getUrl(tenant: $tenant));
tests/Feature/Filament/SelectEnvironmentPostPersistsLastUsedTest.php:51:    if (Schema::hasColumn('users', 'last_tenant_id')) {
tests/Feature/Filament/SelectEnvironmentPostPersistsLastUsedTest.php:52:        expect($user->last_tenant_id)->toBe($tenant->getKey());
tests/Feature/Filament/SelectEnvironmentPostPersistsLastUsedTest.php:59:            ->where('managed_environment_id', $tenant->getKey())
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:55:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:83:        'managed_environment_id' => fake()->uuid(),
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:93:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:95:        'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:127:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:157:            'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:224:            'entra_tenant_id' => $entraTenantId,
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:237:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:244:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:245:        'entra_tenant_id' => $entraTenantId,
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:286:            'entra_tenant_id' => $entraTenantId,
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:314:        'managed_environment_id' => $entraTenantId,
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:321:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:323:        'entra_tenant_id' => $entraTenantId,
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:331:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:338:                'entra_tenant_id' => $entraTenantId,
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:359:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:360:        'entra_tenant_id' => $entraTenantId,
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:395:        'managed_environment_id' => $entraTenantId,
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:406:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:408:        'entra_tenant_id' => $entraTenantId,
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:416:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:423:                'entra_tenant_id' => $entraTenantId,
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:444:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:445:        'entra_tenant_id' => $entraTenantId,
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:485:        'managed_environment_id' => $entraTenantId,
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:496:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:498:        'entra_tenant_id' => $entraTenantId,
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:506:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:513:                'entra_tenant_id' => $entraTenantId,
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:534:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:548:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:549:        'entra_tenant_id' => $entraTenantId,
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:606:        'managed_environment_id' => $entraTenantId,
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:617:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:619:        'entra_tenant_id' => $entraTenantId,
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:627:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:651:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:652:        'entra_tenant_id' => $entraTenantId,
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:690:        'managed_environment_id' => $tenantGuid,
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:701:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:703:        'entra_tenant_id' => $tenantGuid,
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:711:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:718:                'entra_tenant_id' => $tenantGuid,
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:739:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:740:        'entra_tenant_id' => $tenantGuid,
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:798:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:799:        'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:802:            'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:836:        'entra_tenant_id' => $entraTenantId,
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:856:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:882:        'entra_tenant_id' => $entraTenantId,
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:916:        'entra_tenant_id' => $entraTenantId,
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:922:        'entra_tenant_id' => $entraTenantId,
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:930:        ->where('entra_tenant_id', $entraTenantId)
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:935:it('returns 404 and does not create anything when entra_tenant_id exists in another workspace', function (): void {
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:957:        'managed_environment_id' => $entraTenantId,
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:966:            'entra_tenant_id' => $entraTenantId,
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:1001:            'entra_tenant_id' => '77777777-7777-7777-7777-777777777777',
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:1030:        'managed_environment_id' => '31313131-3131-3131-3131-313131313131',
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:1040:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:1042:        'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:1054:            'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:1063:        ->get(route('admin.onboarding.draft', ['onboardingDraft' => $draft->getKey()]))
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:1089:        'managed_environment_id' => '32323232-3232-3232-3232-323232323232',
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:1101:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:1103:        'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:1110:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:1139:            'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:1149:        ->get(route('admin.onboarding.draft', ['onboardingDraft' => $draft->getKey()]))
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:1163:        ->get(route('admin.onboarding.draft', ['onboardingDraft' => $draft->getKey()]))
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:1179:        ->get(route('admin.onboarding.draft', ['onboardingDraft' => $draft->getKey()]))
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:1201:        ->get(route('admin.onboarding.draft', ['onboardingDraft' => $draft->getKey()]))
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:1223:        'managed_environment_id' => '52525252-5252-5252-5252-525252525252',
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:1235:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:1237:        'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:1244:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:1273:            'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:1283:        ->get(route('admin.onboarding.draft', ['onboardingDraft' => $draft->getKey()]))
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:1304:        'managed_environment_id' => '53535353-5353-5353-5353-535353535353',
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:1316:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:1318:        'entra_tenant_id' => '54545454-5454-5454-5454-545454545454',
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:1323:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:1325:        'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:1332:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:1361:            'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:1371:        ->get(route('admin.onboarding.draft', ['onboardingDraft' => $draft->getKey()]))
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:1396:        'entra_tenant_id' => '88888888-8888-8888-8888-888888888888',
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:1398:            'entra_tenant_id' => '88888888-8888-8888-8888-888888888888',
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:1407:        'entra_tenant_id' => '12121212-1212-1212-1212-121212121212',
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:1409:            'entra_tenant_id' => '12121212-1212-1212-1212-121212121212',
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:1417:            'entra_tenant_id' => '88888888-8888-8888-8888-888888888888',
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:1421:        ->assertRedirect(route('admin.onboarding.draft', ['onboardingDraft' => $existingDraft->getKey()]));
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:1425:        ->where('entra_tenant_id', '88888888-8888-8888-8888-888888888888')
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:1446:            'entra_tenant_id' => '99999999-9999-9999-9999-999999999999',
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:1456:            'entra_tenant_id' => 'aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa',
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:1464:            TestAction::make('resume_draft_'.$draftToResume->getKey())
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:1467:        ->assertRedirect(route('admin.onboarding.draft', ['onboardingDraft' => $draftToResume->getKey()]));
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:1490:    $component->call('identifyManagedEnvironment', ['managed_environment_id' => $tenantGuid, 'name' => 'Acme']);
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:1491:    $component->call('identifyManagedEnvironment', ['managed_environment_id' => $tenantGuid, 'name' => 'Acme']);
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:1493:    expect(ManagedEnvironment::query()->where('managed_environment_id', $tenantGuid)->count())->toBe(1);
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:1495:    $tenant = ManagedEnvironment::query()->where('managed_environment_id', $tenantGuid)->firstOrFail();
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:1499:        ->where('managed_environment_id', $tenant->getKey())
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:1504:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:1508:it('returns 404 and does not create anything when managed_environment_id exists in another workspace', function (): void {
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:1524:        'managed_environment_id' => $tenantGuid,
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:1532:        ->call('identifyManagedEnvironment', ['managed_environment_id' => $tenantGuid, 'name' => 'Acme'])
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:1535:    expect(ManagedEnvironment::query()->where('managed_environment_id', $tenantGuid)->count())->toBe(1);
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:1539:        ->whereIn('managed_environment_id', ManagedEnvironment::query()->where('managed_environment_id', $tenantGuid)->pluck('id'))
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:1557:        'managed_environment_id' => $tenantGuid,
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:1563:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:1573:        'managed_environment_id' => $tenantGuid,
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:1577:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:1584:        ->call('identifyManagedEnvironment', ['managed_environment_id' => $tenantGuid, 'name' => 'Acme'])
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:1590:        'managed_environment_id' => $tenantGuid,
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:1608:        'managed_environment_id' => $tenantGuid,
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:1614:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:1616:        'entra_tenant_id' => $tenantGuid,
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:1622:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:1624:        'entra_tenant_id' => $tenantGuid,
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:1633:    $component->call('identifyManagedEnvironment', ['managed_environment_id' => $tenantGuid, 'name' => 'Acme']);
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:1639:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:1668:    $component->call('identifyManagedEnvironment', ['managed_environment_id' => $tenantGuid, 'name' => 'Acme']);
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:1670:    $tenant = ManagedEnvironment::query()->where('managed_environment_id', $tenantGuid)->firstOrFail();
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:1673:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:1687:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:1702:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:1726:        ->call('identifyManagedEnvironment', ['managed_environment_id' => $tenantGuid, 'name' => 'Acme'])
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:1735:    $tenant = ManagedEnvironment::query()->where('managed_environment_id', $tenantGuid)->firstOrFail();
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:1738:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:1740:        ->where('entra_tenant_id', $tenantGuid)
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:1748:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:1774:    $component->call('identifyManagedEnvironment', ['managed_environment_id' => $tenantGuid, 'name' => 'Acme']);
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:1776:    $tenant = ManagedEnvironment::query()->where('managed_environment_id', $tenantGuid)->firstOrFail();
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:1779:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:1781:        'entra_tenant_id' => $tenantGuid,
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:1789:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:1826:    $component->call('identifyManagedEnvironment', ['managed_environment_id' => $tenantGuid, 'name' => 'Acme']);
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:1828:    $tenant = ManagedEnvironment::query()->where('managed_environment_id', $tenantGuid)->firstOrFail();
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:1831:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:1833:        'entra_tenant_id' => $tenantGuid,
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:1839:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:1871:    $component->call('identifyManagedEnvironment', ['managed_environment_id' => $tenantGuid, 'name' => 'Acme']);
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:1873:    $tenant = ManagedEnvironment::query()->where('managed_environment_id', $tenantGuid)->firstOrFail();
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:1876:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:1878:        'entra_tenant_id' => $tenantGuid,
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:1883:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:1897:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:1909:        ->assertRedirect(EnvironmentDashboard::getUrl(tenant: $tenant));
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:1935:    $component->call('identifyManagedEnvironment', ['managed_environment_id' => $tenantGuid, 'name' => 'Acme']);
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:1937:    $tenant = ManagedEnvironment::query()->where('managed_environment_id', $tenantGuid)->firstOrFail();
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:1940:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:1942:        'entra_tenant_id' => $tenantGuid,
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:1947:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:1961:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:1980:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:1985:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:2022:    $component->call('identifyManagedEnvironment', ['managed_environment_id' => $tenantGuid, 'name' => 'Acme']);
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:2024:    $tenant = ManagedEnvironment::query()->where('managed_environment_id', $tenantGuid)->firstOrFail();
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:2027:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:2029:        'entra_tenant_id' => $tenantGuid,
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:2034:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:2048:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:2061:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:2077:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:2104:    $component->call('identifyManagedEnvironment', ['managed_environment_id' => $tenantGuid, 'name' => 'Acme']);
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:2106:    $tenant = ManagedEnvironment::query()->where('managed_environment_id', $tenantGuid)->firstOrFail();
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:2109:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:2114:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:2131:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:2155:    $component->call('identifyManagedEnvironment', ['managed_environment_id' => $tenantGuid, 'name' => 'Acme']);
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:2157:    $tenant = ManagedEnvironment::query()->where('managed_environment_id', $tenantGuid)->firstOrFail();
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:2160:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:2162:        'entra_tenant_id' => $tenantGuid,
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:2167:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:2196:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:2251:            'managed_environment_id' => '11111111-1111-1111-1111-111111111111',
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:2257:        ->get(EnvironmentDashboard::getUrl(tenant: $tenant))
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:2262:    expect($tenant->external_id)->toBe($tenant->managed_environment_id);
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:2270:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/ManagedEnvironmentOnboardingWizardTest.php:2281:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Unit/Support/RelatedNavigationResolverTest.php:34:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Unit/Support/RelatedNavigationResolverTest.php:39:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Unit/Support/RelatedNavigationResolverTest.php:84:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/SettingsFoundation/WorkspaceSettingsNonMemberNotFoundTest.php:27:        ->get(WorkspaceSettings::getUrl(panel: 'admin'))
tests/Feature/SupportRequests/SupportRequestAuditTest.php:50:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/SupportRequests/SupportRequestAuditTest.php:76:        ->and($audit?->managed_environment_id)->toBe((int) $tenant->getKey())
tests/Feature/SupportRequests/SupportRequestAuditTest.php:94:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/SupportRequests/SupportRequestAuditTest.php:130:        ->and($audit?->managed_environment_id)->toBe((int) $tenant->getKey())
tests/Feature/SupportRequests/SupportRequestAuditTest.php:148:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Unit/Support/BackupHealth/TenantBackupHealthResolverTest.php:28:        'managed_environment_id' => (int) $tenant->getKey(),
app/Services/Operations/TargetScopeConcurrencyLimiter.php:18:     * @param  array{entra_tenant_id?: mixed, directory_context_id?: mixed}  $targetScope
app/Services/Operations/TargetScopeConcurrencyLimiter.php:51:     * @param  array{entra_tenant_id?: mixed, directory_context_id?: mixed}  $targetScope
app/Services/Operations/TargetScopeConcurrencyLimiter.php:55:        $entraTenantId = $targetScope['entra_tenant_id'] ?? null;
app/Services/Operations/TargetScopeConcurrencyLimiter.php:70:        throw new InvalidArgumentException('Target scope must include entra_tenant_id or directory_context_id.');
tests/Feature/SettingsFoundation/WorkspaceAiPolicySettingsTest.php:36:        ->get(WorkspaceSettings::getUrl(panel: 'admin'))
tests/Feature/ReviewPack/EnvironmentReviewDerivedReviewPackTest.php:111:        ->get(ReviewPackResource::getUrl('view', ['record' => $pack], tenant: $tenant, panel: 'admin'))
tests/Feature/Filament/CreateCtaPlacementTest.php:32:    $instance->cacheInteractsWithHeaderActions();
tests/Feature/Filament/CreateCtaPlacementTest.php:34:    foreach ($instance->getCachedHeaderActions() as $action) {
tests/Feature/Filament/CreateCtaPlacementTest.php:145:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/CreateCtaPlacementTest.php:194:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/CreateCtaPlacementTest.php:234:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/CreateCtaPlacementTest.php:272:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/CreateCtaPlacementTest.php:350:            'entra_tenant_id' => 'aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa',
tests/Feature/Filament/CreateCtaPlacementTest.php:378:            'entra_tenant_id' => 'bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbb',
tests/Feature/Filament/CreateCtaPlacementTest.php:402:            'entra_tenant_id' => 'cccccccc-cccc-cccc-cccc-cccccccccccc',
tests/Feature/Filament/CreateCtaPlacementTest.php:412:            'entra_tenant_id' => 'dddddddd-dddd-dddd-dddd-dddddddddddd',
tests/Feature/Filament/CreateCtaPlacementTest.php:452:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/SupportRequests/OperationRunSupportRequestActionTest.php:33:function operationSupportRequestHeaderActions(\Livewire\Features\SupportTesting\Testable $component): array
tests/Feature/SupportRequests/OperationRunSupportRequestActionTest.php:37:    if ($instance->getCachedHeaderActions() === []) {
tests/Feature/SupportRequests/OperationRunSupportRequestActionTest.php:38:        $instance->cacheInteractsWithHeaderActions();
tests/Feature/SupportRequests/OperationRunSupportRequestActionTest.php:41:    return $instance->getCachedHeaderActions();
tests/Feature/SupportRequests/OperationRunSupportRequestActionTest.php:46:    return collect(operationSupportRequestHeaderActions($component))
tests/Feature/SupportRequests/OperationRunSupportRequestActionTest.php:56:    $moreGroup = collect(operationSupportRequestHeaderActions($component))
tests/Feature/SupportRequests/OperationRunSupportRequestActionTest.php:68:    $moreGroup = collect(operationSupportRequestHeaderActions($component))
tests/Feature/SupportRequests/OperationRunSupportRequestActionTest.php:127:        ->and($supportRequest->managed_environment_id)->toBe((int) $tenant->getKey())
tests/Feature/SupportRequests/OperationRunSupportRequestActionTest.php:159:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Unit/Support/GovernanceInbox/GovernanceInboxSectionBuilderTest.php:68:        'managed_environment_id' => (int) $alphaTenant->getKey(),
tests/Unit/Support/GovernanceInbox/GovernanceInboxSectionBuilderTest.php:98:        'managed_environment_id' => null,
tests/Unit/Support/GovernanceInbox/GovernanceInboxSectionBuilderTest.php:187:        ->and($sections['alert_delivery_failures']['dominant_action_url'])->toContain('tableFilters%5Bstatus%5D%5Bvalue%5D=failed')
tests/Unit/Support/GovernanceInbox/GovernanceInboxSectionBuilderTest.php:208:        'managed_environment_id' => null,
tests/Unit/Support/GovernanceInbox/GovernanceInboxSectionBuilderTest.php:250:        'managed_environment_id' => (int) $hiddenTenant->getKey(),
app/Services/Tenants/TenantActionPolicySurface.php:143:            ->where('managed_environment_id', (int) $tenant->getKey())
app/Jobs/BulkPolicyUnignoreJob.php:72:                        ->where('managed_environment_id', $tenant->getKey())
tests/Feature/SettingsFoundation/WorkspaceSettingsManageTest.php:42:        ->get(WorkspaceSettings::getUrl(panel: 'admin'))
tests/Feature/SettingsFoundation/WorkspaceSettingsManageTest.php:180:        ->get(WorkspaceSettings::getUrl(panel: 'admin'))
tests/Feature/SettingsFoundation/WorkspaceSettingsManageTest.php:207:        ->get(WorkspaceSettings::getUrl(panel: 'admin'))
tests/Feature/SettingsFoundation/WorkspaceSettingsManageTest.php:291:        ->get(WorkspaceSettings::getUrl(panel: 'admin'))
tests/Feature/SettingsFoundation/WorkspaceSettingsManageTest.php:346:        ->get(WorkspaceSettings::getUrl(panel: 'admin'))
tests/Feature/SettingsFoundation/WorkspaceSettingsManageTest.php:416:        ->get(WorkspaceSettings::getUrl(panel: 'admin'))
tests/Feature/SettingsFoundation/WorkspaceSettingsManageTest.php:513:        ->mountAction(TestAction::make('reset_findings_sla_days')->schemaComponent('findings_section'));
tests/Feature/SettingsFoundation/WorkspaceSettingsManageTest.php:532:        ->get(WorkspaceSettings::getUrl(panel: 'admin'))
tests/Feature/Filament/TenantVerificationReportWidgetTest.php:31:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/TenantVerificationReportWidgetTest.php:34:        'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Feature/Filament/TenantVerificationReportWidgetTest.php:52:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/Filament/TenantVerificationReportWidgetTest.php:96:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/TenantVerificationReportWidgetTest.php:102:                'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Feature/Filament/TenantVerificationReportWidgetTest.php:136:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/TenantVerificationReportWidgetTest.php:189:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/TenantVerificationReportWidgetTest.php:192:        'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Feature/Filament/TenantVerificationReportWidgetTest.php:211:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/Filament/TenantVerificationReportWidgetTest.php:254:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/TenantVerificationReportWidgetTest.php:257:        'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Feature/Filament/TenantVerificationReportWidgetTest.php:275:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/SupportRequests/TenantSupportRequestExternalHandoffTest.php:72:    Http::assertSent(fn (Request $request): bool => $request->url() === 'https://desk.example.test/api/tickets'
tests/Feature/ReviewPack/ReviewPackResourceTest.php:53:    $instance->cacheInteractsWithHeaderActions();
tests/Feature/ReviewPack/ReviewPackResourceTest.php:55:    foreach ($instance->getCachedHeaderActions() as $action) {
tests/Feature/ReviewPack/ReviewPackResourceTest.php:67:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/ReviewPack/ReviewPackResourceTest.php:79:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/ReviewPack/ReviewPackResourceTest.php:89:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/ReviewPack/ReviewPackResourceTest.php:94:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/ReviewPack/ReviewPackResourceTest.php:108:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/ReviewPack/ReviewPackResourceTest.php:119:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/ReviewPack/ReviewPackResourceTest.php:145:        ->get(ReviewPackResource::getUrl('index', tenant: $tenant, panel: 'admin'))
tests/Feature/ReviewPack/ReviewPackResourceTest.php:156:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/ReviewPack/ReviewPackResourceTest.php:162:        'managed_environment_id' => (int) $otherTenant->getKey(),
tests/Feature/ReviewPack/ReviewPackResourceTest.php:211:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/ReviewPack/ReviewPackResourceTest.php:281:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/ReviewPack/ReviewPackResourceTest.php:305:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/ReviewPack/ReviewPackResourceTest.php:340:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/ReviewPack/ReviewPackResourceTest.php:370:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/ReviewPack/ReviewPackResourceTest.php:392:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/ReviewPack/ReviewPackResourceTest.php:446:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/ReviewPack/ReviewPackResourceTest.php:471:        ->get(ReviewPackResource::getUrl('view', ['record' => $pack], tenant: $tenant, panel: 'admin'))
tests/Feature/ReviewPack/ReviewPackResourceTest.php:501:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/ReviewPack/ReviewPackResourceTest.php:518:        ->get(ReviewPackResource::getUrl('view', ['record' => $pack], tenant: $tenant, panel: 'admin'))
tests/Feature/ReviewPack/ReviewPackResourceTest.php:571:        ->get(ReviewPackResource::getUrl('view', ['record' => $pack], tenant: $tenant))
tests/Feature/ReviewPack/ReviewPackResourceTest.php:614:        ->get(ReviewPackResource::getUrl('view', ['record' => $pack], tenant: $tenant, panel: 'admin'))
tests/Feature/ReviewPack/ReviewPackResourceTest.php:626:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/ReviewPack/ReviewPackResourceTest.php:644:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/ReviewPack/ReviewPackResourceTest.php:662:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/ReviewPack/ReviewPackResourceTest.php:670:        ->get(ReviewPackResource::getUrl('view', ['record' => $pack], tenant: $tenant, panel: 'admin').'?'.http_build_query([
tests/Feature/ReviewPack/ReviewPackResourceTest.php:700:        ->get(ReviewPackResource::getUrl('index', tenant: $tenant, panel: 'admin'))
tests/Feature/ReviewPack/ReviewPackResourceTest.php:711:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/ReviewPack/ReviewPackResourceTest.php:715:        ->get(ReviewPackResource::getUrl('view', ['record' => $pack], tenant: $tenant))
app/Jobs/BulkRestoreRunRestoreJob.php:77:                    ->where('managed_environment_id', $tenant->getKey())
tests/Unit/Support/Rbac/UiEnforcementTest.php:67:        $action = \Filament\Actions\Action::make('test')
tests/Unit/Support/Rbac/UiEnforcementTest.php:76:        $action = \Filament\Actions\Action::make('test')
tests/Feature/SupportRequests/SupportRequestExternalHandoffAuthorizationTest.php:45:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/SupportRequests/SupportRequestExternalHandoffAuthorizationTest.php:97:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/EnrollmentRestrictionsPreviewOnlyTest.php:55:        'managed_environment_id' => 'tenant-enrollment-restriction',
tests/Feature/Filament/EnrollmentRestrictionsPreviewOnlyTest.php:63:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/EnrollmentRestrictionsPreviewOnlyTest.php:71:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/EnrollmentRestrictionsPreviewOnlyTest.php:78:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/EnrollmentRestrictionsPreviewOnlyTest.php:159:        'managed_environment_id' => 'tenant-enrollment-limit',
tests/Feature/Filament/EnrollmentRestrictionsPreviewOnlyTest.php:167:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/EnrollmentRestrictionsPreviewOnlyTest.php:175:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/EnrollmentRestrictionsPreviewOnlyTest.php:182:        'managed_environment_id' => $tenant->id,
app/Services/Tenants/TenantOperabilityService.php:590:            'selected_tenant_id' => $context->selectedTenant?->getKey(),
tests/Feature/ReviewPack/ReviewPackPruneTest.php:24:        'managed_environment_id' => $tenant->id,
tests/Feature/ReviewPack/ReviewPackPruneTest.php:46:        'managed_environment_id' => $tenant->id,
tests/Feature/ReviewPack/ReviewPackPruneTest.php:67:        'managed_environment_id' => $tenant->id,
tests/Feature/ReviewPack/ReviewPackPruneTest.php:83:        'managed_environment_id' => $tenant->id,
tests/Feature/ReviewPack/ReviewPackPruneTest.php:100:        'managed_environment_id' => $tenant->id,
tests/Feature/ReviewPack/ReviewPackPruneTest.php:118:        'managed_environment_id' => $tenant->id,
tests/Feature/ReviewPack/ReviewPackPruneTest.php:126:        'managed_environment_id' => $tenant->id,
tests/Feature/ReviewPack/ReviewPackPruneTest.php:143:        'managed_environment_id' => $tenant->id,
tests/Feature/SettingsFoundation/WorkspaceSettingsViewOnlyTest.php:44:        ->get(WorkspaceSettings::getUrl(panel: 'admin'))
tests/Feature/SettingsFoundation/WorkspaceSettingsViewOnlyTest.php:74:        ->assertActionVisible(TestAction::make('reset_baseline_severity_mapping')->schemaComponent('baseline_section'))
tests/Feature/SettingsFoundation/WorkspaceSettingsViewOnlyTest.php:75:        ->assertActionDisabled(TestAction::make('reset_baseline_severity_mapping')->schemaComponent('baseline_section'))
tests/Feature/SettingsFoundation/WorkspaceSettingsViewOnlyTest.php:76:        ->assertActionVisible(TestAction::make('reset_baseline_alert_min_severity')->schemaComponent('baseline_section'))
tests/Feature/SettingsFoundation/WorkspaceSettingsViewOnlyTest.php:77:        ->assertActionDisabled(TestAction::make('reset_baseline_alert_min_severity')->schemaComponent('baseline_section'))
tests/Feature/SettingsFoundation/WorkspaceSettingsViewOnlyTest.php:78:        ->assertActionVisible(TestAction::make('reset_baseline_auto_close_enabled')->schemaComponent('baseline_section'))
tests/Feature/SettingsFoundation/WorkspaceSettingsViewOnlyTest.php:79:        ->assertActionDisabled(TestAction::make('reset_baseline_auto_close_enabled')->schemaComponent('baseline_section'))
tests/Feature/SettingsFoundation/WorkspaceSettingsViewOnlyTest.php:80:        ->assertActionVisible(TestAction::make('reset_findings_sla_days')->schemaComponent('findings_section'))
tests/Feature/SettingsFoundation/WorkspaceSettingsViewOnlyTest.php:81:        ->assertActionDisabled(TestAction::make('reset_findings_sla_days')->schemaComponent('findings_section'))
app/Jobs/ProviderInventorySyncJob.php:65:            ->where('managed_environment_id', $tenant->getKey())
tests/Feature/SupportRequests/SupportRequestExternalHandoffAuditTest.php:74:        ->and($externalAudit->managed_environment_id)->toBe((int) $tenant->getKey())
tests/Feature/Filament/BaselineCaptureResultExplanationSurfaceTest.php:31:        ->get(BaselineSnapshotResource::getUrl(panel: 'admin'))
tests/Feature/Filament/BaselineCaptureResultExplanationSurfaceTest.php:37:        ->get(BaselineSnapshotResource::getUrl('view', ['record' => $snapshot], panel: 'admin'))
tests/Feature/Filament/BaselineCaptureResultExplanationSurfaceTest.php:65:        ->get(BaselineSnapshotResource::getUrl('view', ['record' => $snapshot], panel: 'admin'))
tests/Unit/Support/OperateHub/OperateHubShellResolutionTest.php:36:    $request = Request::create(route('admin.operations.index', [
tests/Unit/Support/OperateHub/OperateHubShellResolutionTest.php:51:        ->and($resolved->state)->toBe('tenant_scoped');
tests/Unit/Support/OperateHub/OperateHubShellResolutionTest.php:68:    $request = Request::create(route('admin.operations.index', [
tests/Unit/Support/OperateHub/OperateHubShellResolutionTest.php:95:    $request = Request::create(route('admin.workspace.environments.show', [
tests/Feature/SettingsFoundation/RetentionScheduleOverrideWinsTest.php:23:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/SettingsFoundation/RetentionScheduleOverrideWinsTest.php:37:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/SettingsFoundation/RetentionScheduleOverrideWinsTest.php:50:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/ReviewPack/ReviewPackWidgetTest.php:32:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/ReviewPack/ReviewPackWidgetTest.php:38:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/ReviewPack/ReviewPackWidgetTest.php:44:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/ReviewPack/ReviewPackWidgetTest.php:49:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/ReviewPack/ReviewPackWidgetTest.php:67:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/ReviewPack/ReviewPackWidgetTest.php:78:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/ReviewPack/ReviewPackWidgetTest.php:122:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/ReviewPack/ReviewPackWidgetTest.php:145:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/ReviewPack/ReviewPackWidgetTest.php:165:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/ReviewPack/ReviewPackWidgetTest.php:185:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/ReviewPack/ReviewPackWidgetTest.php:203:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/ReviewPack/ReviewPackWidgetTest.php:219:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/ReviewPack/ReviewPackWidgetTest.php:250:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/ReviewPack/ReviewPackWidgetTest.php:277:    expect(ReviewPack::query()->where('managed_environment_id', (int) $tenant->getKey())->count())->toBe(1);
tests/Feature/SupportRequests/SupportRequestAuthorizationTest.php:56:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/TenantMakeCurrentTest.php:36:        ->assertRedirect(EnvironmentDashboard::getUrl(panel: 'admin', tenant: $second));
tests/Feature/Filament/TenantMakeCurrentTest.php:40:        ->where('managed_environment_id', $second->getKey())
tests/Feature/ReviewPack/ReviewPackRbacTest.php:46:        ->get(ReviewPackResource::getUrl('index', tenant: $targetTenant, panel: 'admin'))
tests/Feature/ReviewPack/ReviewPackRbacTest.php:57:        'managed_environment_id' => (int) $targetTenant->getKey(),
tests/Feature/ReviewPack/ReviewPackRbacTest.php:61:        ->get(ReviewPackResource::getUrl('view', ['record' => $pack], tenant: $targetTenant, panel: 'admin'))
tests/Feature/ReviewPack/ReviewPackRbacTest.php:75:        'managed_environment_id' => (int) $targetTenant->getKey(),
tests/Feature/ReviewPack/ReviewPackRbacTest.php:92:        ->get(ReviewPackResource::getUrl('index', tenant: $tenant, panel: 'admin'))
tests/Feature/ReviewPack/ReviewPackRbacTest.php:101:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/ReviewPack/ReviewPackRbacTest.php:107:        ->get(ReviewPackResource::getUrl('view', ['record' => $pack], tenant: $tenant, panel: 'admin'))
tests/Feature/ReviewPack/ReviewPackRbacTest.php:119:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/ReviewPack/ReviewPackRbacTest.php:156:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/ReviewPack/ReviewPackRbacTest.php:178:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/ReviewPack/ReviewPackRbacTest.php:205:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/ReviewPack/ReviewPackRbacTest.php:227:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/ReviewPack/ReviewPackRbacTest.php:232:        ->get(route('admin.review-packs.download', ['reviewPack' => $pack->getKey()]));
app/Services/ReviewPackService.php:95:            'managed_environment_id' => (int) $tenant->getKey(),
app/Services/ReviewPackService.php:187:            'managed_environment_id' => (int) $tenant->getKey(),
app/Services/ReviewPackService.php:285:            tenantId: (int) $reviewPack->managed_environment_id,
app/Services/ReviewPackService.php:327:            ->where('managed_environment_id', (int) $tenant->getKey())
app/Services/ReviewPackService.php:336:            ->where('managed_environment_id', (int) $review->managed_environment_id)
app/Services/ReviewPackService.php:369:            'managed_environment_id' => (int) $snapshot->managed_environment_id,
app/Services/ReviewPackService.php:411:            ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/144/CanonicalOperationViewerContextMismatchTest.php:34:            'managed_environment_id' => (int) $runTenant->getKey(),
tests/Feature/144/CanonicalOperationViewerContextMismatchTest.php:61:            'managed_environment_id' => null,
tests/Feature/144/CanonicalOperationViewerContextMismatchTest.php:87:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/144/CanonicalOperationViewerContextMismatchTest.php:125:            'managed_environment_id' => (int) $archivedTenant->getKey(),
tests/Feature/144/CanonicalOperationViewerContextMismatchTest.php:155:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Unit/Support/Ui/DerivedState/RequestScopedDerivedStateStoreTest.php:21:        'managed_environment_id' => 8,
tests/Feature/Filament/AuditLogPageTest.php:21:    return Livewire::withHeaders(['referer' => route('admin.monitoring.audit-log')])
tests/Feature/Filament/AuditLogPageTest.php:34:        'managed_environment_id' => $tenant?->getKey(),
tests/Feature/Filament/AuditLogPageTest.php:52:        ->get(route('admin.monitoring.audit-log'))
tests/Feature/Filament/AuditLogPageTest.php:67:        ->get(route('admin.monitoring.audit-log', ['event' => (int) $audit->getKey()]))
tests/Feature/Filament/AuditLogPageTest.php:87:        ->get(route('admin.monitoring.audit-log'))
tests/Feature/Filament/AuditLogPageTest.php:99:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/AuditLogPageTest.php:118:        ->get(route('admin.monitoring.audit-log'))
tests/Feature/Filament/AuditLogPageTest.php:139:        ->get(route('admin.monitoring.audit-log'))
tests/Feature/Filament/AuditLogPageTest.php:206:        ->assertSet('tableFilters.managed_environment_id.value', null)
tests/Feature/Filament/AuditLogPageTest.php:245:    Livewire::withHeaders(['referer' => route('admin.monitoring.audit-log')])
tests/Feature/Filament/AuditLogPageTest.php:248:        ->assertSet('tableFilters.managed_environment_id.value', null)
tests/Feature/Filament/AuditLogPageTest.php:287:    $component = Livewire::withHeaders(['referer' => route('admin.monitoring.audit-log')])
tests/Feature/Filament/AuditLogPageTest.php:290:        ->assertSet('tableFilters.managed_environment_id.value', null)
tests/Feature/Filament/AuditLogPageTest.php:293:    expect(data_get(session()->get($component->instance()->getTableFiltersSessionKey()), 'managed_environment_id.value'))
tests/Feature/Filament/AuditLogPageTest.php:300:    Livewire::withHeaders(['referer' => route('admin.monitoring.audit-log')])
tests/Feature/Filament/AuditLogPageTest.php:303:        ->assertSet('tableFilters.managed_environment_id.value', null)
tests/Feature/ReviewPack/ReviewPackDownloadTest.php:35:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/ReviewPack/ReviewPackDownloadTest.php:151:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/ReviewPack/ReviewPackDownloadTest.php:207:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/ReviewPack/ReviewPackDownloadTest.php:231:        route('admin.review-packs.download', ['reviewPack' => $pack->getKey()]),
tests/Feature/144/CanonicalOperationViewerDeepLinkTrustTest.php:34:            'managed_environment_id' => (int) $runTenant->getKey(),
tests/Feature/144/CanonicalOperationViewerDeepLinkTrustTest.php:64:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/144/CanonicalOperationViewerDeepLinkTrustTest.php:91:            'managed_environment_id' => (int) $runTenant->getKey(),
tests/Feature/144/CanonicalOperationViewerDeepLinkTrustTest.php:113:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/ReviewPack/ReviewPackValidRiskAcceptanceTest.php:34:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/ReviewPack/ReviewPackValidRiskAcceptanceTest.php:39:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/ReviewPack/ReviewPackValidRiskAcceptanceTest.php:95:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/ReviewPack/ReviewPackValidRiskAcceptanceTest.php:106:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/BulkDeleteMixedStatusTest.php:17:        'managed_environment_id' => $tenant->id,
tests/Feature/BulkDeleteMixedStatusTest.php:25:            'managed_environment_id' => $tenant->id,
tests/Feature/BulkDeleteMixedStatusTest.php:34:        'managed_environment_id' => $tenant->id,
tests/Feature/BulkDeleteMixedStatusTest.php:52:        ->where('managed_environment_id', $tenant->id)
app/Services/OperationRunService.php:147:            ->where('managed_environment_id', $tenant->id)
app/Services/OperationRunService.php:162:                'managed_environment_id' => $tenant->id,
app/Services/OperationRunService.php:184:                ->where('managed_environment_id', $tenant->id)
app/Services/OperationRunService.php:219:            ->where('managed_environment_id', $tenant->id)
app/Services/OperationRunService.php:234:                'managed_environment_id' => $tenant->id,
app/Services/OperationRunService.php:256:                ->where('managed_environment_id', $tenant->id)
app/Services/OperationRunService.php:313:            ->where('managed_environment_id', (int) $tenant->getKey())
app/Services/OperationRunService.php:328:            ->where('managed_environment_id', (int) $tenant->getKey())
app/Services/OperationRunService.php:358:            ->where('managed_environment_id', $tenant->id)
app/Services/OperationRunService.php:371:                'managed_environment_id' => $tenant->id,
app/Services/OperationRunService.php:390:                ->where('managed_environment_id', $tenant->id)
app/Services/OperationRunService.php:410:     * @param  array{entra_tenant_id?: mixed, directory_context_id?: mixed}  $targetScope
app/Services/OperationRunService.php:426:        $entraTenantId = $targetScope['entra_tenant_id'] ?? null;
app/Services/OperationRunService.php:429:            throw new InvalidArgumentException('Bulk enqueue target_scope entra_tenant_id must match the current tenant.');
app/Services/OperationRunService.php:478:            ->whereNull('managed_environment_id')
app/Services/OperationRunService.php:491:                'managed_environment_id' => null,
app/Services/OperationRunService.php:507:                ->whereNull('managed_environment_id')
app/Services/OperationRunService.php:1075:        if (! is_numeric($run->workspace_id) || ! is_numeric($run->managed_environment_id)) {
app/Services/OperationRunService.php:1082:            tenantId: (int) $run->managed_environment_id,
tests/Feature/Filament/WorkspaceOverviewDrilldownContinuityTest.php:40:        'managed_environment_id' => (int) $tenantDashboard->getKey(),
tests/Feature/Filament/WorkspaceOverviewDrilldownContinuityTest.php:94:        'managed_environment_id' => (int) $tenantOperations->getKey(),
tests/Feature/Filament/WorkspaceOverviewDrilldownContinuityTest.php:115:        'managed_environment_id' => (int) $tenantAlerts->getKey(),
tests/Feature/Filament/WorkspaceOverviewDrilldownContinuityTest.php:132:        ->and($items->get('tenant_operations_terminal_follow_up')['destination']['url'])->toContain('managed_environment_id='.(string) $tenantOperations->getKey())
tests/Feature/Filament/WorkspaceOverviewDrilldownContinuityTest.php:141:    $evidenceUrl = EvidenceSnapshotResource::getUrl('index', panel: 'admin', tenant: $tenant);
tests/Feature/Filament/WorkspaceOverviewDrilldownContinuityTest.php:147:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/WorkspaceOverviewDrilldownContinuityTest.php:172:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/WorkspaceOverviewDrilldownContinuityTest.php:299:        ->assertSet('tableFilters.backup_posture.values', [
tests/Feature/Filament/WorkspaceOverviewDrilldownContinuityTest.php:304:        ->assertSet('tableFilters.triage_sort.value', TenantRecoveryTriagePresentation::TRIAGE_SORT_WORST_FIRST);
tests/Feature/Filament/WorkspaceOverviewDrilldownContinuityTest.php:318:        ->assertSet('tableFilters.recovery_evidence.values', [
tests/Feature/Filament/WorkspaceOverviewDrilldownContinuityTest.php:322:        ->assertSet('tableFilters.triage_sort.value', TenantRecoveryTriagePresentation::TRIAGE_SORT_WORST_FIRST);
tests/Feature/Restore/OperationalControlRestoreExecutionGateTest.php:40:        'managed_environment_id' => fake()->uuid(),
tests/Feature/Restore/OperationalControlRestoreExecutionGateTest.php:52:        'managed_environment_id' => $tenant->id,
tests/Feature/Restore/OperationalControlRestoreExecutionGateTest.php:60:        'managed_environment_id' => $tenant->id,
tests/Feature/Restore/OperationalControlRestoreExecutionGateTest.php:67:        'managed_environment_id' => $tenant->id,
tests/Feature/Restore/OperationalControlRestoreExecutionGateTest.php:133:        ->and($audit?->managed_environment_id)->toBe((int) $tenant->getKey())
tests/Feature/Restore/OperationalControlRestoreExecutionGateTest.php:152:            'target_scope' => ['entra_tenant_id' => $tenant->graphTenantId()],
tests/Feature/Restore/OperationalControlRestoreExecutionGateTest.php:157:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Restore/OperationalControlRestoreExecutionGateTest.php:243:        ->where('managed_environment_id', (int) $allowedTenant->getKey())
tests/Feature/Restore/OperationalControlRestoreExecutionGateTest.php:248:        ->where('managed_environment_id', (int) $allowedTenant->getKey())
tests/Feature/ReviewPack/ReviewPackRedactionIntegrityTest.php:27:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/ReviewPack/ReviewPackRedactionIntegrityTest.php:37:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/ReviewPack/ReviewPackRedactionIntegrityTest.php:42:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/ReviewPack/ReviewPackRedactionIntegrityTest.php:56:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/ReviewPack/ReviewPackRedactionIntegrityTest.php:67:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/ReviewPack/ReviewPackRedactionIntegrityTest.php:90:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Restore/RestoreRunProviderStartTest.php:30:        'managed_environment_id' => fake()->uuid(),
tests/Feature/Restore/RestoreRunProviderStartTest.php:53:        'managed_environment_id' => $tenant->id,
tests/Feature/Restore/RestoreRunProviderStartTest.php:61:        'managed_environment_id' => $tenant->id,
tests/Feature/Restore/RestoreRunProviderStartTest.php:68:        'managed_environment_id' => $tenant->id,
tests/Feature/Restore/RestoreRunProviderStartTest.php:113:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/Restore/RestoreRunProviderStartTest.php:137:        'managed_environment_id' => $tenant->id,
tests/Feature/Restore/RestoreRunProviderStartTest.php:148:    expect(RestoreRun::query()->where('managed_environment_id', (int) $tenant->getKey())->count())->toBe(1);
tests/Feature/Restore/RestoreRunProviderStartTest.php:151:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/Filament/BaselineCompareSummaryConsistencyTest.php:37:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/BaselineCompareSummaryConsistencyTest.php:61:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/BaselineCompareSummaryConsistencyTest.php:66:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/BaselineCompareSummaryConsistencyTest.php:110:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/BaselineCompareSummaryConsistencyTest.php:133:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/BaselineCompareSummaryConsistencyTest.php:159:        'managed_environment_id' => (int) $tenant->getKey(),
app/Services/Graph/MicrosoftGraphClient.php:44:        $this->tenantId = config('graph.managed_environment_id', '');
tests/Feature/PolicySyncStartSurfaceTest.php:47:        ->where('managed_environment_id', $tenant->getKey())
tests/Feature/PolicySyncStartSurfaceTest.php:87:        ->where('managed_environment_id', $tenant->getKey())
tests/Feature/PolicySyncStartSurfaceTest.php:103:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/PolicySyncStartSurfaceTest.php:112:        ->where('managed_environment_id', $tenant->getKey())
tests/Feature/PolicySyncStartSurfaceTest.php:144:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/PolicySyncStartSurfaceTest.php:160:        ->where('managed_environment_id', $tenant->getKey())
tests/Feature/ReviewPack/ReviewPackEntitlementEnforcementTest.php:35:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/ReviewPack/ReviewPackEntitlementEnforcementTest.php:41:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/ReviewPack/ReviewPackEntitlementEnforcementTest.php:47:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/ReviewPack/ReviewPackEntitlementEnforcementTest.php:52:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/ReviewPack/ReviewPackEntitlementEnforcementTest.php:66:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/ReviewPack/ReviewPackEntitlementEnforcementTest.php:77:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/ReviewPack/ReviewPackEntitlementEnforcementTest.php:155:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/ReviewPack/ReviewPackEntitlementEnforcementTest.php:164:            ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/ReviewPack/ReviewPackEntitlementEnforcementTest.php:175:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/ReviewPack/ReviewPackEntitlementEnforcementTest.php:184:            ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/ReviewPack/ReviewPackEntitlementEnforcementTest.php:194:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/ReviewPack/ReviewPackEntitlementEnforcementTest.php:210:            ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/ReviewPack/ReviewPackEntitlementEnforcementTest.php:218:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/ReviewPack/ReviewPackEntitlementEnforcementTest.php:226:        ->get(ReviewPackResource::getUrl('view', ['record' => $pack], tenant: $tenant, panel: 'admin'))
tests/Feature/ReviewPack/ReviewPackEntitlementEnforcementTest.php:273:            ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/ReviewPack/ReviewPackEntitlementEnforcementTest.php:315:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/ReviewPack/ReviewPackEntitlementEnforcementTest.php:324:            ->where('managed_environment_id', (int) $tenant->getKey())
tests/Unit/BulkPolicyVersionPruneJobTest.php:18:    $policyA = Policy::factory()->create(['managed_environment_id' => $tenant->id]);
tests/Unit/BulkPolicyVersionPruneJobTest.php:20:        'managed_environment_id' => $tenant->id,
tests/Unit/BulkPolicyVersionPruneJobTest.php:26:        'managed_environment_id' => $tenant->id,
tests/Unit/BulkPolicyVersionPruneJobTest.php:32:    $policyB = Policy::factory()->create(['managed_environment_id' => $tenant->id]);
tests/Unit/BulkPolicyVersionPruneJobTest.php:34:        'managed_environment_id' => $tenant->id,
tests/Unit/BulkPolicyVersionPruneJobTest.php:40:        'managed_environment_id' => $tenant->id,
tests/Unit/BulkPolicyVersionPruneJobTest.php:47:        'managed_environment_id' => $tenant->id,
tests/Unit/BulkPolicyVersionPruneJobTest.php:105:        'managed_environment_id' => $tenant->id,
tests/Unit/BulkPolicyVersionPruneJobTest.php:142:    $policy = Policy::factory()->create(['managed_environment_id' => $tenant->id]);
tests/Unit/BulkPolicyVersionPruneJobTest.php:144:        'managed_environment_id' => $tenant->id,
tests/Unit/BulkPolicyVersionPruneJobTest.php:152:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/PanelNavigationSegregationTest.php:57:    '/admin/governance/decisions?managed_environment_id=environment-alpha',
tests/Feature/Filament/PanelNavigationSegregationTest.php:58:    '/admin/governance/inbox?managed_environment_id=environment-alpha',
tests/Feature/Filament/PanelNavigationSegregationTest.php:59:    '/admin/evidence/overview?managed_environment_id=environment-alpha',
tests/Feature/Filament/PanelNavigationSegregationTest.php:61:    '/admin/provider-connections?managed_environment_id=environment-alpha',
tests/Feature/Filament/PanelNavigationSegregationTest.php:98:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/PanelNavigationSegregationTest.php:112:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/PanelNavigationSegregationTest.php:167:        fn ($workspace): string => route('admin.workspace.home', ['workspace' => $workspace]),
tests/Feature/Filament/PanelNavigationSegregationTest.php:171:        fn ($workspace): string => route('admin.operations.index', ['workspace' => $workspace]),
tests/Feature/Filament/PanelNavigationSegregationTest.php:175:        fn (): string => CustomerReviewWorkspace::getUrl(panel: 'admin'),
tests/Feature/Filament/PanelNavigationSegregationTest.php:179:        fn (): string => GovernanceInbox::getUrl(panel: 'admin'),
tests/Feature/Filament/PanelNavigationSegregationTest.php:183:        fn (): string => DecisionRegister::getUrl(panel: 'admin'),
tests/Feature/Filament/PanelNavigationSegregationTest.php:216:        fn ($workspace, ManagedEnvironment $tenant): string => route('admin.operations.index', [
tests/Feature/Filament/PanelNavigationSegregationTest.php:223:        fn ($workspace, ManagedEnvironment $tenant): string => CustomerReviewWorkspace::getUrl(panel: 'admin', parameters: [
tests/Feature/Filament/PanelNavigationSegregationTest.php:229:        fn ($workspace, ManagedEnvironment $tenant): string => DecisionRegister::getUrl(panel: 'admin', parameters: [
tests/Feature/Filament/PanelNavigationSegregationTest.php:230:            'managed_environment_id' => (string) $tenant->getKey(),
tests/Feature/Filament/PanelNavigationSegregationTest.php:314:        ->get(route('admin.workspace.home', ['workspace' => $tenant->workspace_id]))
tests/Feature/Filament/PanelNavigationSegregationTest.php:356:    $response->assertSee((string) parse_url(EntraGroupResource::getUrl(panel: 'admin', tenant: $tenant), PHP_URL_PATH), false);
tests/Feature/Filament/PanelNavigationSegregationTest.php:373:        ->get(InventoryItemResource::getUrl('index', panel: 'admin', tenant: $tenant))
tests/Feature/SyncPoliciesJobGraphDisabledTest.php:19:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/Authorization/ReasonTranslationScopeSafetyTest.php:16:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Authorization/ReasonTranslationScopeSafetyTest.php:61:        'managed_environment_id' => (int) $hiddenTenant->getKey(),
tests/Unit/BulkBackupSetRestoreJobTest.php:24:        'managed_environment_id' => $tenant->id,
tests/Unit/BulkBackupSetRestoreJobTest.php:31:        'managed_environment_id' => $tenant->id,
tests/Unit/BulkBackupSetRestoreJobTest.php:38:        'managed_environment_id' => $tenant->getKey(),
tests/Unit/BulkBackupSetRestoreJobTest.php:44:        'context' => ['target_scope' => ['entra_tenant_id' => 'entra-test-tenant']],
tests/Unit/BulkBackupSetRestoreJobTest.php:54:        context: ['target_scope' => ['entra_tenant_id' => 'entra-test-tenant']],
tests/Unit/BulkBackupSetRestoreJobTest.php:87:        'managed_environment_id' => $tenant->id,
tests/Unit/BulkBackupSetRestoreJobTest.php:94:        'managed_environment_id' => $tenant->id,
tests/Unit/BulkBackupSetRestoreJobTest.php:111:        'managed_environment_id' => $tenant->getKey(),
tests/Unit/BulkBackupSetRestoreJobTest.php:117:        'context' => ['target_scope' => ['entra_tenant_id' => 'entra-test-tenant']],
tests/Unit/BulkBackupSetRestoreJobTest.php:148:        'managed_environment_id' => $tenant->id,
tests/Unit/BulkBackupSetRestoreJobTest.php:155:        'managed_environment_id' => $tenant->getKey(),
tests/Unit/BulkBackupSetRestoreJobTest.php:161:        'context' => ['target_scope' => ['entra_tenant_id' => 'entra-test-tenant']],
tests/Feature/Filament/BackupSetPolicyPickerTableTest.php:31:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/BackupSetPolicyPickerTableTest.php:36:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/BackupSetPolicyPickerTableTest.php:64:        ->where('managed_environment_id', $tenant->id)
tests/Feature/Filament/BackupSetPolicyPickerTableTest.php:94:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/BackupSetPolicyPickerTableTest.php:99:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/BackupSetPolicyPickerTableTest.php:110:        ->set('tableFilters.visibility.value', 'provider_missing')
tests/Feature/Filament/BackupSetPolicyPickerTableTest.php:119:        ->where('managed_environment_id', $tenant->id)
tests/Feature/Filament/BackupSetPolicyPickerTableTest.php:134:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/BackupSetPolicyPickerTableTest.php:139:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/BackupSetPolicyPickerTableTest.php:164:        ->where('managed_environment_id', $tenant->id)
tests/Feature/Filament/BackupSetPolicyPickerTableTest.php:188:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/BackupSetPolicyPickerTableTest.php:193:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/BackupSetPolicyPickerTableTest.php:215:        ->where('managed_environment_id', $tenant->id)
tests/Feature/Filament/BackupSetPolicyPickerTableTest.php:238:        'managed_environment_id' => $tenantB->id,
tests/Feature/Filament/BackupSetPolicyPickerTableTest.php:243:        'managed_environment_id' => $tenantB->id,
tests/Feature/Filament/BackupSetPolicyPickerTableTest.php:265:        ->where('managed_environment_id', $tenantA->id)
tests/Feature/Filament/BackupSetPolicyPickerTableTest.php:270:        ->where('managed_environment_id', $tenantB->id)
tests/Feature/Filament/BackupSetPolicyPickerTableTest.php:282:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/BackupSetPolicyPickerTableTest.php:287:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/BackupSetPolicyPickerTableTest.php:294:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/BackupSetPolicyPickerTableTest.php:301:        'managed_environment_id' => $tenant->id,
tests/Unit/Support/WorkspaceIsolation/TenantOwnedQueryScopeTest.php:21:    $ownedRecord = Policy::factory()->create(['managed_environment_id' => $tenant->getKey()]);
tests/Unit/Support/WorkspaceIsolation/TenantOwnedQueryScopeTest.php:22:    Policy::factory()->create(['managed_environment_id' => $foreignTenant->getKey()]);
tests/Unit/Support/WorkspaceIsolation/TenantOwnedQueryScopeTest.php:34:        Policy::factory()->create(['managed_environment_id' => $tenant->getKey()]);
tests/Unit/Support/WorkspaceIsolation/TenantOwnedQueryScopeTest.php:48:    $ownedRecord = Policy::factory()->create(['managed_environment_id' => $tenant->getKey()]);
tests/Unit/Support/WorkspaceIsolation/TenantOwnedQueryScopeTest.php:49:    $foreignRecord = Policy::factory()->create(['managed_environment_id' => $foreignTenant->getKey()]);
tests/Unit/Support/WorkspaceIsolation/TenantOwnedQueryScopeTest.php:65:    $ownedRecord = Policy::factory()->create(['managed_environment_id' => $tenant->getKey()]);
tests/Unit/Support/WorkspaceIsolation/TenantOwnedQueryScopeTest.php:66:    Policy::factory()->create(['managed_environment_id' => $foreignTenant->getKey()]);
app/Services/Graph/GroupResolver.php:85:                'managed_environment_id' => $tenantId,
app/Services/Graph/GroupResolver.php:94:                'managed_environment_id' => $tenantId,
tests/Feature/ReviewPack/ReviewPackGenerationTest.php:45:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/ReviewPack/ReviewPackGenerationTest.php:49:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/ReviewPack/ReviewPackGenerationTest.php:53:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/ReviewPack/ReviewPackGenerationTest.php:57:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/ReviewPack/ReviewPackGenerationTest.php:61:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/ReviewPack/ReviewPackGenerationTest.php:65:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/ReviewPack/ReviewPackGenerationTest.php:90:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/ReviewPack/ReviewPackGenerationTest.php:103:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/ReviewPack/ReviewPackGenerationTest.php:118:        ->create(['managed_environment_id' => (int) $tenant->getKey()]);
tests/Feature/ReviewPack/ReviewPackGenerationTest.php:121:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/ReviewPack/ReviewPackGenerationTest.php:138:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/ReviewPack/ReviewPackGenerationTest.php:149:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/ReviewPack/ReviewPackGenerationTest.php:408:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/ReviewPack/ReviewPackGenerationTest.php:417:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/ReviewPack/ReviewPackGenerationTest.php:661:    expect(ReviewPack::query()->where('managed_environment_id', (int) $tenant->getKey())->count())->toBe(1);
tests/Feature/ReviewPack/ReviewPackGenerationTest.php:680:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/ReviewPack/ReviewPackGenerationTest.php:690:    expect(ReviewPack::query()->where('managed_environment_id', (int) $tenant->getKey())->count())->toBe(2);
tests/Feature/ReviewPack/ReviewPackGenerationTest.php:701:    StoredReport::query()->where('managed_environment_id', (int) $tenant->getKey())->delete();
tests/Feature/ReviewPack/ReviewPackGenerationTest.php:702:    Finding::query()->where('managed_environment_id', (int) $tenant->getKey())->delete();
tests/Feature/ReviewPack/ReviewPackGenerationTest.php:703:    OperationRun::query()->where('managed_environment_id', (int) $tenant->getKey())->delete();
tests/Feature/Authorization/FindingsIntakeAuthorizationTest.php:34:        ->get(FindingsIntakeQueue::getUrl(panel: 'admin'))
tests/Feature/Authorization/FindingsIntakeAuthorizationTest.php:50:        ->get(FindingsIntakeQueue::getUrl(panel: 'admin'))
tests/Feature/Authorization/FindingsIntakeAuthorizationTest.php:79:        ->get(FindingsIntakeQueue::getUrl(panel: 'admin'))
tests/Feature/Authorization/FindingsIntakeAuthorizationTest.php:115:        ->get(FindingResource::getUrl('view', ['record' => $hiddenFinding], panel: 'admin', tenant: $hiddenTenant))
tests/Feature/Authorization/FindingsIntakeAuthorizationTest.php:144:        ->get(FindingResource::getUrl('view', ['record' => $finding], panel: 'admin', tenant: $tenant))
tests/Feature/Filament/BackupItemsBulkRemoveTest.php:27:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/BackupItemsBulkRemoveTest.php:33:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/BackupItemsBulkRemoveTest.php:39:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/BackupItemsBulkRemoveTest.php:45:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/BackupItemsBulkRemoveTest.php:54:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/BackupItemsBulkRemoveTest.php:76:        ->where('managed_environment_id', $tenant->getKey())
tests/Feature/ManagedEnvironments/AuthorizationSemanticsTest.php:23:        ->get(ManagedEnvironmentResource::getUrl('edit', ['record' => $tenant]))
tests/Feature/ManagedEnvironments/AuthorizationSemanticsTest.php:56:        ->get(EvidenceSnapshotResource::getUrl('index', tenant: $tenant))
tests/Feature/ManagedEnvironments/AuthorizationSemanticsTest.php:63:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/ManagedEnvironments/AuthorizationSemanticsTest.php:74:        ->get(EvidenceSnapshotResource::getUrl('view', ['record' => $snapshot], tenant: $tenant))
tests/Feature/ManagedEnvironments/AuthorizationSemanticsTest.php:87:        'managed_environment_id' => (int) $tenantA->getKey(),
tests/Feature/ManagedEnvironments/AuthorizationSemanticsTest.php:96:        'managed_environment_id' => (int) $tenantDenied->getKey(),
tests/Feature/ManagedEnvironments/AuthorizationSemanticsTest.php:106:        ->get(route('admin.evidence.overview'))
tests/Feature/ManagedEnvironments/AuthorizationSemanticsTest.php:108:        ->assertSee(EvidenceSnapshotResource::getUrl('view', ['record' => $allowedSnapshot], tenant: $tenantA, panel: 'admin'))
tests/Feature/ManagedEnvironments/AuthorizationSemanticsTest.php:109:        ->assertDontSee(EvidenceSnapshotResource::getUrl('view', ['record' => $deniedSnapshot], tenant: $tenantDenied, panel: 'admin'));
app/Services/Graph/AssignmentFetcher.php:32:                'managed_environment_id' => $tenantId,
app/Services/Graph/AssignmentFetcher.php:45:            'managed_environment_id' => $tenantId,
app/Services/Graph/AssignmentFetcher.php:87:                        'managed_environment_id' => $tenantId,
app/Services/Graph/AssignmentFetcher.php:107:                'managed_environment_id' => $tenantId,
app/Services/Graph/AssignmentFetcher.php:118:            'managed_environment_id' => $tenantId,
app/Services/Graph/AssignmentFetcher.php:125:                'managed_environment_id' => $tenantId,
app/Services/Graph/AssignmentFetcher.php:132:                    'managed_environment_id' => $tenantId,
app/Services/Graph/AssignmentFetcher.php:169:                'managed_environment_id' => $tenantId,
app/Services/Graph/AssignmentFetcher.php:180:            'managed_environment_id' => $tenantId,
app/Services/Graph/AssignmentFetcher.php:189:                'managed_environment_id' => $tenantId,
tests/Unit/RunIdempotencyTest.php:15:    $keyA1 = $fingerprints->build('policy.delete', ['entra_tenant_id' => 'tenant-a'], $selectionA);
tests/Unit/RunIdempotencyTest.php:16:    $keyA2 = $fingerprints->build('policy.delete', ['entra_tenant_id' => 'tenant-a'], $selectionA);
tests/Unit/RunIdempotencyTest.php:17:    $keyB = $fingerprints->build('policy.delete', ['entra_tenant_id' => 'tenant-a'], $selectionB);
tests/Feature/Tenants/TenantProviderBackedActionStartTest.php:25:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/Tenants/TenantProviderBackedActionStartTest.php:36:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/Tenants/TenantProviderBackedActionStartTest.php:51:        'scope_identifier' => $connection->entra_tenant_id,
tests/Feature/Tenants/TenantProviderBackedActionStartTest.php:53:    ])->not->toHaveKey('entra_tenant_id');
tests/Feature/Tenants/TenantProviderBackedActionStartTest.php:56:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/Tenants/TenantProviderBackedActionStartTest.php:76:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/Authorization/OperatorExplanationSurfaceAuthorizationTest.php:28:        ->get(BaselineCompareLanding::getUrl(tenant: $tenant, panel: 'admin'))
tests/Feature/Authorization/OperatorExplanationSurfaceAuthorizationTest.php:38:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Authorization/OperatorExplanationSurfaceAuthorizationTest.php:45:        ->get(route('admin.operations.view', [
tests/Feature/Authorization/OperatorExplanationSurfaceAuthorizationTest.php:78:        ->get(BaselineSnapshotResource::getUrl('view', ['record' => $snapshot], panel: 'admin'))
tests/Feature/Authorization/OperatorExplanationSurfaceAuthorizationTest.php:106:        ->get(ReviewRegister::getUrl(panel: 'admin'))
tests/Feature/Authorization/OperatorExplanationSurfaceAuthorizationTest.php:115:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Authorization/OperatorExplanationSurfaceAuthorizationTest.php:147:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Authorization/OperatorExplanationSurfaceAuthorizationTest.php:196:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Authorization/OperatorExplanationSurfaceAuthorizationTest.php:206:        ->get(route('admin.operations.view', [
tests/Feature/Filament/BaselineProfileListFiltersTest.php:59:        ->set('tableFilters.status.value', null)
tests/Feature/Filament/BaselineProfileListFiltersTest.php:84:        'managed_environment_id' => (int) $firstAssignedTenant->getKey(),
tests/Feature/Filament/BaselineProfileListFiltersTest.php:90:        'managed_environment_id' => (int) $secondAssignedTenant->getKey(),
app/Services/Graph/ScopeTagResolver.php:59:                        'managed_environment_id' => $tenant->id,
app/Services/Graph/ScopeTagResolver.php:78:                        'managed_environment_id' => $tenant?->id,
app/Services/Graph/ScopeTagResolver.php:90:                    'managed_environment_id' => $tenant?->id,
tests/Feature/Tenants/TenantProviderConnectionsCtaTest.php:14:        ->get(ManagedEnvironmentResource::getUrl('view', ['record' => $tenant], tenant: $tenant))
tests/Feature/Tenants/TenantProviderConnectionsCtaTest.php:30:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Tenants/TenantProviderConnectionsCtaTest.php:37:        ->get(ManagedEnvironmentResource::getUrl('view', ['record' => $tenant], tenant: $tenant))
tests/Feature/Tenants/TenantProviderConnectionsCtaTest.php:53:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Tenants/TenantProviderConnectionsCtaTest.php:63:        ->get(ManagedEnvironmentResource::getUrl('view', ['record' => $tenant], tenant: $tenant))
tests/Unit/DirectoryGroups/EntraGroupLabelResolverTest.php:24:        'managed_environment_id' => $tenantA->getKey(),
tests/Unit/DirectoryGroups/EntraGroupLabelResolverTest.php:30:        'managed_environment_id' => $tenantB->getKey(),
app/Support/Baselines/Compare/IntuneCompareStrategy.php:634:            ->where('managed_environment_id', (int) $tenant->getKey())
app/Support/Baselines/Compare/IntuneCompareStrategy.php:692:            ->where('managed_environment_id', (int) $tenant->getKey())
app/Support/Baselines/Compare/IntuneCompareStrategy.php:695:            ->where('managed_environment_id', (int) $tenant->getKey())
app/Support/Baselines/Compare/IntuneCompareStrategy.php:895:            ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/Authorization/MyWorkInboxAuthorizationTest.php:39:        ->get(MyFindingsInbox::getUrl(panel: 'admin'))
tests/Feature/Authorization/MyWorkInboxAuthorizationTest.php:55:        ->get(MyFindingsInbox::getUrl(panel: 'admin'))
tests/Feature/Authorization/MyWorkInboxAuthorizationTest.php:129:        ->get(FindingResource::getUrl('view', ['record' => $hiddenFinding], panel: 'admin', tenant: $hiddenTenant))
tests/Feature/Authorization/MyWorkInboxAuthorizationTest.php:169:        ->get(FindingResource::getUrl('view', ['record' => $finding], panel: 'admin', tenant: $tenant))
tests/Feature/Filament/ODataTypeMismatchTest.php:52:        'managed_environment_id' => 'local-tenant',
tests/Feature/Filament/ODataTypeMismatchTest.php:63:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/ODataTypeMismatchTest.php:76:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/ODataTypeMismatchTest.php:87:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/ODataTypeMismatchTest.php:94:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/ODataTypeMismatchTest.php:104:        ->get(PolicyResource::getUrl('view', ['record' => $policy], tenant: $tenant));
tests/Feature/Workspaces/WorkspaceRedirectResolverTest.php:100:    expect($url)->toBe(ChooseWorkspace::getUrl());
app/Support/Baselines/Compare/CompareOrchestrationContext.php:51:     *   managed_environment_id: int,
app/Support/Baselines/Compare/CompareOrchestrationContext.php:72:            'managed_environment_id' => $this->tenantId,
tests/Feature/Filament/TenantOwnedResourceScopeParityTest.php:70:                'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/TenantOwnedResourceScopeParityTest.php:103:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/TenantOwnedResourceScopeParityTest.php:175:                'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/TenantOwnedResourceScopeParityTest.php:232:        ->get($resourceClass::getUrl($page, ['record' => $allowed], panel: 'admin', tenant: $tenantA))
tests/Feature/Filament/TenantOwnedResourceScopeParityTest.php:236:        ->get($resourceClass::getUrl($page, ['record' => $blocked], panel: 'admin', tenant: $tenantA))
tests/Feature/Filament/TenantOwnedResourceScopeParityTest.php:247:        'managed_environment_id' => (int) $tenantA->getKey(),
tests/Feature/Filament/TenantOwnedResourceScopeParityTest.php:252:        'managed_environment_id' => (int) $tenantB->getKey(),
tests/Feature/Filament/TenantOwnedResourceScopeParityTest.php:257:    $allowedUrl = InventoryItemResource::getUrl('view', ['record' => $allowed], panel: 'admin', tenant: $tenantA).'?tenant='.(string) $tenantA->external_id;
tests/Feature/Filament/TenantOwnedResourceScopeParityTest.php:258:    $blockedUrl = InventoryItemResource::getUrl('view', ['record' => $blocked], panel: 'admin', tenant: $tenantA).'?tenant='.(string) $tenantA->external_id;
tests/Unit/BulkBackupSetForceDeleteJobTest.php:20:        'managed_environment_id' => $tenant->id,
tests/Unit/BulkBackupSetForceDeleteJobTest.php:27:        'managed_environment_id' => $tenant->id,
tests/Unit/BulkBackupSetForceDeleteJobTest.php:40:        'managed_environment_id' => $tenant->getKey(),
tests/Unit/BulkBackupSetForceDeleteJobTest.php:46:        'context' => ['target_scope' => ['entra_tenant_id' => 'entra-test-tenant']],
tests/Unit/BulkBackupSetForceDeleteJobTest.php:75:        'managed_environment_id' => $tenant->id,
tests/Unit/BulkBackupSetForceDeleteJobTest.php:84:        'managed_environment_id' => $tenant->id,
tests/Unit/BulkBackupSetForceDeleteJobTest.php:92:        'managed_environment_id' => $tenant->getKey(),
tests/Unit/BulkBackupSetForceDeleteJobTest.php:98:        'context' => ['target_scope' => ['entra_tenant_id' => 'entra-test-tenant']],
tests/Feature/Workspaces/WorkspaceNavigationHubTest.php:38:        ->get(route('admin.operations.index', ['workspace' => $workspace]))
tests/Feature/Workspaces/WorkspaceNavigationHubTest.php:42:        ->assertSee(ChooseWorkspace::getUrl(panel: 'admin').'?choose=1', false);
tests/Feature/Workspaces/WorkspaceNavigationHubTest.php:57:    expect($manageWorkspaces->getUrl())->toBe(route('filament.admin.resources.workspaces.index'));
tests/Feature/Workspaces/WorkspaceNavigationHubTest.php:58:    expect(OperationRunLinks::index())->toBe(route('admin.operations.index', ['workspace' => $workspace]));
tests/Feature/Filament/InventoryCoverageTableTest.php:39:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/InventoryCoverageTableTest.php:47:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/InventoryCoverageTableTest.php:55:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/InventoryCoverageTableTest.php:198:    $this->get(InventoryCoverage::getUrl(tenant: $tenant))
tests/Feature/PolicyCaptureSnapshotQueuedTest.php:40:        ->where('managed_environment_id', $tenant->id)
tests/Unit/Audit/AuditRecorderTest.php:19:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Unit/Audit/AuditRecorderTest.php:45:        ->and((int) $audit->managed_environment_id)->toBe((int) $tenant->getKey())
tests/Feature/RestoreRunWizardExecuteTest.php:27:        'managed_environment_id' => 'tenant-1',
tests/Feature/RestoreRunWizardExecuteTest.php:38:        'managed_environment_id' => $tenant->id,
tests/Feature/RestoreRunWizardExecuteTest.php:46:        'managed_environment_id' => $tenant->id,
tests/Feature/RestoreRunWizardExecuteTest.php:53:        'managed_environment_id' => $tenant->id,
tests/Feature/RestoreRunWizardExecuteTest.php:100:        'managed_environment_id' => 'tenant-2',
tests/Feature/RestoreRunWizardExecuteTest.php:111:        'managed_environment_id' => $tenant->id,
tests/Feature/RestoreRunWizardExecuteTest.php:119:        'managed_environment_id' => $tenant->id,
tests/Feature/RestoreRunWizardExecuteTest.php:126:        'managed_environment_id' => $tenant->id,
tests/Feature/RestoreRunWizardExecuteTest.php:177:        ->where('managed_environment_id', $tenant->id)
tests/Feature/RestoreRunWizardExecuteTest.php:198:        'managed_environment_id' => 'tenant-3',
tests/Feature/RestoreRunWizardExecuteTest.php:209:        'managed_environment_id' => $tenant->id,
tests/Feature/RestoreRunWizardExecuteTest.php:217:        'managed_environment_id' => $tenant->id,
tests/Feature/RestoreRunWizardExecuteTest.php:224:        'managed_environment_id' => $tenant->id,
tests/Feature/RestoreRunWizardExecuteTest.php:235:        'managed_environment_id' => $tenant->id,
tests/Feature/Workspaces/ManagedEnvironmentsLivewireUpdateTest.php:31:        ->get(route('admin.workspace.managed-environments.index', ['workspace' => $workspace]));
tests/Feature/Filament/BaselineCompareLandingDuplicateNamesBannerTest.php:32:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/BaselineCompareLandingDuplicateNamesBannerTest.php:43:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/BaselineCompareLandingDuplicateNamesBannerTest.php:53:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/BaselineCompareLandingDuplicateNamesBannerTest.php:90:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/BaselineCompareLandingDuplicateNamesBannerTest.php:113:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/BaselineCompareLandingDuplicateNamesBannerTest.php:123:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/BaselineCompareLandingDuplicateNamesBannerTest.php:133:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Workspaces/CreateWorkspaceCreatesMembershipTest.php:35:        'managed_environment_id' => $tenant->getKey(),
tests/Unit/Audit/AuditLogCompatibilityTest.php:29:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Unit/Audit/AuditLogCompatibilityTest.php:53:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/OperationRunBaselineTruthSurfaceTest.php:47:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/OperationRunBaselineTruthSurfaceTest.php:100:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/OperationRunBaselineTruthSurfaceTest.php:138:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/OperationRunBaselineTruthSurfaceTest.php:195:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/OperationRunBaselineTruthSurfaceTest.php:262:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/OperationRunBaselineTruthSurfaceTest.php:308:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/OperationRunBaselineTruthSurfaceTest.php:313:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/OperationRunBaselineTruthSurfaceTest.php:413:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Baselines/BaselineCompareMatrixCompareAllActionTest.php:77:        ->and($activeRuns->every(static fn (OperationRun $run): bool => $run->managed_environment_id !== null))->toBeTrue()
tests/Feature/Baselines/BaselineCompareMatrixCompareAllActionTest.php:80:        ->and(OperationRun::query()->whereNull('managed_environment_id')->where('type', OperationRunType::BaselineCompare->value)->count())->toBe(0);
tests/Feature/Baselines/BaselineCompareMatrixCompareAllActionTest.php:102:        ->whereNull('managed_environment_id')
tests/Feature/Workspaces/Spec195ManagedEnvironmentsLandingTest.php:40:        ->get(route('admin.workspace.managed-environments.index', ['workspace' => $workspace]))
tests/Feature/Workspaces/Spec195ManagedEnvironmentsLandingTest.php:74:        ->assertRedirect(route('admin.workspace.managed-environments.index', ['workspace' => $workspace]));
tests/Feature/Workspaces/Spec195ManagedEnvironmentsLandingTest.php:82:        ->assertRedirect(EnvironmentDashboard::getUrl(tenant: $tenant));
tests/Feature/Workspaces/Spec195ManagedEnvironmentsLandingTest.php:106:        ->assertRedirect(EnvironmentDashboard::getUrl(tenant: $tenant));
tests/Feature/Filament/Artifacts/ArtifactSourceTaxonomySurfaceTest.php:21:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/Artifacts/ArtifactSourceTaxonomySurfaceTest.php:31:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/Artifacts/ArtifactSourceTaxonomySurfaceTest.php:39:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/Artifacts/ArtifactSourceTaxonomySurfaceTest.php:46:        ->get(FindingResource::getUrl('view', ['record' => $finding], tenant: $tenant))
tests/Feature/Filament/Artifacts/ArtifactSourceTaxonomySurfaceTest.php:52:        ->get(InventoryItemResource::getUrl('view', ['record' => $inventory], tenant: $tenant))
tests/Feature/Filament/Artifacts/ArtifactSourceTaxonomySurfaceTest.php:59:        ->get(StoredReportResource::getUrl('view', ['record' => $report], tenant: $tenant))
tests/Feature/Filament/Artifacts/ArtifactSourceTaxonomySurfaceTest.php:65:        ->get(EvidenceSnapshotResource::getUrl('view', ['record' => $snapshot], tenant: $tenant))
tests/Feature/Filament/Artifacts/ArtifactSourceTaxonomySurfaceTest.php:72:        ->get(EnvironmentReviewResource::getUrl('view', ['record' => $review], tenant: $tenant))
tests/Feature/Filament/Artifacts/ArtifactSourceTaxonomySurfaceTest.php:84:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/Artifacts/ArtifactSourceTaxonomySurfaceTest.php:90:        ->get(FindingResource::getUrl('view', ['record' => $finding], tenant: $tenant))
tests/Feature/Filament/Artifacts/ArtifactSourceTaxonomySurfaceTest.php:100:        ->get(FindingResource::getUrl('view', ['record' => $finding], tenant: $tenant))
app/Support/Baselines/BaselineCompareMatrixBuilder.php:52:                ->pluck('managed_environment_id')
app/Support/Baselines/BaselineCompareMatrixBuilder.php:196:        )->keyBy(static fn (OperationRun $run): int => (int) $run->managed_environment_id);
app/Support/Baselines/BaselineCompareMatrixBuilder.php:203:        )->keyBy(static fn (OperationRun $run): int => (int) $run->managed_environment_id);
app/Support/Baselines/BaselineCompareMatrixBuilder.php:392:            ->whereIn('managed_environment_id', $tenantIds)
app/Support/Baselines/BaselineCompareMatrixBuilder.php:404:            $tenantId = (int) $finding->managed_environment_id;
tests/Unit/Auth/ManagedEnvironmentAccessScopeResolverTest.php:56:        'managed_environment_id' => (int) $allowedTenant->getKey(),
tests/Unit/Auth/ManagedEnvironmentAccessScopeResolverTest.php:89:        'managed_environment_id' => (int) $foreignTenant->getKey(),
tests/Unit/Auth/ManagedEnvironmentAccessScopeResolverTest.php:120:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/PolicyVersionSettingsTest.php:21:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/Filament/PolicyVersionSettingsTest.php:29:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/Filament/PolicyVersionSettingsTest.php:45:        ->get(PolicyVersionResource::getUrl('view', ['record' => $version], tenant: $tenant));
tests/Feature/Filament/PolicyVersionSettingsTest.php:63:        'managed_environment_id' => 'tenant-enrollment-notify',
tests/Feature/Filament/PolicyVersionSettingsTest.php:71:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/Filament/PolicyVersionSettingsTest.php:79:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/Filament/PolicyVersionSettingsTest.php:135:        ->get(PolicyVersionResource::getUrl('view', ['record' => $version]).'?tab=normalized-settings&tenant='.(string) $tenant->external_id);
tests/Feature/Filament/BaselineProfileCaptureStartSurfaceTest.php:24:function baselineProfileCaptureHeaderActions(Testable $component): array
tests/Feature/Filament/BaselineProfileCaptureStartSurfaceTest.php:28:    if ($instance->getCachedHeaderActions() === []) {
tests/Feature/Filament/BaselineProfileCaptureStartSurfaceTest.php:29:        $instance->cacheInteractsWithHeaderActions();
tests/Feature/Filament/BaselineProfileCaptureStartSurfaceTest.php:32:    return $instance->getCachedHeaderActions();
tests/Feature/Filament/BaselineProfileCaptureStartSurfaceTest.php:53:    $this->get(BaselineProfileResource::getUrl('view', ['record' => $profile], panel: 'admin'))
tests/Feature/Filament/BaselineProfileCaptureStartSurfaceTest.php:66:        ->get(BaselineProfileResource::getUrl('view', ['record' => $profile], panel: 'admin'))
tests/Feature/Filament/BaselineProfileCaptureStartSurfaceTest.php:84:        ->callAction('capture', data: ['source_environment_id' => (int) $tenant->getKey()])
tests/Feature/Filament/BaselineProfileCaptureStartSurfaceTest.php:108:        ->callAction('capture', data: ['source_environment_id' => (int) $tenant->getKey()])
tests/Feature/Filament/BaselineProfileCaptureStartSurfaceTest.php:111:    $topLevelActionNames = collect(baselineProfileCaptureHeaderActions($component))
tests/Feature/Filament/BaselineProfileCaptureStartSurfaceTest.php:124:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/Filament/BaselineProfileCaptureStartSurfaceTest.php:150:        ->callAction('capture', data: ['source_environment_id' => (int) $tenant->getKey()])
tests/Feature/Filament/BaselineProfileCaptureStartSurfaceTest.php:173:        ->callAction('capture', data: ['source_environment_id' => (int) $tenant->getKey()])
tests/Feature/Filament/BaselineProfileCaptureStartSurfaceTest.php:227:        ->callAction('capture', data: ['source_environment_id' => (int) $tenant->getKey()])
app/Services/Providers/PlatformProviderIdentityResolver.php:23:        $authorityTenant = trim((string) config('graph.managed_environment_id', 'organizations'));
app/Services/Providers/PlatformProviderIdentityResolver.php:24:        $redirectUri = trim((string) route('admin.consent.callback'));
tests/Unit/AssignmentBackupServiceTest.php:16:        'managed_environment_id' => 'tenant-123',
tests/Unit/AssignmentBackupServiceTest.php:23:        'managed_environment_id' => $tenant->id,
tests/Unit/AssignmentBackupServiceTest.php:102:        'managed_environment_id' => 'tenant-123',
tests/Unit/AssignmentBackupServiceTest.php:109:        'managed_environment_id' => $tenant->id,
tests/Unit/AssignmentBackupServiceTest.php:165:        'managed_environment_id' => 'tenant-123',
tests/Unit/AssignmentBackupServiceTest.php:172:        'managed_environment_id' => $tenant->id,
tests/Unit/Auth/WorkspaceFirstCapabilityResolverTest.php:31:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Unit/Auth/WorkspaceFirstCapabilityResolverTest.php:52:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Unit/Auth/WorkspaceFirstCapabilityResolverTest.php:79:            && $context['managed_environment_id'] === (int) $tenant->getKey()
tests/Feature/Filament/BackupSetResolvedReferencePresentationTest.php:27:    $this->get(BackupSetResource::getUrl('view', ['record' => $backupSet], tenant: $tenant))
tests/Feature/Baselines/BaselineCompareFindingsTest.php:90:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/Baselines/BaselineCompareFindingsTest.php:100:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/Baselines/BaselineCompareFindingsTest.php:148:        ->where('managed_environment_id', $tenant->getKey())
tests/Feature/Baselines/BaselineCompareFindingsTest.php:230:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/Baselines/BaselineCompareFindingsTest.php:283:        ->where('managed_environment_id', $tenant->getKey())
tests/Feature/Baselines/BaselineCompareFindingsTest.php:346:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/Baselines/BaselineCompareFindingsTest.php:382:        ->where('managed_environment_id', $tenant->getKey())
tests/Feature/Baselines/BaselineCompareFindingsTest.php:436:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/Baselines/BaselineCompareFindingsTest.php:470:        ->where('managed_environment_id', $tenant->getKey())
tests/Feature/Baselines/BaselineCompareFindingsTest.php:499:        ->where('managed_environment_id', $tenant->getKey())
tests/Feature/Baselines/BaselineCompareFindingsTest.php:578:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/Baselines/BaselineCompareFindingsTest.php:611:        ->where('managed_environment_id', $tenant->getKey())
tests/Feature/Baselines/BaselineCompareFindingsTest.php:702:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/Baselines/BaselineCompareFindingsTest.php:734:        ->where('managed_environment_id', $tenant->getKey())
tests/Feature/Baselines/BaselineCompareFindingsTest.php:776:        ->where('managed_environment_id', $tenant->getKey())
tests/Feature/Baselines/BaselineCompareFindingsTest.php:840:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/Baselines/BaselineCompareFindingsTest.php:878:        ->where('managed_environment_id', $tenant->getKey())
tests/Feature/Baselines/BaselineCompareFindingsTest.php:954:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/Baselines/BaselineCompareFindingsTest.php:965:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/Baselines/BaselineCompareFindingsTest.php:1002:            ->where('managed_environment_id', $tenant->getKey())
tests/Feature/Baselines/BaselineCompareFindingsTest.php:1064:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/Baselines/BaselineCompareFindingsTest.php:1074:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/Baselines/BaselineCompareFindingsTest.php:1223:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/Baselines/BaselineCompareFindingsTest.php:1310:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/Baselines/BaselineCompareFindingsTest.php:1407:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/Baselines/BaselineCompareFindingsTest.php:1417:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/Baselines/BaselineCompareFindingsTest.php:1447:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/Baselines/BaselineCompareFindingsTest.php:1471:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Baselines/BaselineCompareFindingsTest.php:1488:            'source_environment_id' => (int) $tenant->getKey(),
tests/Feature/Workspaces/ManagedEnvironmentsWorkspaceRoutingTest.php:58:        'managed_environment_id' => 'bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbb',
tests/Feature/Workspaces/ManagedEnvironmentsWorkspaceRoutingTest.php:69:        ->get(route('admin.workspace.managed-environments.index', ['workspace' => $workspaceEmpty]))
tests/Feature/Workspaces/ManagedEnvironmentsWorkspaceRoutingTest.php:87:        'managed_environment_id' => '11111111-1111-1111-1111-111111111111',
tests/Feature/Workspaces/ManagedEnvironmentsWorkspaceRoutingTest.php:95:        ->get(EnvironmentDashboard::getUrl(tenant: $tenant))
tests/Feature/Workspaces/ManagedEnvironmentsWorkspaceRoutingTest.php:120:        'managed_environment_id' => 'aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa',
tests/Feature/Workspaces/ManagedEnvironmentsWorkspaceRoutingTest.php:129:        ->get(EnvironmentDashboard::getUrl(tenant: $tenantInA))
tests/Unit/RestoreRunDeletableTest.php:13:        'managed_environment_id' => $tenant->id,
tests/Unit/RestoreRunDeletableTest.php:32:            'managed_environment_id' => $tenant->id,
tests/Unit/RestoreRunDeletableTest.php:62:        'managed_environment_id' => $tenant->id,
tests/Unit/RestoreRunDeletableTest.php:69:        'managed_environment_id' => $tenant->id,
tests/Unit/RestoreRunDeletableTest.php:77:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/TenantMembersTest.php:34:        ->where('managed_environment_id', $tenant->getKey())
tests/Feature/Filament/TenantMembersTest.php:62:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/TenantMembersTest.php:83:        ->where('managed_environment_id', $tenant->getKey())
tests/Feature/Filament/PolicyVersionReadableLayoutTest.php:17:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/PolicyVersionReadableLayoutTest.php:27:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/PolicyVersionReadableLayoutTest.php:57:        ->get(PolicyVersionResource::getUrl('view', ['record' => $version], tenant: $tenant));
tests/Feature/Workspaces/ChooseEnvironmentPageTest.php:95:        ->get(route('admin.workspace.managed-environments.index', ['workspace' => $activeTenant->workspace]))
tests/Feature/Workspaces/ChooseEnvironmentPageTest.php:114:        ->from(EnvironmentDashboard::getUrl(tenant: $tenant))
tests/Feature/Workspaces/ChooseEnvironmentPageTest.php:115:        ->post(route('admin.clear-environment-context'))
tests/Feature/Workspaces/ChooseEnvironmentPageTest.php:116:        ->assertRedirect(route('admin.workspace.managed-environments.index', ['workspace' => $tenant->workspace]));
tests/Feature/Workspaces/ChooseEnvironmentPageTest.php:120:    ])->get(route('admin.operations.index', ['workspace' => $tenant->workspace]))
tests/Feature/Workspaces/ChooseEnvironmentPageTest.php:138:        ->post(route('admin.clear-environment-context'))
tests/Feature/Workspaces/ChooseEnvironmentPageTest.php:139:        ->assertRedirect(route('admin.evidence.overview'));
tests/Feature/Workspaces/ChooseEnvironmentPageTest.php:143:    ])->get(route('admin.evidence.overview'))
tests/Unit/BulkOperationAbortMethodTest.php:15:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/Baselines/BaselineCompareFindingRecurrenceKeyTest.php:63:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Baselines/BaselineCompareFindingRecurrenceKeyTest.php:95:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/Baselines/BaselineCompareFindingRecurrenceKeyTest.php:205:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Baselines/BaselineCompareFindingRecurrenceKeyTest.php:213:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Baselines/BaselineCompareFindingRecurrenceKeyTest.php:225:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Baselines/BaselineCompareFindingRecurrenceKeyTest.php:271:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Baselines/BaselineCompareFindingRecurrenceKeyTest.php:292:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Baselines/BaselineCompareFindingRecurrenceKeyTest.php:330:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/Filament/PolicySettingsStandardRendersArraysTest.php:17:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/PolicySettingsStandardRendersArraysTest.php:25:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/PolicySettingsStandardRendersArraysTest.php:47:        ->get(PolicyResource::getUrl('view', ['record' => $policy]).'?tab=settings&tenant='.(string) $tenant->external_id);
tests/Feature/Workspaces/SwitchWorkspaceRedirectsToTenantRegistrationWhenNoTenantsTest.php:26:        ->post(route('admin.switch-workspace'), ['workspace_id' => (int) $workspace->getKey()]);
app/Services/Providers/ProviderConnectionResolver.php:21:            ->where('managed_environment_id', (int) $tenant->getKey())
app/Services/Providers/ProviderConnectionResolver.php:50:        if ((int) $connection->managed_environment_id !== (int) $tenant->getKey() || (string) $connection->provider !== $provider) {
tests/Feature/Filament/SettingsCatalogRestoreTest.php:21:            'managed_environment_id' => 'tenant-1',
tests/Feature/Filament/SettingsCatalogRestoreTest.php:27:            'managed_environment_id' => $tenant->id,
tests/Feature/Filament/SettingsCatalogRestoreTest.php:137:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/SettingsCatalogRestoreTest.php:145:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/SettingsCatalogRestoreTest.php:177:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/SettingsCatalogRestoreTest.php:235:        ->get(\App\Filament\Resources\RestoreRunResource::getUrl('view', ['record' => $run], panel: 'admin', tenant: $tenant));
tests/Feature/Filament/SettingsCatalogRestoreTest.php:257:        'managed_environment_id' => 'tenant-2',
tests/Feature/Filament/SettingsCatalogRestoreTest.php:262:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/SettingsCatalogRestoreTest.php:270:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/SettingsCatalogRestoreTest.php:295:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/SettingsCatalogRestoreTest.php:377:        'managed_environment_id' => 'tenant-4',
tests/Feature/Filament/SettingsCatalogRestoreTest.php:382:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/SettingsCatalogRestoreTest.php:390:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/SettingsCatalogRestoreTest.php:414:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/SettingsCatalogRestoreTest.php:494:        'managed_environment_id' => 'tenant-5',
tests/Feature/Filament/SettingsCatalogRestoreTest.php:499:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/SettingsCatalogRestoreTest.php:507:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/SettingsCatalogRestoreTest.php:533:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/WorkspaceOverviewOperationsTest.php:20:        'managed_environment_id' => (int) $tenantA->getKey(),
tests/Feature/Filament/WorkspaceOverviewOperationsTest.php:27:        'managed_environment_id' => (int) $tenantB->getKey(),
tests/Feature/Filament/WorkspaceOverviewOperationsTest.php:35:        ->get(route('admin.workspace.home', ['workspace' => $tenantA->workspace]))
tests/Feature/Filament/WorkspaceOverviewOperationsTest.php:50:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/WorkspaceOverviewOperationsTest.php:60:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/WorkspaceOverviewOperationsTest.php:82:        ->get(route('admin.workspace.home', ['workspace' => $tenant->workspace]))
tests/Feature/Workspaces/SwitchWorkspaceControllerTest.php:28:        ->post(route('admin.switch-workspace'), [
tests/Feature/Workspaces/SwitchWorkspaceControllerTest.php:32:    $response->assertRedirect(EnvironmentDashboard::getUrl(panel: 'admin', tenant: $targetWorkspaceTenant));
app/Services/Providers/ProviderConnectionClassifier.php:49:                'has_legacy_tenant_identity' => $hasLegacyTenantIdentity,
tests/Feature/Filament/BaselineSnapshotDegradedStateTest.php:49:        ->get(BaselineSnapshotResource::getUrl('view', ['record' => $snapshot], panel: 'admin'))
tests/Feature/Filament/BaselineSnapshotDegradedStateTest.php:113:        ->get(BaselineSnapshotResource::getUrl('view', ['record' => $snapshot], panel: 'admin'))
tests/Feature/Baselines/BaselineCompareStatsTest.php:40:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Baselines/BaselineCompareStatsTest.php:76:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Baselines/BaselineCompareStatsTest.php:102:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Baselines/BaselineCompareStatsTest.php:129:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Baselines/BaselineCompareStatsTest.php:134:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/Baselines/BaselineCompareStatsTest.php:163:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Baselines/BaselineCompareStatsTest.php:168:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/Baselines/BaselineCompareStatsTest.php:202:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Baselines/BaselineCompareStatsTest.php:210:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/Baselines/BaselineCompareStatsTest.php:220:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/Baselines/BaselineCompareStatsTest.php:230:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/Baselines/BaselineCompareStatsTest.php:241:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/Baselines/BaselineCompareStatsTest.php:250:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/Baselines/BaselineCompareStatsTest.php:287:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Baselines/BaselineCompareStatsTest.php:307:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Baselines/BaselineCompareStatsTest.php:316:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/Baselines/BaselineCompareStatsTest.php:327:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/Baselines/BaselineCompareStatsTest.php:357:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Baselines/BaselineCompareStatsTest.php:362:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Baselines/BaselineCompareStatsTest.php:384:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Baselines/BaselineCompareStatsTest.php:390:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Baselines/BaselineCompareStatsTest.php:395:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Baselines/BaselineCompareStatsTest.php:414:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Baselines/BaselineCompareStatsTest.php:419:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Baselines/BaselineCompareStatsTest.php:438:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Baselines/BaselineCompareStatsTest.php:443:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Workspaces/WorkspacesResourceIsTenantlessTest.php:81:        'managed_environment_id' => '11111111-1111-1111-1111-111111111111',
tests/Feature/Filament/TableStatePersistenceTest.php:54:    expect(data_get(session()->get($instance->getTableFiltersSessionKey()), str($filterPath)->after('tableFilters.')->value()))->toBe($filterValue);
tests/Feature/Filament/TableStatePersistenceTest.php:75:        'tableFilters.environment.value',
tests/Feature/Filament/TableStatePersistenceTest.php:92:        'tableFilters.visibility.value',
tests/Feature/Filament/TableStatePersistenceTest.php:109:        'tableFilters.trashed.value',
tests/Feature/Filament/TableStatePersistenceTest.php:126:        'tableFilters.enabled_state.value',
tests/Feature/Filament/TableStatePersistenceTest.php:143:        'tableFilters.default_only.isActive',
tests/Feature/Filament/TableStatePersistenceTest.php:160:        'tableFilters.status.value',
tests/Feature/Filament/TableStatePersistenceTest.php:177:        'tableFilters.platform.value',
tests/Feature/Filament/TableStatePersistenceTest.php:194:        'tableFilters.platform.value',
tests/Feature/Filament/TableStatePersistenceTest.php:211:        'tableFilters.status.value',
tests/Feature/Filament/TableStatePersistenceTest.php:228:        'tableFilters.status.value',
tests/Feature/Filament/TableStatePersistenceTest.php:245:        'tableFilters.group_type.value',
tests/Feature/Filament/TableStatePersistenceTest.php:263:        'tableFilters.snapshot_state.value',
tests/Feature/Filament/TableStatePersistenceTest.php:280:        'tableFilters.status.value',
tests/Feature/Filament/TableStatePersistenceTest.php:297:        'tableFilters.status.value',
tests/Feature/Filament/TableStatePersistenceTest.php:313:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/TableStatePersistenceTest.php:328:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/TableStatePersistenceTest.php:366:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/TableStatePersistenceTest.php:382:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/TableStatePersistenceTest.php:430:        ->assertSet('tableFilters.tenant.value', (string) $tenantA->external_id);
tests/Feature/Filament/TableStatePersistenceTest.php:437:        ->assertSet('tableFilters.tenant.value', (string) $tenantB->external_id);
tests/Unit/Auth/UiEnforcementBulkPreflightQueryCountTest.php:27:    $action = Action::make('test')->action(fn () => null);
tests/Feature/Baselines/BaselineComparePerformanceGuardTest.php:67:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/SettingsCatalogPolicyHydrationTest.php:71:        'managed_environment_id' => 'tenant-hydration',
tests/Feature/Filament/SettingsCatalogPolicyHydrationTest.php:79:    putenv('INTUNE_TENANT_ID='.$tenant->managed_environment_id);
tests/Feature/Filament/SettingsCatalogPolicyHydrationTest.php:80:    $_ENV['INTUNE_TENANT_ID'] = $tenant->managed_environment_id;
tests/Feature/Filament/SettingsCatalogPolicyHydrationTest.php:81:    $_SERVER['INTUNE_TENANT_ID'] = $tenant->managed_environment_id;
tests/Feature/Filament/SettingsCatalogPolicyHydrationTest.php:85:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/SettingsCatalogPolicyHydrationTest.php:113:        ->get(PolicyResource::getUrl('view', ['record' => $policy], tenant: $tenant));
tests/Feature/Filament/SettingsCatalogPolicyHydrationTest.php:126:        'managed_environment_id' => 'tenant-hydration-version',
tests/Feature/Filament/SettingsCatalogPolicyHydrationTest.php:134:    putenv('INTUNE_TENANT_ID='.$tenant->managed_environment_id);
tests/Feature/Filament/SettingsCatalogPolicyHydrationTest.php:135:    $_ENV['INTUNE_TENANT_ID'] = $tenant->managed_environment_id;
tests/Feature/Filament/SettingsCatalogPolicyHydrationTest.php:136:    $_SERVER['INTUNE_TENANT_ID'] = $tenant->managed_environment_id;
tests/Feature/Filament/SettingsCatalogPolicyHydrationTest.php:140:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/SettingsCatalogPolicyHydrationTest.php:155:        ->get(PolicyResource::getUrl('view', ['record' => $policy], tenant: $tenant));
tests/Feature/Workspaces/EnsureWorkspaceSelectedMiddlewareTest.php:80:    $expectedRoute = route('admin.workspace.managed-environments.index', [
tests/Feature/Workspaces/EnsureWorkspaceSelectedMiddlewareTest.php:111:    $expectedRoute = route('admin.workspace.managed-environments.index', [
tests/Feature/Workspaces/EnsureWorkspaceSelectedMiddlewareTest.php:141:    expect($location)->toBe(EnvironmentDashboard::getUrl(tenant: $tenant));
tests/Feature/Filament/TenantLifecycleStatusDomainSeparationTest.php:53:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Unit/Auth/UiEnforcementTest.php:16:    $action = Action::make('test')->action(fn () => null);
tests/Unit/Auth/UiEnforcementTest.php:32:    $action = Action::make('test')->action(fn () => null);
tests/Unit/Auth/UiEnforcementTest.php:50:    $action = Action::make('test')->action(fn () => null);
tests/Unit/Auth/UiEnforcementTest.php:68:    $action = Action::make('test')
tests/Unit/Auth/UiEnforcementTest.php:91:    $action = Action::make('test')->action(fn () => null);
tests/Feature/Baselines/BaselineCompareExecutionGuardTest.php:45:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Baselines/BaselineCompareExecutionGuardTest.php:100:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Baselines/BaselineCompareExecutionGuardTest.php:162:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Baselines/BaselineCompareExecutionGuardTest.php:179:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/RecentOperationsSummaryWidgetTest.php:21:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/RecentOperationsSummaryWidgetTest.php:48:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/RecentOperationsSummaryWidgetTest.php:57:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Workspaces/GlobalContextShellContractTest.php:25:        ->get(EnvironmentDashboard::getUrl(tenant: $tenant))
tests/Feature/Workspaces/GlobalContextShellContractTest.php:44:        ->get(route('admin.operations.index', ['workspace' => $workspaceTenant->workspace, 'tenant' => $foreignTenant->external_id]))
tests/Feature/Workspaces/GlobalContextShellContractTest.php:88:        fn ($workspace, ManagedEnvironment $tenant): string => route('admin.operations.index', [
tests/Feature/Workspaces/GlobalContextShellContractTest.php:90:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Workspaces/GlobalContextShellContractTest.php:95:        fn ($workspace, ManagedEnvironment $tenant): string => CustomerReviewWorkspace::getUrl(panel: 'admin', parameters: [
tests/Feature/Workspaces/GlobalContextShellContractTest.php:101:        fn ($workspace, ManagedEnvironment $tenant): string => DecisionRegister::getUrl(panel: 'admin', parameters: [
tests/Feature/Workspaces/GlobalContextShellContractTest.php:102:            'managed_environment_id' => (string) $tenant->getKey(),
tests/Feature/Workspaces/GlobalContextShellContractTest.php:107:        fn ($workspace, ManagedEnvironment $tenant): string => GovernanceInbox::getUrl(panel: 'admin', parameters: [
tests/Feature/Workspaces/GlobalContextShellContractTest.php:108:            'managed_environment_id' => (string) $tenant->getKey(),
tests/Feature/Workspaces/GlobalContextShellContractTest.php:113:        fn ($workspace, ManagedEnvironment $tenant): string => route('admin.monitoring.audit-log', [
tests/Feature/Workspaces/GlobalContextShellContractTest.php:114:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Workspaces/GlobalContextShellContractTest.php:119:        fn ($workspace, ManagedEnvironment $tenant): string => ProviderConnectionResource::getUrl('index', [
tests/Feature/Workspaces/GlobalContextShellContractTest.php:120:            'managed_environment_id' => (string) $tenant->external_id,
tests/Feature/Workspaces/GlobalContextShellContractTest.php:125:        fn ($workspace, ManagedEnvironment $tenant): string => route('filament.admin.alerts', [
tests/Feature/Workspaces/GlobalContextShellContractTest.php:131:        fn ($workspace, ManagedEnvironment $tenant): string => route('admin.workspace.home', [
tests/Feature/Baselines/BaselineCompareCrossTenantMatchTest.php:83:        'managed_environment_id' => (int) $targetTenant->getKey(),
tests/Feature/Baselines/BaselineCompareCrossTenantMatchTest.php:91:        'managed_environment_id' => (int) $targetTenant->getKey(),
tests/Feature/Baselines/BaselineCompareCrossTenantMatchTest.php:102:        'managed_environment_id' => (int) $targetTenant->getKey(),
tests/Feature/Baselines/BaselineCompareCrossTenantMatchTest.php:137:            ->where('managed_environment_id', (int) $targetTenant->getKey())
tests/Feature/Baselines/BaselineCompareCrossTenantMatchTest.php:178:        'managed_environment_id' => (int) $sourceTenant->getKey(),
tests/Feature/Baselines/BaselineCompareCrossTenantMatchTest.php:186:        'managed_environment_id' => (int) $sourceTenant->getKey(),
tests/Feature/Baselines/BaselineCompareCrossTenantMatchTest.php:243:        'managed_environment_id' => (int) $targetTenant->getKey(),
tests/Feature/Baselines/BaselineCompareCrossTenantMatchTest.php:251:        'managed_environment_id' => (int) $targetTenant->getKey(),
tests/Feature/Baselines/BaselineCompareCrossTenantMatchTest.php:276:        'managed_environment_id' => (int) $targetTenant->getKey(),
tests/Feature/Baselines/BaselineCompareCrossTenantMatchTest.php:317:        ->where('managed_environment_id', (int) $targetTenant->getKey())
tests/Feature/Filament/InventoryPagesTest.php:20:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/InventoryPagesTest.php:28:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/InventoryPagesTest.php:36:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/InventoryPagesTest.php:70:    $itemsUrl = InventoryItemResource::getUrl('index', panel: 'admin', tenant: $tenant);
tests/Feature/Filament/InventoryPagesTest.php:71:    $coverageUrl = InventoryCoverage::getUrl(panel: 'admin', tenant: $tenant);
tests/Feature/Filament/InventoryPagesTest.php:109:        ->get(InventoryCoverage::getUrl(panel: 'admin', tenant: $tenant))
tests/Feature/Baselines/TenantGovernanceAggregateResolverTest.php:38:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Baselines/TenantGovernanceAggregateResolverTest.php:52:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Baselines/TenantGovernanceAggregateResolverTest.php:78:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Baselines/TenantGovernanceAggregateResolverTest.php:106:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Baselines/TenantGovernanceAggregateResolverTest.php:171:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Baselines/TenantGovernanceAggregateResolverTest.php:195:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Baselines/TenantGovernanceAggregateResolverTest.php:216:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Baselines/TenantGovernanceAggregateResolverTest.php:245:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Workspaces/ChooseWorkspaceRedirectsToChooseEnvironmentTest.php:32:        ->assertRedirect(route('admin.workspace.managed-environments.index', ['workspace' => $workspace->slug ?? $workspace->getKey()]));
tests/Feature/Workspaces/ChooseWorkspaceRedirectsToChooseEnvironmentTest.php:51:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/Workspaces/ChooseWorkspaceRedirectsToChooseEnvironmentTest.php:62:        ->assertRedirect(EnvironmentDashboard::getUrl(tenant: $tenant));
tests/Feature/Workspaces/ChooseWorkspaceRedirectsToChooseEnvironmentTest.php:82:            'managed_environment_id' => $tenant->getKey(),
tests/Feature/Workspaces/ChooseWorkspaceRedirectsToChooseEnvironmentTest.php:94:        ->assertRedirect(route('admin.workspace.managed-environments.index', ['workspace' => $workspace->slug ?? $workspace->getKey()]));
tests/Feature/Workspaces/ChooseWorkspaceRedirectsToChooseEnvironmentTest.php:107:    $intendedUrl = (string) parse_url(route('admin.operations.index', ['workspace' => $workspace]), PHP_URL_PATH);
tests/Feature/Workspaces/ChooseWorkspaceRedirectsToChooseEnvironmentTest.php:137:        ->post(route('admin.switch-workspace'), ['workspace_id' => (int) $workspaceB->getKey()])
tests/Feature/Workspaces/ChooseWorkspaceRedirectsToChooseEnvironmentTest.php:138:        ->assertRedirect(route('admin.workspace.managed-environments.index', ['workspace' => $workspaceB->slug ?? $workspaceB->getKey()]));
tests/Feature/Workspaces/ChooseWorkspaceRedirectsToChooseEnvironmentTest.php:140:    expect(Filament::getTenant())->toBeNull();
tests/Unit/Filament/ProviderConnectionResourceLivewireTenantInferenceTest.php:25:    $request->headers->set('referer', "http://localhost/admin/provider-connections/1/edit?managed_environment_id={$tenant->external_id}");
tests/Unit/Filament/ProviderConnectionResourceLivewireTenantInferenceTest.php:37:    $url = ProviderConnectionResource::getUrl('index');
tests/Unit/Filament/ProviderConnectionResourceLivewireTenantInferenceTest.php:40:    expect($url)->toContain('managed_environment_id='.(string) $tenant->external_id);
tests/Feature/Filament/TenantDashboardArrivalContextTest.php:31:    return EnvironmentDashboard::getUrl([
tests/Feature/Filament/TenantDashboardArrivalContextTest.php:70:        ->assertSee(BackupSetResource::getUrl('index', [
tests/Feature/Filament/TenantDashboardArrivalContextTest.php:73:        ->assertSee(route('admin.home'), false);
tests/Feature/Filament/TenantDashboardArrivalContextTest.php:81:    $returnUrl = ManagedEnvironmentResource::getUrl('index', [
tests/Feature/Filament/TenantDashboardArrivalContextTest.php:106:        ->assertSee(RestoreRunResource::getUrl('view', [
tests/Feature/Filament/TenantDashboardArrivalContextTest.php:117:    $this->get(EnvironmentDashboard::getUrl(panel: 'admin', tenant: $tenant))
tests/Feature/Filament/TenantDashboardArrivalContextTest.php:121:    $this->get(EnvironmentDashboard::getUrl([
tests/Feature/Filament/TenantDashboardArrivalContextTest.php:185:        ->assertDontSee(BackupSetResource::getUrl('index', [
tests/Feature/Filament/TenantDashboardArrivalContextTest.php:223:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/Filament/TenantDashboardArrivalContextTest.php:230:            ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/Filament/Settings/WorkspaceEntitlementsSettingsPageTest.php:37:        ->get(WorkspaceSettings::getUrl(panel: 'admin'))
tests/Feature/Filament/Settings/WorkspaceEntitlementsSettingsPageTest.php:127:        ->get(WorkspaceSettings::getUrl(panel: 'admin'))
app/Services/Providers/ProviderOperationStartGate.php:105:                ->where('managed_environment_id', $tenant->getKey())
app/Services/Providers/ProviderOperationStartGate.php:360:                $identifier = trim((string) $connection->entra_tenant_id);
tests/Feature/Workspaces/ChooseWorkspacePageTest.php:46:        ->get(route('filament.admin.pages.choose-workspace'))
tests/Feature/Workspaces/ChooseWorkspacePageTest.php:73:        ->get(route('filament.admin.pages.choose-workspace'))
tests/Feature/Workspaces/ChooseWorkspacePageTest.php:107:        ->get(route('filament.admin.pages.choose-workspace'))
tests/Feature/Workspaces/ChooseWorkspacePageTest.php:133:        ->get(route('filament.admin.pages.choose-workspace'))
tests/Feature/Workspaces/ChooseWorkspacePageTest.php:144:        ->get(route('filament.admin.pages.choose-workspace'))
tests/Feature/Workspaces/ChooseWorkspacePageTest.php:164:        ->get(route('filament.admin.pages.choose-workspace'))
tests/Feature/Workspaces/ChooseWorkspacePageTest.php:167:        ->assertSee(route('filament.admin.resources.workspaces.index', absolute: false), false);
tests/Feature/Workspaces/ChooseWorkspacePageTest.php:183:        ->get(route('filament.admin.pages.choose-workspace'))
tests/Feature/Workspaces/ChooseWorkspacePageTest.php:186:        ->assertDontSee(route('filament.admin.resources.workspaces.index', absolute: false), false);
tests/Feature/Workspaces/ChooseWorkspacePageTest.php:215:        ->get(route('filament.admin.pages.choose-workspace'))
tests/Unit/TenantResourceConsentUrlTest.php:15:        'managed_environment_id' => 'b0091e5d-944f-4a34-bcd9-12cbfb7b75cf',
tests/Unit/TenantResourceConsentUrlTest.php:21:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Unit/TenantResourceConsentUrlTest.php:24:        'entra_tenant_id' => 'b0091e5d-944f-4a34-bcd9-12cbfb7b75cf',
tests/Unit/TenantResourceConsentUrlTest.php:54:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Unit/TenantResourceConsentUrlTest.php:57:        'entra_tenant_id' => 'dedicated-target-tenant-id',
tests/Feature/Baselines/BaselineCompareRbacRoleDefinitionsTest.php:52:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Baselines/BaselineCompareRbacRoleDefinitionsTest.php:63:        'managed_environment_id' => (int) $policy->managed_environment_id,
tests/Feature/Baselines/BaselineCompareRbacRoleDefinitionsTest.php:136:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Baselines/BaselineCompareRbacRoleDefinitionsTest.php:267:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Baselines/BaselineCompareRbacRoleDefinitionsTest.php:321:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/Baselines/BaselineCompareRbacRoleDefinitionsTest.php:431:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/Filament/RestoreWizardGraphSafetyTest.php:36:        ->get(RestoreRunResource::getUrl('create', panel: 'admin', tenant: $tenant))
tests/Feature/Filament/RestoreWizardGraphSafetyTest.php:47:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/Filament/RestoreWizardGraphSafetyTest.php:55:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/Filament/RestoreWizardGraphSafetyTest.php:64:    $url = RestoreRunResource::getUrl('create', panel: 'admin', tenant: $tenant).'?backup_set_id='.$backupSet->getKey();
tests/Unit/Evidence/EvidenceSnapshotResolverTest.php:31:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Unit/Evidence/EvidenceSnapshotResolverTest.php:39:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Unit/Evidence/EvidenceSnapshotResolverTest.php:62:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Unit/Evidence/EvidenceSnapshotResolverTest.php:70:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/Settings/WorkspaceSupportAccessApprovalTest.php:48:        ->get(WorkspaceSettings::getUrl(panel: 'admin'))
tests/Feature/Workspaces/SelectEnvironmentControllerTest.php:21:        ->post(route('admin.select-environment'), [
tests/Feature/Workspaces/SelectEnvironmentControllerTest.php:22:            'managed_environment_id' => (int) $activeTenant->getKey(),
tests/Feature/Workspaces/SelectEnvironmentControllerTest.php:25:    $response->assertRedirect(EnvironmentDashboard::getUrl(panel: 'admin', tenant: $activeTenant));
tests/Feature/Workspaces/SelectEnvironmentControllerTest.php:49:        ->post(route('admin.select-environment'), [
tests/Feature/Workspaces/SelectEnvironmentControllerTest.php:50:            'managed_environment_id' => (int) $onboardingTenant->getKey(),
tests/Feature/Workspaces/SelectEnvironmentControllerTest.php:85:        ->post(route('admin.select-environment'), [
tests/Feature/Workspaces/SelectEnvironmentControllerTest.php:86:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Workspaces/SelectEnvironmentControllerTest.php:100:        ->post(route('admin.select-environment'), [
tests/Feature/Workspaces/SelectEnvironmentControllerTest.php:101:            'managed_environment_id' => (int) $foreignTenant->getKey(),
tests/Feature/Workspaces/SelectEnvironmentControllerTest.php:133:        ->post(route('admin.select-environment'), [
tests/Feature/Workspaces/SelectEnvironmentControllerTest.php:134:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Baselines/BaselineCompareStrategySelectionTest.php:63:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Baselines/BaselineCompareStrategySelectionTest.php:101:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Baselines/BaselineCompareStrategySelectionTest.php:120:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Baselines/BaselineCompareStrategySelectionTest.php:154:    $finding = Finding::query()->where('managed_environment_id', (int) $tenant->getKey())->first();
tests/Feature/Filament/SettingsCatalogPolicySyncTest.php:80:        'managed_environment_id' => 'local-tenant',
tests/Feature/Filament/SettingsCatalogPolicySyncTest.php:92:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/SettingsCatalogPolicySyncTest.php:95:        'entra_tenant_id' => $tenant->managed_environment_id,
tests/Feature/Filament/SettingsCatalogPolicySyncTest.php:121:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/SettingsCatalogPolicySyncTest.php:146:        ->get(\App\Filament\Resources\PolicyResource::getUrl(panel: 'admin', tenant: $tenant));
tests/Feature/Filament/LoginRedirectsToChooseWorkspaceWhenMultipleWorkspacesTest.php:39:        ->assertRedirect(route('filament.admin.pages.choose-workspace'));
tests/Feature/Filament/LoginRedirectsToChooseWorkspaceWhenMultipleWorkspacesTest.php:63:        ->assertRedirect(route('filament.admin.pages.choose-workspace'));
tests/Unit/System/SupportAccessGrantResolverTest.php:25:        'managed_environment_id' => null,
tests/Feature/Workspaces/ManagedEnvironmentOnboardingProviderStartTest.php:40:        'entra_tenant_id' => $tenantGuid,
tests/Feature/Workspaces/ManagedEnvironmentOnboardingProviderStartTest.php:50:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Workspaces/ManagedEnvironmentOnboardingProviderStartTest.php:52:        'entra_tenant_id' => $tenantGuid,
tests/Feature/Workspaces/ManagedEnvironmentOnboardingProviderStartTest.php:57:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Workspaces/ManagedEnvironmentOnboardingProviderStartTest.php:73:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/Workspaces/ManagedEnvironmentOnboardingProviderStartTest.php:99:        'entra_tenant_id' => $tenantGuid,
tests/Feature/Workspaces/ManagedEnvironmentOnboardingProviderStartTest.php:109:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Workspaces/ManagedEnvironmentOnboardingProviderStartTest.php:111:        'entra_tenant_id' => $tenantGuid,
tests/Feature/Workspaces/ManagedEnvironmentOnboardingProviderStartTest.php:118:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Workspaces/ManagedEnvironmentOnboardingProviderStartTest.php:132:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/Workspaces/ManagedEnvironmentOnboardingProviderStartTest.php:145:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/Workspaces/ManagedEnvironmentOnboardingProviderStartTest.php:151:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/Workspaces/ManagedEnvironmentOnboardingProviderStartTest.php:163:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Unit/BulkPolicyDeleteJobTest.php:18:    $policies = Policy::factory()->count(3)->create(['managed_environment_id' => $tenant->id]);
tests/Unit/BulkPolicyDeleteJobTest.php:24:        'managed_environment_id' => $tenant->getKey(),
tests/Unit/BulkPolicyDeleteJobTest.php:61:    $policies = Policy::factory()->count(2)->create(['managed_environment_id' => $tenant->id]);
tests/Unit/BulkPolicyDeleteJobTest.php:69:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/Filament/BaselineCompareNowWidgetTest.php:17:function createBaselineCompareWidgetTenant(): array
tests/Feature/Filament/BaselineCompareNowWidgetTest.php:35:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/BaselineCompareNowWidgetTest.php:43:    [$user, $tenant, $profile, $snapshot] = createBaselineCompareWidgetTenant();
tests/Feature/Filament/BaselineCompareNowWidgetTest.php:46:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/BaselineCompareNowWidgetTest.php:81:    [$user, $tenant, $profile, $snapshot] = createBaselineCompareWidgetTenant();
tests/Feature/Filament/BaselineCompareNowWidgetTest.php:84:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/BaselineCompareNowWidgetTest.php:124:    [$user, $tenant, $profile, $snapshot] = createBaselineCompareWidgetTenant();
tests/Feature/Filament/BaselineCompareNowWidgetTest.php:127:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/BaselineCompareNowWidgetTest.php:152:    [$user, $tenant, $profile, $snapshot] = createBaselineCompareWidgetTenant();
tests/Feature/Filament/BaselineCompareNowWidgetTest.php:155:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/BaselineCompareNowWidgetTest.php:188:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Workspaces/WorkspaceAuditTrailTest.php:125:        ->post(route('admin.switch-workspace'), ['workspace_id' => (int) $workspace->getKey()]);
tests/Feature/Workspaces/WorkspaceAuditTrailTest.php:200:        ->post(route('admin.switch-workspace'), ['workspace_id' => (int) $workspaceB->getKey()]);
tests/Unit/InventoryLinkTest.php:15:        'managed_environment_id' => $tenant->getKey(),
tests/Unit/InventoryLinkTest.php:38:        'managed_environment_id' => $tenantA->getKey(),
tests/Unit/InventoryLinkTest.php:43:        'managed_environment_id' => $tenantB->getKey(),
tests/Unit/InventoryLinkTest.php:47:    $edgesA = InventoryLink::query()->where('managed_environment_id', $tenantA->getKey())->get();
tests/Unit/InventoryLinkTest.php:48:    $edgesB = InventoryLink::query()->where('managed_environment_id', $tenantB->getKey())->get();
tests/Feature/Filament/OperationRunEnterpriseDetailPageTest.php:103:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/OperationRunEnterpriseDetailPageTest.php:116:                'entra_tenant_id' => '11111111-1111-1111-1111-111111111111',
tests/Feature/Filament/OperationRunEnterpriseDetailPageTest.php:169:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/OperationRunEnterpriseDetailPageTest.php:175:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/OperationRunEnterpriseDetailPageTest.php:194:        ->assertSee(\App\Filament\Resources\BackupSetResource::getUrl('view', ['record' => $backupSet], tenant: $tenant), false);
tests/Feature/Filament/OperationRunEnterpriseDetailPageTest.php:214:        'managed_environment_id' => (int) $runTenant->getKey(),
tests/Feature/Filament/OperationRunEnterpriseDetailPageTest.php:252:        'managed_environment_id' => null,
tests/Feature/Filament/OperationRunEnterpriseDetailPageTest.php:278:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/OperationRunEnterpriseDetailPageTest.php:315:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/OperationRunEnterpriseDetailPageTest.php:356:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/OperationRunEnterpriseDetailPageTest.php:419:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/OperationRunEnterpriseDetailPageTest.php:442:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/OperationRunEnterpriseDetailPageTest.php:458:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/OperationRunEnterpriseDetailPageTest.php:499:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/OperationRunEnterpriseDetailPageTest.php:539:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Unit/CircuitBreakerTest.php:18:    $okPolicy = Policy::factory()->create(['managed_environment_id' => $tenant->id]);
tests/Unit/CircuitBreakerTest.php:20:        'managed_environment_id' => $tenant->id,
tests/Unit/CircuitBreakerTest.php:28:    $failA = Policy::factory()->create(['managed_environment_id' => $tenant->id]);
tests/Unit/CircuitBreakerTest.php:29:    $failB = Policy::factory()->create(['managed_environment_id' => $tenant->id]);
tests/Unit/CircuitBreakerTest.php:30:    $failC = Policy::factory()->create(['managed_environment_id' => $tenant->id]);
tests/Unit/CircuitBreakerTest.php:61:        'managed_environment_id' => $tenant->id,
tests/Unit/VerificationLinkBehaviorTest.php:54:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Unit/VerificationLinkBehaviorTest.php:56:        'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Unit/VerificationLinkBehaviorTest.php:61:        url: ProviderConnectionResource::getUrl(
tests/Feature/Filament/PolicyVersionScopeTagsDisplayTest.php:21:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/Filament/PolicyVersionScopeTagsDisplayTest.php:29:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/Filament/PolicyVersionScopeTagsDisplayTest.php:47:        ->get(PolicyVersionResource::getUrl('view', ['record' => $version], tenant: $tenant));
app/Support/Baselines/BaselineCompareStats.php:102:            ->where('managed_environment_id', $tenant->getKey())
app/Support/Baselines/BaselineCompareStats.php:179:            ->where('managed_environment_id', $tenant->getKey())
app/Support/Baselines/BaselineCompareStats.php:299:            ->where('managed_environment_id', $tenant->getKey())
app/Support/Baselines/BaselineCompareStats.php:440:            ->where('managed_environment_id', $tenant->getKey())
app/Support/Baselines/BaselineCompareStats.php:457:            ->where('managed_environment_id', $tenant->getKey())
app/Support/Baselines/BaselineCompareStats.php:469:            ->where('managed_environment_id', $tenant->getKey())
app/Support/Baselines/BaselineCompareStats.php:522:                ->where('managed_environment_id', (int) $tenant->getKey())
app/Support/Baselines/BaselineCompareStats.php:583:            ->where('managed_environment_id', (int) $tenant->getKey())
app/Support/Baselines/BaselineCompareStats.php:774:            ->where('managed_environment_id', $tenantId)
app/Support/Baselines/BaselineCompareStats.php:781:            ->where('managed_environment_id', $tenantId)
app/Support/Baselines/BaselineCompareStats.php:789:            ->where('managed_environment_id', $tenantId)
app/Support/Baselines/BaselineCompareStats.php:806:            ->where('managed_environment_id', $tenantId)
app/Support/Baselines/BaselineCompareStats.php:815:            ->where('managed_environment_id', $tenantId)
tests/Feature/Filament/InventoryCoverageRunContinuityTest.php:19:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/InventoryCoverageRunContinuityTest.php:48:        ->get(InventoryCoverage::getUrl(tenant: $tenant))
tests/Feature/Filament/InventoryCoverageRunContinuityTest.php:64:        ->get(InventoryCoverage::getUrl(tenant: $tenant))
tests/Feature/Filament/InventoryCoverageRunContinuityTest.php:70:        ->get(InventoryItemResource::getUrl('index', tenant: $tenant))
tests/Feature/Filament/InventoryCoverageRunContinuityTest.php:85:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/InventoryCoverageRunContinuityTest.php:90:        ->get(InventoryItemResource::getUrl('view', ['record' => $item], tenant: $tenant))
tests/Feature/Filament/InventoryCoverageRunContinuityTest.php:101:        ->get(InventoryItemResource::getUrl('index', tenant: $tenant))
app/Services/Providers/CredentialManager.php:47:        $targetScopeIdentifier = $payload['managed_environment_id'] ?? null;
app/Services/Providers/CredentialManager.php:52:            && $targetScopeIdentifier !== $connection->entra_tenant_id
tests/Feature/Filament/WorkspaceOverviewPermissionVisibilityTest.php:165:        ->and($items->get('backup_health')['url'])->toStartWith(EnvironmentDashboard::getUrl(tenant: $backupTenant).'?arrival=')
tests/Feature/Filament/WorkspaceOverviewPermissionVisibilityTest.php:170:        ->and($items->get('recovery_evidence')['url'])->toStartWith(EnvironmentDashboard::getUrl(tenant: $recoveryTenant).'?arrival=');
tests/Unit/ManagedEnvironmentPermissionServiceTest.php:35:        'managed_environment_id' => 'tenant-ok',
tests/Unit/ManagedEnvironmentPermissionServiceTest.php:43:            'managed_environment_id' => $tenant->id,
tests/Unit/ManagedEnvironmentPermissionServiceTest.php:52:    expect(ManagedEnvironmentPermission::where('managed_environment_id', $tenant->id)->where('status', 'granted')->count())
tests/Unit/ManagedEnvironmentPermissionServiceTest.php:68:        'managed_environment_id' => 'tenant-missing',
tests/Unit/ManagedEnvironmentPermissionServiceTest.php:76:        'managed_environment_id' => $tenant->id,
tests/Unit/ManagedEnvironmentPermissionServiceTest.php:89:            'managed_environment_id' => $tenant->id,
tests/Unit/ManagedEnvironmentPermissionServiceTest.php:104:        'managed_environment_id' => 'tenant-error',
tests/Unit/ManagedEnvironmentPermissionServiceTest.php:123:        'managed_environment_id' => $tenant->id,
tests/Unit/ManagedEnvironmentPermissionServiceTest.php:148:        'managed_environment_id' => $tenant->id,
tests/Unit/ManagedEnvironmentPermissionServiceTest.php:173:        'managed_environment_id' => $tenant->id,
tests/Unit/ManagedEnvironmentPermissionServiceTest.php:184:        ->select(['id', 'managed_environment_id', 'external_id', 'name', 'status', 'environment'])
tests/Unit/ManagedEnvironmentPermissionServiceTest.php:192:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Unit/ManagedEnvironmentPermissionServiceTest.php:200:            'managed_environment_id' => 'tenant-no-workspace',
tests/Unit/ManagedEnvironmentPermissionServiceTest.php:211:    expect(ManagedEnvironmentPermission::query()->where('managed_environment_id', (int) $tenant->getKey())->count())->toBe(0);
tests/Feature/Baselines/BaselineCompareCoverageGuardTest.php:84:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Baselines/BaselineCompareCoverageGuardTest.php:104:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Baselines/BaselineCompareCoverageGuardTest.php:144:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/Baselines/BaselineCompareCoverageGuardTest.php:186:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Baselines/BaselineCompareCoverageGuardTest.php:226:            ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/Baselines/BaselineCompareCoverageGuardTest.php:249:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Baselines/BaselineCompareCoverageGuardTest.php:269:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Baselines/BaselineCompareCoverageGuardTest.php:309:            ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/Baselines/BaselineCompareCoverageGuardTest.php:367:            ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/Baselines/BaselineCompareCoverageGuardTest.php:434:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Baselines/BaselineCompareCoverageGuardTest.php:480:            ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/Filament/TenantRegistryTriageReviewStateTest.php:177:            ->where('managed_environment_id', (int) $actionTenant->getKey())
tests/Feature/Filament/TenantRegistryTriageReviewStateTest.php:184:            ->where('managed_environment_id', (int) $actionTenant->getKey())
tests/Feature/Filament/TenantRegistryTriageReviewStateTest.php:218:        ->where('managed_environment_id', (int) $actionTenant->getKey())
tests/Feature/Filament/TenantRegistryTriageReviewStateTest.php:225:            ->where('managed_environment_id', (int) $actionTenant->getKey())
tests/Feature/System/Spec113/SystemLoginThrottleTest.php:22:        'managed_environment_id' => null,
tests/Feature/System/Spec113/SystemLoginThrottleTest.php:53:        ->where('managed_environment_id', $platformTenant->getKey())
tests/Feature/System/Spec113/SystemLoginThrottleTest.php:60:        ->where('managed_environment_id', $platformTenant->getKey())
tests/Unit/PolicySnapshotServiceTest.php:17:        'managed_environment_id' => $tenantIdentifier,
tests/Unit/PolicySnapshotServiceTest.php:24:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Unit/PolicySnapshotServiceTest.php:28:        'entra_tenant_id' => $tenantIdentifier,
tests/Unit/PolicySnapshotServiceTest.php:326:        'managed_environment_id' => $tenant->id,
tests/Unit/PolicySnapshotServiceTest.php:357:        'managed_environment_id' => $tenant->id,
tests/Unit/PolicySnapshotServiceTest.php:391:        'managed_environment_id' => $tenant->id,
tests/Unit/PolicySnapshotServiceTest.php:427:        'managed_environment_id' => $tenant->id,
tests/Unit/PolicySnapshotServiceTest.php:467:        'managed_environment_id' => $tenant->id,
tests/Unit/PolicySnapshotServiceTest.php:500:        'managed_environment_id' => $tenant->id,
tests/Unit/PolicySnapshotServiceTest.php:535:        'managed_environment_id' => $tenant->id,
tests/Unit/PolicySnapshotServiceTest.php:575:        'managed_environment_id' => $tenant->id,
tests/Unit/PolicySnapshotServiceTest.php:651:        'managed_environment_id' => $tenant->id,
tests/Unit/PolicySnapshotServiceTest.php:720:        'managed_environment_id' => $tenant->id,
tests/Feature/Baselines/BaselineGapContractCleanupTest.php:18:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Baselines/BaselineGapContractCleanupTest.php:39:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Baselines/BaselineGapContractCleanupTest.php:60:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Baselines/BaselineGapContractCleanupTest.php:88:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Baselines/BaselineGapContractCleanupTest.php:109:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Baselines/BaselineGapContractCleanupTest.php:120:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/TenantSetupTest.php:30:        'managed_environment_id' => 'tenant-guid',
tests/Feature/Filament/TenantSetupTest.php:40:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/TenantSetupTest.php:43:        'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Feature/Filament/TenantSetupTest.php:61:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/Filament/TenantSetupTest.php:85:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/TenantSetupTest.php:96:        'managed_environment_id' => 'tenant-error',
tests/Feature/Filament/TenantSetupTest.php:106:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/TenantSetupTest.php:109:        'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Feature/Filament/TenantSetupTest.php:118:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/Filament/TenantSetupTest.php:138:        'managed_environment_id' => 'tenant-ui',
tests/Feature/Filament/TenantSetupTest.php:150:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/TenantSetupTest.php:169:        'managed_environment_id' => 'tenant-ui-list',
tests/Feature/Filament/TenantSetupTest.php:192:        'managed_environment_id' => 'tenant-ui-archive',
app/Support/EnvironmentDashboard/EnvironmentDashboardSummaryBuilder.php:250:            ->where('managed_environment_id', (int) $tenant->getKey())
app/Support/EnvironmentDashboard/EnvironmentDashboardSummaryBuilder.php:260:            ->where('managed_environment_id', (int) $tenant->getKey())
app/Support/EnvironmentDashboard/EnvironmentDashboardSummaryBuilder.php:269:            ->where('managed_environment_id', (int) $tenant->getKey())
app/Support/EnvironmentDashboard/EnvironmentDashboardSummaryBuilder.php:281:            ->where('managed_environment_id', (int) $tenant->getKey())
app/Support/EnvironmentDashboard/EnvironmentDashboardSummaryBuilder.php:305:            ->where('managed_environment_id', (int) $tenant->getKey())
app/Support/EnvironmentDashboard/EnvironmentDashboardSummaryBuilder.php:519:            ->where('managed_environment_id', (int) $tenant->getKey())
app/Support/EnvironmentDashboard/EnvironmentDashboardSummaryBuilder.php:1138:            url: $canOpen ? FindingResource::getUrl('index', $parameters, tenant: $tenant) : null,
app/Support/EnvironmentDashboard/EnvironmentDashboardSummaryBuilder.php:1152:            url: $canOpen ? FindingExceptionResource::getUrl('index', tenant: $tenant) : null,
app/Support/EnvironmentDashboard/EnvironmentDashboardSummaryBuilder.php:1204:                ? EvidenceSnapshotResource::getUrl('view', ['record' => $snapshot], tenant: $tenant)
app/Support/EnvironmentDashboard/EnvironmentDashboardSummaryBuilder.php:1205:                : EvidenceSnapshotResource::getUrl('index', tenant: $tenant);
app/Support/EnvironmentDashboard/EnvironmentDashboardSummaryBuilder.php:1236:                ? ReviewPackResource::getUrl('view', ['record' => $reviewPack], tenant: $tenant)
app/Support/EnvironmentDashboard/EnvironmentDashboardSummaryBuilder.php:1278:            ->where('managed_environment_id', (int) $tenant->getKey())
app/Support/EnvironmentDashboard/EnvironmentDashboardSummaryBuilder.php:1448:            url: $canOpen ? BaselineCompareLanding::getUrl(tenant: $tenant) : null,
app/Support/EnvironmentDashboard/EnvironmentDashboardSummaryBuilder.php:1476:                ? BackupSetResource::getUrl('view', ['record' => $target->recordId], tenant: $tenant)
app/Support/EnvironmentDashboard/EnvironmentDashboardSummaryBuilder.php:1477:                : BackupSetResource::getUrl('index', tenant: $tenant),
app/Support/EnvironmentDashboard/EnvironmentDashboardSummaryBuilder.php:1478:            BackupHealthActionTarget::SURFACE_BACKUP_SETS_INDEX => BackupSetResource::getUrl('index', tenant: $tenant),
app/Support/EnvironmentDashboard/EnvironmentDashboardSummaryBuilder.php:1479:            BackupHealthActionTarget::SURFACE_BACKUP_SCHEDULES_INDEX => BackupScheduleResource::getUrl('index', tenant: $tenant),
tests/Unit/Alerts/AlertRetryPolicyTest.php:32:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/PolicyProviderMissingUiTest.php:20:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/Filament/PolicyProviderMissingUiTest.php:27:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/Filament/PolicyProviderMissingUiTest.php:34:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/Filament/PolicyProviderMissingUiTest.php:44:        ->set('tableFilters.visibility.value', 'provider_missing')
tests/Feature/Filament/PolicyProviderMissingUiTest.php:47:        ->set('tableFilters.visibility.value', 'ignored')
tests/Feature/Filament/PolicyProviderMissingUiTest.php:62:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/Filament/PolicyProviderMissingUiTest.php:70:        ->set('tableFilters.visibility.value', 'provider_missing')
tests/Feature/System/Spec113/AllowedTenantUniverseTest.php:15:        'managed_environment_id' => null,
tests/Feature/System/Spec113/AllowedTenantUniverseTest.php:35:        'managed_environment_id' => null,
tests/Feature/System/Spec113/AllowedTenantUniverseTest.php:50:        'managed_environment_id' => null,
tests/Feature/Filament/SettingsCatalogPolicyNormalizedDisplayTest.php:15:        'managed_environment_id' => 'local-tenant',
tests/Feature/Filament/SettingsCatalogPolicyNormalizedDisplayTest.php:24:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/SettingsCatalogPolicyNormalizedDisplayTest.php:32:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/SettingsCatalogPolicyNormalizedDisplayTest.php:94:        ->get(PolicyResource::getUrl('view', ['record' => $policy], tenant: $tenant));
tests/Feature/Filament/SettingsCatalogPolicyNormalizedDisplayTest.php:106:        ->get(PolicyVersionResource::getUrl('view', ['record' => $version], tenant: $tenant));
tests/Feature/Baselines/BaselineCaptureTest.php:71:    expect($run->managed_environment_id)->toBe((int) $tenant->getKey());
tests/Feature/Baselines/BaselineCaptureTest.php:75:    expect($context['source_environment_id'])->toBe((int) $tenant->getKey());
tests/Feature/Baselines/BaselineCaptureTest.php:297:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/Baselines/BaselineCaptureTest.php:306:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/Baselines/BaselineCaptureTest.php:315:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/Baselines/BaselineCaptureTest.php:331:            'source_environment_id' => (int) $tenant->getKey(),
tests/Feature/Baselines/BaselineCaptureTest.php:470:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/Baselines/BaselineCaptureTest.php:488:            'source_environment_id' => (int) $tenant->getKey(),
tests/Feature/Baselines/BaselineCaptureTest.php:504:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Baselines/BaselineCaptureTest.php:513:            'source_environment_id' => (int) $tenant->getKey(),
tests/Feature/Baselines/BaselineCaptureTest.php:598:            'source_environment_id' => (int) $tenant->getKey(),
tests/Feature/Baselines/BaselineCaptureTest.php:646:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/Baselines/BaselineCaptureTest.php:653:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/Baselines/BaselineCaptureTest.php:661:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/Baselines/BaselineCaptureTest.php:674:            'source_environment_id' => (int) $tenant->getKey(),
tests/Unit/Alerts/AlertQuietHoursTest.php:48:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Unit/BulkActionPermissionTest.php:15:    $policies = Policy::factory()->count(2)->create(['managed_environment_id' => $tenant->id]);
tests/Feature/Filament/PolicyVersionQualityTruthSurfaceTest.php:20:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/PolicyVersionQualityTruthSurfaceTest.php:27:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/PolicyVersionQualityTruthSurfaceTest.php:35:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/PolicyVersionQualityTruthSurfaceTest.php:45:    $this->get(PolicyVersionResource::getUrl('index', tenant: $tenant))
tests/Feature/Filament/PolicyVersionQualityTruthSurfaceTest.php:61:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/PolicyVersionQualityTruthSurfaceTest.php:68:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/PolicyVersionQualityTruthSurfaceTest.php:81:    $this->get(PolicyVersionResource::getUrl('view', ['record' => $version], tenant: $tenant))
tests/Feature/Filament/WindowsUpdateRingRestoreTest.php:22:            'managed_environment_id' => 'tenant-1',
tests/Feature/Filament/WindowsUpdateRingRestoreTest.php:28:            'managed_environment_id' => $tenant->id,
tests/Feature/Filament/WindowsUpdateRingRestoreTest.php:98:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/WindowsUpdateRingRestoreTest.php:106:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/WindowsUpdateRingRestoreTest.php:126:        'managed_environment_id' => $tenant->id,
tests/Unit/Alerts/AlertSuppressionTest.php:39:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Baselines/BaselineCompareProtectedChangeTest.php:53:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Baselines/BaselineCompareProtectedChangeTest.php:114:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Baselines/BaselineCompareProtectedChangeTest.php:129:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Baselines/BaselineCompareProtectedChangeTest.php:151:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Baselines/BaselineCompareProtectedChangeTest.php:182:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/Filament/DashboardKpisWidgetTest.php:44:                'url' => $stat->getUrl(),
tests/Feature/Filament/DashboardKpisWidgetTest.php:83:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/DashboardKpisWidgetTest.php:207:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/DashboardKpisWidgetTest.php:216:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/DashboardKpisWidgetTest.php:225:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/DashboardKpisWidgetTest.php:233:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/DashboardKpisWidgetTest.php:253:            'url' => FindingResource::getUrl('index', [
tests/Feature/Filament/DashboardKpisWidgetTest.php:259:        ->and($stats['Overdue findings']['url'])->toBe(FindingResource::getUrl('index', [
tests/Feature/Filament/DashboardKpisWidgetTest.php:306:        'url' => BackupSetResource::getUrl('index', [
tests/Feature/Filament/DashboardKpisWidgetTest.php:336:        'url' => BackupSetResource::getUrl('view', [
tests/Feature/Filament/DashboardKpisWidgetTest.php:370:        'url' => BackupSetResource::getUrl('view', [
tests/Feature/Filament/DashboardKpisWidgetTest.php:431:        'url' => RestoreRunResource::getUrl('index', [
tests/Feature/Filament/DashboardKpisWidgetTest.php:465:        'url' => RestoreRunResource::getUrl('view', [
tests/Feature/Filament/DashboardKpisWidgetTest.php:505:        'url' => BackupScheduleResource::getUrl('index', [
tests/Unit/RbacOnboardingServiceTest.php:19:        'managed_environment_id' => '00000000-0000-0000-0000-000000000000',
tests/Unit/RbacOnboardingServiceTest.php:27:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Unit/RbacOnboardingServiceTest.php:31:        'entra_tenant_id' => (string) $tenant->managed_environment_id,
app/Support/SupportDiagnostics/SupportDiagnosticBundleBuilder.php:193:                'managed_environment_id' => $tenant instanceof ManagedEnvironment ? (int) $tenant->getKey() : null,
app/Support/SupportDiagnostics/SupportDiagnosticBundleBuilder.php:286:            ->where('managed_environment_id', (int) $tenant->getKey())
app/Support/SupportDiagnostics/SupportDiagnosticBundleBuilder.php:303:                ->where('managed_environment_id', (int) $tenant->getKey())
app/Support/SupportDiagnostics/SupportDiagnosticBundleBuilder.php:317:            ->where('managed_environment_id', (int) $tenant->getKey())
app/Support/SupportDiagnostics/SupportDiagnosticBundleBuilder.php:332:            ->where('managed_environment_id', (int) $tenant->getKey())
app/Support/SupportDiagnostics/SupportDiagnosticBundleBuilder.php:348:            ->where('managed_environment_id', (int) $tenant->getKey())
app/Support/SupportDiagnostics/SupportDiagnosticBundleBuilder.php:370:            ->where('managed_environment_id', (int) $tenant->getKey())
app/Support/SupportDiagnostics/SupportDiagnosticBundleBuilder.php:381:            ->where('managed_environment_id', (int) $tenant->getKey())
app/Support/SupportDiagnostics/SupportDiagnosticBundleBuilder.php:391:            ->where('managed_environment_id', (int) $tenant->getKey())
app/Support/SupportDiagnostics/SupportDiagnosticBundleBuilder.php:406:                ->where('managed_environment_id', (int) $tenant->getKey())
app/Support/SupportDiagnostics/SupportDiagnosticBundleBuilder.php:416:            ->where('managed_environment_id', (int) $tenant->getKey())
app/Support/SupportDiagnostics/SupportDiagnosticBundleBuilder.php:426:            ->where('managed_environment_id', (int) $tenant->getKey())
app/Support/SupportDiagnostics/SupportDiagnosticBundleBuilder.php:442:            ->where('managed_environment_id', (int) $tenant->getKey())
app/Support/SupportDiagnostics/SupportDiagnosticBundleBuilder.php:590:                    url: ProviderConnectionResource::getUrl('view', ['record' => $connection], panel: 'admin'),
app/Support/SupportDiagnostics/SupportDiagnosticBundleBuilder.php:660:                        ? FindingResource::getUrl('view', ['record' => $finding], tenant: $tenant)
app/Support/SupportDiagnostics/SupportDiagnosticBundleBuilder.php:779:                        ? ReviewPackResource::getUrl('view', ['record' => $pack], tenant: $tenant)
app/Support/SupportDiagnostics/SupportDiagnosticBundleBuilder.php:820:                    url: route('admin.monitoring.audit-log', ['event' => (int) $auditLog->getKey()]),
tests/Feature/Filament/BaselineCompareLandingStartSurfaceTest.php:31:    $this->get(BaselineCompareLanding::getUrl(tenant: $tenant, panel: 'admin'))
tests/Feature/Filament/BaselineCompareLandingStartSurfaceTest.php:40:        ->get(BaselineCompareLanding::getUrl(tenant: $tenant, panel: 'admin'))
tests/Feature/Filament/BaselineCompareLandingStartSurfaceTest.php:66:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/BaselineCompareLandingStartSurfaceTest.php:105:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/BaselineCompareLandingStartSurfaceTest.php:117:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/Filament/BaselineCompareLandingStartSurfaceTest.php:147:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/BaselineCompareLandingStartSurfaceTest.php:183:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/BaselineCompareLandingStartSurfaceTest.php:243:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/BaselineCompareLandingStartSurfaceTest.php:288:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/BaselineCompareLandingStartSurfaceTest.php:323:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/BaselineCompareLandingStartSurfaceTest.php:328:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/BaselineCompareLandingStartSurfaceTest.php:377:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/BaselineCompareLandingStartSurfaceTest.php:382:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/BaselineCompareLandingStartSurfaceTest.php:426:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/BaselineCompareLandingStartSurfaceTest.php:431:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/BaselineCompareLandingStartSurfaceTest.php:473:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/BaselineCompareLandingStartSurfaceTest.php:478:        'managed_environment_id' => (int) $tenant->getKey(),
app/Services/Providers/ProviderIdentityResolver.php:133:            redirectUri: trim((string) route('admin.consent.callback')),
tests/Feature/System/Spec114/DirectoryTenantsTest.php:53:        'managed_environment_id' => (int) $criticalTenant->getKey(),
tests/Feature/System/Spec114/DirectoryTenantsTest.php:63:        'managed_environment_id' => (int) $warningTenant->getKey(),
tests/Feature/System/Spec114/DirectoryTenantsTest.php:73:        'managed_environment_id' => (int) $healthyTenant->getKey(),
tests/Feature/System/Spec114/DirectoryTenantsTest.php:83:        'managed_environment_id' => (int) $healthyTenant->getKey(),
tests/Feature/System/Spec114/DirectoryTenantsTest.php:123:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/BaselineCompareCoverageBannerTest.php:35:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/BaselineCompareCoverageBannerTest.php:47:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/BaselineCompareCoverageBannerTest.php:86:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/BaselineCompareCoverageBannerTest.php:102:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/BaselineCompareCoverageBannerTest.php:135:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/BaselineCompareCoverageBannerTest.php:158:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/PolicyVersionListFiltersTest.php:30:        'managed_environment_id' => (int) $tenantA->getKey(),
tests/Feature/Filament/PolicyVersionListFiltersTest.php:38:        'managed_environment_id' => (int) $tenantB->getKey(),
tests/Feature/Filament/PolicyVersionListFiltersTest.php:46:        'managed_environment_id' => (int) $tenantA->getKey(),
tests/Feature/Filament/PolicyVersionListFiltersTest.php:54:        'managed_environment_id' => (int) $tenantA->getKey(),
tests/Feature/Filament/PolicyVersionListFiltersTest.php:62:        'managed_environment_id' => (int) $tenantB->getKey(),
tests/Feature/Filament/PolicyVersionListFiltersTest.php:83:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/PolicyVersionListFiltersTest.php:91:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/PolicyVersionListFiltersTest.php:98:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/PolicyVersionListFiltersTest.php:106:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/PolicyVersionListFiltersTest.php:117:        ->set('tableFilters.captured_at.from', now()->subDays(2)->toDateString())
tests/Feature/Filament/PolicyVersionListFiltersTest.php:118:        ->set('tableFilters.captured_at.until', now()->toDateString())
tests/Feature/Filament/PolicyVersionListFiltersTest.php:137:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/PolicyVersionListFiltersTest.php:145:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/PolicyVersionListFiltersTest.php:153:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/PolicyVersionListFiltersTest.php:172:        ->set('tableFilters.platform.value', null)
tests/Feature/Baselines/BaselineResolutionDeterminismTest.php:80:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Baselines/BaselineResolutionDeterminismTest.php:91:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Baselines/BaselineResolutionDeterminismTest.php:103:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Baselines/BaselineResolutionDeterminismTest.php:109:            'source_environment_id' => (int) $tenant->getKey(),
tests/Feature/Baselines/BaselineResolutionDeterminismTest.php:122:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Baselines/BaselineResolutionDeterminismTest.php:146:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Baselines/BaselineResolutionDeterminismTest.php:165:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/BulkDeleteBackupSetsTest.php:19:            'managed_environment_id' => $tenant->id,
tests/Feature/BulkDeleteBackupSetsTest.php:28:            'managed_environment_id' => $tenant->id,
tests/Feature/BulkDeleteBackupSetsTest.php:47:        ->where('managed_environment_id', $tenant->id)
tests/Feature/BulkDeleteBackupSetsTest.php:62:        'managed_environment_id' => $tenant->id,
tests/Feature/BulkDeleteBackupSetsTest.php:69:        'managed_environment_id' => $tenant->id,
tests/Feature/BulkDeleteBackupSetsTest.php:91:            'managed_environment_id' => $tenant->id,
tests/Feature/Filament/TenantContextResolvedReferenceCarryoverTest.php:41:    $response = $this->get(FindingResource::getUrl('view', ['record' => $finding], tenant: $tenant));
tests/Feature/Filament/TenantContextResolvedReferenceCarryoverTest.php:45:        ->assertSee('nav%5Bmanaged_environment_id%5D='.(int) $tenant->getKey(), false);
tests/Feature/Baselines/BaselineProfileWorkspaceOwnershipTest.php:41:    $workspaceUrl = BaselineProfileResource::getUrl(panel: 'admin');
tests/Feature/Baselines/BaselineProfileWorkspaceOwnershipTest.php:47:    $this->get(BaselineProfileResource::getUrl('view', ['record' => $profile], panel: 'admin'))->assertOk();
tests/Unit/PolicyCaptureOrchestratorTest.php:19:        'managed_environment_id' => 'tenant-1',
tests/Unit/PolicyCaptureOrchestratorTest.php:28:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/BaselineSnapshotRbacRoleDefinitionsTest.php:48:        ->get(BaselineSnapshotResource::getUrl('view', ['record' => $snapshot], panel: 'admin'))
tests/Unit/MicrosoftGraphClientTest.php:13:    config()->set('graph.managed_environment_id', 'tenant-id');
tests/Feature/Filament/FindingExceptionHeaderDisciplineTest.php:18:function findingExceptionHeaderActions(Testable $component): array
tests/Feature/Filament/FindingExceptionHeaderDisciplineTest.php:22:    if ($instance->getCachedHeaderActions() === []) {
tests/Feature/Filament/FindingExceptionHeaderDisciplineTest.php:23:        $instance->cacheInteractsWithHeaderActions();
tests/Feature/Filament/FindingExceptionHeaderDisciplineTest.php:26:    return $instance->getCachedHeaderActions();
tests/Feature/Filament/FindingExceptionHeaderDisciplineTest.php:31:    return collect(findingExceptionHeaderActions($component))
app/Support/RestoreSafety/RestoreSafetyResolver.php:537:        $candidatesByTenant = $this->dashboardRecoveryCandidatesForTenants($tenantIds)->groupBy('managed_environment_id');
app/Support/RestoreSafety/RestoreSafetyResolver.php:657:            ->whereIn('managed_environment_id', $tenantIds)
app/Support/RestoreSafety/RestoreSafetyResolver.php:658:            ->orderBy('managed_environment_id')
app/Support/RestoreSafety/RestoreSafetyResolver.php:661:            ->get(['id', 'managed_environment_id'])
app/Support/RestoreSafety/RestoreSafetyResolver.php:662:            ->groupBy('managed_environment_id')
app/Support/RestoreSafety/RestoreSafetyResolver.php:674:            ->orderBy('managed_environment_id')
app/Support/RestoreSafety/RestoreSafetyResolver.php:686:            ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/Baselines/BaselineCompareCoverageProofGuardTest.php:92:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Baselines/BaselineCompareCoverageProofGuardTest.php:112:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Baselines/BaselineCompareCoverageProofGuardTest.php:149:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/Filament/EditTenantHeaderDisciplineTest.php:16:function editTenantHeaderActions(Testable $component): array
tests/Feature/Filament/EditTenantHeaderDisciplineTest.php:20:    if ($instance->getCachedHeaderActions() === []) {
tests/Feature/Filament/EditTenantHeaderDisciplineTest.php:21:        $instance->cacheInteractsWithHeaderActions();
tests/Feature/Filament/EditTenantHeaderDisciplineTest.php:24:    return $instance->getCachedHeaderActions();
tests/Feature/Filament/EditTenantHeaderDisciplineTest.php:29:    return collect(editTenantHeaderActions($component))
tests/Feature/Filament/EditTenantHeaderDisciplineTest.php:38:    return collect(editTenantHeaderActions($component))
tests/Feature/Filament/EditTenantHeaderDisciplineTest.php:57:            'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Feature/System/Spec114/OpsTriageActionsTest.php:33:        'managed_environment_id' => null,
tests/Feature/System/Spec114/OpsTriageActionsTest.php:62:        ->assertActionExists('go_to_runbooks', fn (Action $action): bool => $action->getLabel() === 'Go to runbooks' && $action->getUrl() === Runbooks::getUrl(panel: 'system'));
tests/Feature/System/Spec114/OpsTriageActionsTest.php:69:            'url' => $action->getUrl(),
tests/Feature/System/Spec114/OpsTriageActionsTest.php:82:                'url' => Runbooks::getUrl(panel: 'system'),
tests/Feature/System/Spec114/OpsTriageActionsTest.php:107:        ->assertActionExists('show_all_operations', fn (Action $action): bool => $action->getLabel() === 'Show all operations' && $action->getUrl() === SystemOperationRunLinks::index());
tests/Feature/System/Spec114/OpsTriageActionsTest.php:114:            'url' => $action->getUrl(),
tests/Feature/System/Spec114/OpsTriageActionsTest.php:159:        ->assertActionExists('show_all_operations', fn (Action $action): bool => $action->getLabel() === 'Show all operations' && $action->getUrl() === SystemOperationRunLinks::index());
tests/Feature/System/Spec114/OpsTriageActionsTest.php:166:            'url' => $action->getUrl(),
tests/Feature/System/Spec114/OpsTriageActionsTest.php:216:        ->assertActionExists('show_all_operations', fn (Action $action): bool => $action->getLabel() === 'Show all operations' && $action->getUrl() === SystemOperationRunLinks::index())
tests/Feature/System/Spec114/OpsTriageActionsTest.php:218:        ->assertActionExists('go_to_runbooks', fn (Action $action): bool => $action->getLabel() === 'Go to runbooks' && $action->getUrl() === Runbooks::getUrl(panel: 'system'))
tests/Feature/System/Spec114/OpsTriageActionsTest.php:321:        ->assertActionExists('show_all_operations', fn (Action $action): bool => $action->getLabel() === 'Show all operations' && $action->getUrl() === SystemOperationRunLinks::index())
tests/Feature/System/Spec114/OpsTriageActionsTest.php:323:        ->assertActionExists('go_to_runbooks', fn (Action $action): bool => $action->getLabel() === 'Go to runbooks' && $action->getUrl() === Runbooks::getUrl(panel: 'system'))
tests/Feature/Filament/WorkspaceOverviewAuthorizationTest.php:33:        ->get(route('admin.workspace.home', ['workspace' => $workspace]))
tests/Feature/Filament/WorkspaceOverviewAuthorizationTest.php:58:        ->and($overview['calmness']['next_action']['url'])->toContain('tenant_scope=all')
tests/Feature/Filament/WorkspaceOverviewAuthorizationTest.php:121:        ->and($metrics->get('backup_attention_tenants')['destination_url'])->toStartWith(EnvironmentDashboard::getUrl(tenant: $backupTenant).'?arrival=')
tests/Feature/Filament/WorkspaceOverviewAuthorizationTest.php:125:        ->and($metrics->get('recovery_attention_tenants')['destination_url'])->toStartWith(EnvironmentDashboard::getUrl(tenant: $recoveryTenant).'?arrival=');
tests/Feature/Filament/WorkspaceOverviewAuthorizationTest.php:182:        ->and($metrics->get('backup_attention_tenants')['destination_url'])->toStartWith(EnvironmentDashboard::getUrl(tenant: $visibleBackupTenant).'?arrival=')
tests/Feature/Filament/WorkspaceOverviewAuthorizationTest.php:185:        ->and($metrics->get('recovery_attention_tenants')['destination_url'])->toStartWith(EnvironmentDashboard::getUrl(tenant: $visibleRecoveryTenant).'?arrival=');
tests/Feature/Baselines/BaselineSupportCapabilityGuardTest.php:66:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/ManagedEnvironmentAccessScopeManagementTest.php:48:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/Filament/ManagedEnvironmentAccessScopeManagementTest.php:76:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/ManagedEnvironmentAccessScopeManagementTest.php:113:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/RestoreRunListContinuityTest.php:19:    $this->get(RestoreRunResource::getUrl('index', [
tests/Feature/Filament/RestoreRunListContinuityTest.php:45:    $this->get(RestoreRunResource::getUrl('index', [
tests/Unit/Operations/QueuedExecutionLegitimacyGateTest.php:22:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Unit/Operations/QueuedExecutionLegitimacyGateTest.php:40:            'tenant_scope' => 'passed',
tests/Unit/Operations/QueuedExecutionLegitimacyGateTest.php:52:                'managed_environment_id' => (int) $tenant->getKey(),
tests/Unit/Operations/QueuedExecutionLegitimacyGateTest.php:66:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Unit/Operations/QueuedExecutionLegitimacyGateTest.php:69:        'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Unit/Operations/QueuedExecutionLegitimacyGateTest.php:73:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Unit/Operations/QueuedExecutionLegitimacyGateTest.php:95:            'tenant_scope' => 'passed',
tests/Unit/Operations/QueuedExecutionLegitimacyGateTest.php:110:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Unit/Operations/QueuedExecutionLegitimacyGateTest.php:113:        'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Unit/Operations/QueuedExecutionLegitimacyGateTest.php:117:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Unit/Operations/QueuedExecutionLegitimacyGateTest.php:140:            'tenant_scope' => 'passed',
tests/Unit/Operations/QueuedExecutionLegitimacyGateTest.php:151:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Unit/Operations/QueuedExecutionLegitimacyGateTest.php:170:            'tenant_scope' => 'passed',
tests/Unit/Operations/QueuedExecutionLegitimacyGateTest.php:179:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Unit/Operations/QueuedExecutionLegitimacyGateTest.php:204:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Unit/Operations/QueuedExecutionLegitimacyGateTest.php:234:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Unit/Operations/QueuedExecutionLegitimacyGateTest.php:258:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Unit/Operations/QueuedExecutionLegitimacyGateTest.php:279:            'tenant_scope' => 'passed',
tests/Unit/Operations/QueuedExecutionLegitimacyGateTest.php:288:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Unit/Operations/QueuedExecutionLegitimacyGateTest.php:309:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Unit/Operations/QueuedExecutionLegitimacyGateTest.php:332:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/System/Spec114/AccessLogsTest.php:20:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/System/Spec114/AccessLogsTest.php:29:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/System/Spec114/AccessLogsTest.php:38:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/System/Spec114/AccessLogsTest.php:47:        'managed_environment_id' => null,
tests/Feature/System/Spec114/AccessLogsTest.php:57:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Baselines/BaselineCompareResumeTokenTest.php:72:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Baselines/BaselineCompareResumeTokenTest.php:87:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Baselines/BaselineCompareResumeTokenTest.php:114:                'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Baselines/BaselineCompareResumeTokenTest.php:226:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/EnterpriseDetailTemplateRegressionTest.php:53:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/EnterpriseDetailTemplateRegressionTest.php:64:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/EnterpriseDetailTemplateRegressionTest.php:78:    $this->get(BaselineSnapshotResource::getUrl('view', ['record' => $snapshot], panel: 'admin'))
tests/Feature/Filament/EnterpriseDetailTemplateRegressionTest.php:82:    $this->get(BackupSetResource::getUrl('view', ['record' => $backupSet], tenant: $tenant))
tests/Feature/Filament/EnterpriseDetailTemplateRegressionTest.php:86:    $this->get(EntraGroupResource::getUrl('view', ['record' => $group], tenant: $tenant))
tests/Unit/BulkRestoreRunRestoreJobTest.php:18:        'managed_environment_id' => $tenant->id,
tests/Unit/BulkRestoreRunRestoreJobTest.php:25:        'managed_environment_id' => $tenant->id,
tests/Unit/BulkRestoreRunRestoreJobTest.php:36:        'managed_environment_id' => $tenant->id,
tests/Unit/BulkRestoreRunRestoreJobTest.php:73:        'managed_environment_id' => $tenant->id,
tests/Unit/BulkRestoreRunRestoreJobTest.php:80:        'managed_environment_id' => $tenant->id,
tests/Unit/BulkRestoreRunRestoreJobTest.php:88:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/BaselineSnapshotListFiltersTest.php:99:        ->set('tableFilters.captured_at.from', now()->subDays(2)->toDateString())
tests/Feature/Filament/BaselineSnapshotListFiltersTest.php:100:        ->set('tableFilters.captured_at.until', now()->toDateString())
tests/Feature/Filament/BaselineSnapshotListFiltersTest.php:136:        ->set('tableFilters.captured_at.from', now()->subDays(2)->toDateString())
tests/Feature/Filament/BaselineSnapshotListFiltersTest.php:137:        ->set('tableFilters.captured_at.until', now()->toDateString())
tests/Feature/Filament/BaselineSnapshotListFiltersTest.php:142:        ->set('tableFilters.lifecycle_state.value', null)
tests/Feature/Filament/BaselineSnapshotListFiltersTest.php:143:        ->set('tableFilters.captured_at.from', null)
tests/Feature/Filament/BaselineSnapshotListFiltersTest.php:144:        ->set('tableFilters.captured_at.until', null)
tests/Unit/TenantCurrentTest.php:19:        'managed_environment_id' => 'tenant-env',
tests/Unit/TenantCurrentTest.php:25:        'managed_environment_id' => 'other-tenant',
tests/Unit/TenantCurrentTest.php:54:        'managed_environment_id' => 'tenant-current',
tests/Unit/TenantCurrentTest.php:60:        'managed_environment_id' => 'tenant-inactive',
tests/Unit/TenantCurrentTest.php:77:        'managed_environment_id' => 'tenant-one',
tests/Unit/TenantCurrentTest.php:92:        'managed_environment_id' => 'tenant-first',
tests/Unit/TenantCurrentTest.php:98:        'managed_environment_id' => 'tenant-second',
tests/Unit/TenantCurrentTest.php:115:        'managed_environment_id' => 'tenant-current',
tests/Unit/TenantCurrentTest.php:121:        'managed_environment_id' => 'tenant-other',
tests/Feature/Baselines/BaselineComparePreconditionsTest.php:50:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Baselines/BaselineComparePreconditionsTest.php:75:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Baselines/BaselineComparePreconditionsTest.php:101:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Baselines/BaselineComparePreconditionsTest.php:132:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Baselines/BaselineComparePreconditionsTest.php:173:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Baselines/BaselineComparePreconditionsTest.php:205:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Baselines/BaselineComparePreconditionsTest.php:270:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Baselines/BaselineComparePreconditionsTest.php:319:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Baselines/BaselineComparePreconditionsTest.php:367:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Baselines/BaselineComparePreconditionsTest.php:405:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Baselines/BaselineComparePreconditionsTest.php:443:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/BackupItemsRelationManagerFiltersTest.php:32:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/BackupItemsRelationManagerFiltersTest.php:36:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/BackupItemsRelationManagerFiltersTest.php:40:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/BackupItemsRelationManagerFiltersTest.php:48:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/BackupItemsRelationManagerFiltersTest.php:56:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/BackupItemsRelationManagerFiltersTest.php:111:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/BackupItemsRelationManagerFiltersTest.php:115:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/BackupItemsRelationManagerFiltersTest.php:123:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/BackupItemsRelationManagerFiltersTest.php:153:        ->set('tableFilters.policy_type.value', null)
tests/Feature/Filament/BackupItemsRelationManagerFiltersTest.php:154:        ->set('tableFilters.platform.value', null)
tests/Feature/Filament/BackupItemsRelationManagerFiltersTest.php:166:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/BackupItemsRelationManagerFiltersTest.php:170:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/BackupItemsRelationManagerFiltersTest.php:180:        ->set('tableFilters.policy_type.value', 'intuneRoleDefinition');
tests/Feature/Filament/BackupItemsRelationManagerFiltersTest.php:191:        ->assertSet('tableFilters.policy_type.value', 'intuneRoleDefinition');
tests/Feature/Filament/BackupItemsRelationManagerFiltersTest.php:202:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/BackupItemsRelationManagerFiltersTest.php:206:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/System/OpsControls/AiExecutionOperationalControlTest.php:46:    $this->get(Controls::getUrl(panel: 'system'))
tests/Feature/Filament/PolicyVersionRelatedNavigationTest.php:34:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/PolicyVersionRelatedNavigationTest.php:39:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/PolicyVersionRelatedNavigationTest.php:55:    $this->get(PolicyVersionResource::getUrl('view', ['record' => $version], tenant: $tenant))
tests/Feature/Filament/PolicyVersionRelatedNavigationTest.php:58:        ->assertSee(PolicyResource::getUrl('view', ['record' => $policy], tenant: $tenant), false)
tests/Feature/Filament/PolicyVersionRelatedNavigationTest.php:59:        ->assertSee(BaselineSnapshotResource::getUrl('view', ['record' => $snapshot], panel: 'admin'), false);
tests/Feature/Filament/PolicyVersionRelatedNavigationTest.php:61:    $this->get(PolicyVersionResource::getUrl('index', tenant: $tenant))
tests/Feature/Filament/PolicyVersionRelatedNavigationTest.php:64:        ->assertSee(PolicyResource::getUrl('view', ['record' => $policy], tenant: $tenant), false);
tests/Unit/BulkPolicyVersionRestoreJobTest.php:17:    $policy = Policy::factory()->create(['managed_environment_id' => $tenant->id]);
tests/Unit/BulkPolicyVersionRestoreJobTest.php:19:        'managed_environment_id' => $tenant->id,
tests/Unit/BulkPolicyVersionRestoreJobTest.php:29:        'managed_environment_id' => $tenant->id,
tests/Unit/BulkPolicyVersionRestoreJobTest.php:65:    $policy = Policy::factory()->create(['managed_environment_id' => $tenant->id]);
tests/Unit/BulkPolicyVersionRestoreJobTest.php:67:        'managed_environment_id' => $tenant->id,
tests/Unit/BulkPolicyVersionRestoreJobTest.php:74:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/ConditionalAccessPreviewOnlyTest.php:55:        'managed_environment_id' => 'tenant-ca',
tests/Feature/Filament/ConditionalAccessPreviewOnlyTest.php:63:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/ConditionalAccessPreviewOnlyTest.php:71:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/ConditionalAccessPreviewOnlyTest.php:78:        'managed_environment_id' => $tenant->id,
tests/Feature/System/OpsControls/RemoveFindingsLifecycleBackfillControlTraceTest.php:30:    $this->get(Controls::getUrl(panel: 'system'))
tests/Feature/Baselines/BaselineCompareWhyNoFindingsReasonCodeTest.php:47:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Baselines/BaselineCompareWhyNoFindingsReasonCodeTest.php:152:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Baselines/BaselineCompareWhyNoFindingsReasonCodeTest.php:171:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Baselines/BaselineCompareWhyNoFindingsReasonCodeTest.php:234:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Baselines/BaselineCompareWhyNoFindingsReasonCodeTest.php:242:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Baselines/BaselineCompareWhyNoFindingsReasonCodeTest.php:268:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Baselines/BaselineCompareWhyNoFindingsReasonCodeTest.php:324:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Baselines/BaselineCompareWhyNoFindingsReasonCodeTest.php:345:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Baselines/BaselineCompareWhyNoFindingsReasonCodeTest.php:424:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Baselines/BaselineCompareWhyNoFindingsReasonCodeTest.php:476:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Baselines/BaselineCompareWhyNoFindingsReasonCodeTest.php:492:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Baselines/BaselineCompareWhyNoFindingsReasonCodeTest.php:565:            ->where('managed_environment_id', (int) $tenant->getKey())
tests/Unit/DependencyExtractionServiceTest.php:18:        'managed_environment_id' => $tenant->getKey(),
tests/Unit/DependencyExtractionServiceTest.php:39:    $edges = InventoryLink::query()->where('managed_environment_id', $tenant->getKey())->get();
tests/Unit/DependencyExtractionServiceTest.php:55:        'managed_environment_id' => $tenant->getKey(),
tests/Unit/DependencyExtractionServiceTest.php:88:        'managed_environment_id' => $tenant->getKey(),
tests/Unit/DependencyExtractionServiceTest.php:108:        ->where('managed_environment_id', $tenant->getKey())
tests/Unit/Policies/ProviderConnectionPolicyDedicatedTest.php:21:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Unit/Policies/ProviderConnectionPolicyDedicatedTest.php:37:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Unit/Policies/ProviderConnectionPolicyDedicatedTest.php:58:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Unit/Policies/ProviderConnectionPolicyDedicatedTest.php:88:        'managed_environment_id' => (int) $tenantB->getKey(),
tests/Feature/Filament/TenantPortfolioContextSwitchTest.php:32:    $authorizedTenant = ManagedEnvironment::factory()->create(['managed_environment_id' => 'tenant-portfolio-authorized-view']);
tests/Feature/Filament/TenantPortfolioContextSwitchTest.php:33:    $unauthorizedTenant = ManagedEnvironment::factory()->create(['managed_environment_id' => 'tenant-portfolio-unauthorized-view']);
tests/Feature/Filament/TenantPortfolioContextSwitchTest.php:42:    $authorizedTenant = ManagedEnvironment::factory()->create(['managed_environment_id' => 'tenant-portfolio-authorized-edit']);
tests/Feature/Filament/TenantPortfolioContextSwitchTest.php:43:    $unauthorizedTenant = ManagedEnvironment::factory()->create(['managed_environment_id' => 'tenant-portfolio-unauthorized-edit']);
tests/Feature/Filament/TenantPortfolioContextSwitchTest.php:48:    $this->get(ManagedEnvironmentResource::getUrl('edit', ['record' => $unauthorizedTenant], panel: 'admin'))->assertNotFound();
tests/Feature/Filament/TenantPortfolioContextSwitchTest.php:53:        'managed_environment_id' => 'tenant-portfolio-authorized',
tests/Feature/Filament/TenantPortfolioContextSwitchTest.php:58:        'managed_environment_id' => 'tenant-portfolio-unauthorized',
tests/Feature/Filament/TenantPortfolioContextSwitchTest.php:74:    $tenantA = ManagedEnvironment::factory()->create(['managed_environment_id' => 'tenant-bulk-a']);
tests/Feature/Filament/TenantPortfolioContextSwitchTest.php:79:        'managed_environment_id' => 'tenant-bulk-b',
tests/Feature/Filament/TenantPortfolioContextSwitchTest.php:96:        'managed_environment_id' => $tenantA->id,
tests/Feature/Filament/TenantPortfolioContextSwitchTest.php:106:    $tenant = ManagedEnvironment::factory()->create(['managed_environment_id' => 'tenant-bulk-readonly']);
tests/Feature/Filament/TenantPortfolioContextSwitchTest.php:129:    $tenantA = ManagedEnvironment::factory()->create(['managed_environment_id' => 'tenant-bulk-mixed-a']);
tests/Feature/Filament/TenantPortfolioContextSwitchTest.php:134:        'managed_environment_id' => 'tenant-bulk-mixed-b',
tests/Feature/Filament/TenantPortfolioContextSwitchTest.php:160:        'managed_environment_id' => $tenant->id,
tests/Unit/Providers/AdminConsentUrlFactoryTest.php:14:    config()->set('graph.managed_environment_id', 'organizations');
tests/Unit/Providers/AdminConsentUrlFactoryTest.php:17:        'managed_environment_id' => 'target-tenant-id',
tests/Unit/Providers/AdminConsentUrlFactoryTest.php:22:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Unit/Providers/AdminConsentUrlFactoryTest.php:25:        'entra_tenant_id' => 'target-tenant-id',
tests/Unit/Providers/AdminConsentUrlFactoryTest.php:45:        ->and($query['redirect_uri'] ?? null)->toBe(route('admin.consent.callback'))
tests/Unit/Providers/AdminConsentUrlFactoryTest.php:52:        'managed_environment_id' => 'dedicated-target-tenant-id',
tests/Unit/Providers/AdminConsentUrlFactoryTest.php:56:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Unit/Providers/AdminConsentUrlFactoryTest.php:59:        'entra_tenant_id' => 'dedicated-target-tenant-id',
tests/Unit/Providers/AdminConsentUrlFactoryTest.php:77:        ->and($query['redirect_uri'] ?? null)->toBe(route('admin.consent.callback'))
tests/Feature/System/OpsControls/OperationalControlManagementTest.php:43:        ->get(Controls::getUrl(panel: 'system'))
tests/Feature/System/OpsControls/OperationalControlManagementTest.php:51:    $this->get(Controls::getUrl(panel: 'system'))
tests/Feature/System/OpsControls/OperationalControlManagementTest.php:66:    $this->get(Controls::getUrl(panel: 'system'))
tests/Feature/System/OpsControls/OperationalControlManagementTest.php:150:        ->and($audits->pluck('managed_environment_id')->unique()->all())->toBe([null])
tests/Feature/System/OpsControls/OperationalControlManagementTest.php:242:        ->and($audits[0]->managed_environment_id)->toBeNull();
tests/Unit/Policies/ProviderConnectionPolicyTenantResolutionTest.php:27:        'managed_environment_id' => (int) $tenantA->getKey(),
tests/Feature/Baselines/BaselineProfileAuthorizationTest.php:25:            ->get(BaselineProfileResource::getUrl(panel: 'admin'));
tests/Feature/Baselines/BaselineProfileAuthorizationTest.php:39:            ->get(BaselineProfileResource::getUrl('view', ['record' => $profile], panel: 'admin'))
tests/Feature/Baselines/BaselineProfileAuthorizationTest.php:47:            ->get(BaselineProfileResource::getUrl(panel: 'admin'))
tests/Feature/Baselines/BaselineProfileAuthorizationTest.php:69:            ->get(BaselineProfileResource::getUrl(panel: 'admin'))
tests/Feature/Baselines/BaselineProfileAuthorizationTest.php:77:            ->get(BaselineProfileResource::getUrl('create', panel: 'admin'))
tests/Feature/Baselines/BaselineProfileAuthorizationTest.php:85:            ->get(BaselineProfileResource::getUrl('create', panel: 'admin'))
tests/Feature/Baselines/BaselineProfileAuthorizationTest.php:98:            ->get(BaselineProfileResource::getUrl('view', ['record' => $profile], panel: 'admin'))
tests/Feature/Baselines/BaselineProfileAuthorizationTest.php:111:            ->get(BaselineProfileResource::getUrl('edit', ['record' => $profile], panel: 'admin'))
tests/Feature/Baselines/BaselineProfileAuthorizationTest.php:124:            ->get(BaselineProfileResource::getUrl('edit', ['record' => $profile], panel: 'admin'))
tests/Feature/Baselines/BaselineProfileAuthorizationTest.php:147:            ->get(BaselineProfileResource::getUrl('edit', ['record' => $profile], panel: 'admin'))
tests/Feature/Baselines/BaselineProfileAuthorizationTest.php:151:            ->get(BaselineProfileResource::getUrl('edit', ['record' => $profile], panel: 'admin'))
tests/Unit/Providers/ProviderGatewayTest.php:14:        'entra_tenant_id' => 'entra-tenant-id',
tests/Unit/Providers/ProviderGatewayTest.php:125:        'entra_tenant_id' => 'entra-tenant-id',
tests/Unit/Providers/ProviderGatewayTest.php:189:        'entra_tenant_id' => 'entra-tenant-id',
tests/Feature/Filament/Alerts/AlertsKpiHeaderTest.php:27:it('shows workspace-wide KPI deliveries when context is set via lastTenantId fallback only', function (): void {
tests/Feature/Filament/Alerts/AlertsKpiHeaderTest.php:37:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/Alerts/AlertsKpiHeaderTest.php:51:        'managed_environment_id' => (int) $otherTenant->getKey(),
tests/Feature/Filament/Alerts/AlertsKpiHeaderTest.php:66:    $values = alertsKpiValues(Livewire::withHeaders(['referer' => route('filament.admin.alerts')])->test(AlertsKpiHeader::class));
tests/Feature/Filament/Alerts/AlertsKpiHeaderTest.php:84:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/Alerts/AlertsKpiHeaderTest.php:98:        'managed_environment_id' => (int) $otherTenant->getKey(),
tests/Feature/Filament/Alerts/AlertsKpiHeaderTest.php:110:    $values = alertsKpiValues(Livewire::withHeaders(['referer' => route('filament.admin.alerts')])->test(AlertsKpiHeader::class));
tests/Feature/Filament/Alerts/AlertsKpiHeaderTest.php:128:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/Alerts/AlertsKpiHeaderTest.php:142:        'managed_environment_id' => (int) $otherTenant->getKey(),
tests/Feature/Filament/Alerts/AlertsKpiHeaderTest.php:154:    $values = alertsKpiValues(Livewire::withHeaders(['referer' => route('filament.admin.alerts')])->test(AlertsKpiHeader::class));
tests/Feature/Filament/Alerts/AlertsKpiHeaderTest.php:177:        'managed_environment_id' => (int) $tenantA->getKey(),
tests/Feature/Filament/Alerts/AlertsKpiHeaderTest.php:186:        'managed_environment_id' => (int) $tenantB->getKey(),
tests/Feature/Filament/Alerts/AlertsKpiHeaderTest.php:201:    $values = alertsKpiValues(Livewire::withHeaders(['referer' => route('filament.admin.alerts')])->test(AlertsKpiHeader::class));
tests/Feature/Filament/TenantResourceIndexIsWorkspaceScopedTest.php:41:        'managed_environment_id' => '11111111-1111-1111-1111-111111111111',
tests/Feature/Filament/TenantResourceIndexIsWorkspaceScopedTest.php:49:        'managed_environment_id' => '22222222-2222-2222-2222-222222222222',
tests/Feature/Filament/TenantResourceIndexIsWorkspaceScopedTest.php:55:        'managed_environment_id' => $tenantA->getKey(),
tests/Feature/Filament/TenantResourceIndexIsWorkspaceScopedTest.php:64:        'managed_environment_id' => $tenantB->getKey(),
tests/Feature/Filament/TenantResourceIndexIsWorkspaceScopedTest.php:91:        ->set('tableFilters.environment.value', 'prod');
tests/Feature/Filament/TenantResourceIndexIsWorkspaceScopedTest.php:99:    expect($table->getColumn('managed_environment_id')?->isToggledHiddenByDefault())->toBeTrue();
tests/Feature/Filament/TenantResourceIndexIsWorkspaceScopedTest.php:109:        ->assertSet('tableFilters.environment.value', 'prod');
tests/Unit/SettingsFoundation/SettingsResolverTenantPrecedenceTest.php:40:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Unit/SettingsFoundation/SettingsResolverCacheTest.php:56:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Unit/Providers/ProviderOperationStartGateTest.php:37:                'managed_environment_id' => (int) $tenant->getKey(),
tests/Unit/Providers/ProviderOperationStartGateTest.php:51:        'managed_environment_id' => 'entra-tenant-id',
tests/Unit/Providers/ProviderOperationStartGateTest.php:54:        'managed_environment_id' => $tenant->getKey(),
tests/Unit/Providers/ProviderOperationStartGateTest.php:56:        'entra_tenant_id' => 'entra-tenant-id',
tests/Unit/Providers/ProviderOperationStartGateTest.php:98:    ])->not->toHaveKey('entra_tenant_id');
tests/Unit/Providers/ProviderOperationStartGateTest.php:106:        'managed_environment_id' => $tenant->getKey(),
tests/Unit/Providers/ProviderOperationStartGateTest.php:114:        'managed_environment_id' => $tenant->getKey(),
tests/Unit/Providers/ProviderOperationStartGateTest.php:137:    expect(OperationRun::query()->where('managed_environment_id', $tenant->getKey())->count())->toBe(1);
tests/Unit/Providers/ProviderOperationStartGateTest.php:143:        'managed_environment_id' => $tenant->getKey(),
tests/Unit/Providers/ProviderOperationStartGateTest.php:151:        'managed_environment_id' => $tenant->getKey(),
tests/Unit/Providers/ProviderOperationStartGateTest.php:174:    expect(OperationRun::query()->where('managed_environment_id', $tenant->getKey())->count())->toBe(1);
tests/Unit/Providers/ProviderOperationStartGateTest.php:205:        'managed_environment_id' => 'restore-entra-tenant-id',
tests/Unit/Providers/ProviderOperationStartGateTest.php:208:        'managed_environment_id' => $tenant->getKey(),
tests/Unit/Providers/ProviderOperationStartGateTest.php:210:        'entra_tenant_id' => 'restore-entra-tenant-id',
tests/Unit/Providers/ProviderOperationStartGateTest.php:247:    ])->not->toHaveKey('entra_tenant_id');
tests/Unit/Providers/ProviderOperationStartGateTest.php:252:        'managed_environment_id' => 'directory-entra-tenant-id',
tests/Unit/Providers/ProviderOperationStartGateTest.php:255:        'managed_environment_id' => $tenant->getKey(),
tests/Unit/Providers/ProviderOperationStartGateTest.php:257:        'entra_tenant_id' => 'directory-entra-tenant-id',
tests/Unit/Providers/ProviderOperationStartGateTest.php:294:    ])->not->toHaveKey('entra_tenant_id');
tests/Unit/Providers/ProviderOperationStartGateTest.php:300:        'managed_environment_id' => $tenant->getKey(),
tests/Unit/Providers/ProviderOperationStartGateTest.php:308:        'managed_environment_id' => $tenant->getKey(),
tests/Unit/Providers/ProviderOperationStartGateTest.php:336:        'managed_environment_id' => $tenant->getKey(),
tests/Unit/Providers/ProviderOperationStartGateTest.php:338:        'entra_tenant_id' => 'directory-entra-tenant-id',
tests/Unit/Providers/ProviderOperationStartGateTest.php:358:        'managed_environment_id' => $tenant->getKey(),
tests/Unit/Providers/ProviderOperationStartGateTest.php:360:        'entra_tenant_id' => 'contoso-tenant-id',
tests/Feature/Filament/Alerts/AlertDestinationCrudTest.php:50:    $this->get(AlertDestinationResource::getUrl('edit', ['record' => $teams], panel: 'admin'))
tests/Feature/Filament/WorkspaceOverviewEmptyStatesTest.php:29:        ->get(route('admin.workspace.home', ['workspace' => $workspace]))
tests/Feature/Filament/WorkspaceOverviewEmptyStatesTest.php:54:        ->get(route('admin.workspace.home', ['workspace' => $tenant->workspace]))
tests/Feature/Filament/WorkspaceOverviewEmptyStatesTest.php:74:        ->get(route('admin.workspace.home', ['workspace' => $tenant->workspace]))
tests/Feature/System/ViewWorkspaceEntitlementsTest.php:88:        ->get(ViewWorkspace::getUrl(panel: 'system', parameters: ['workspace' => $workspace]))
tests/Feature/System/ViewWorkspaceEntitlementsTest.php:245:        ->get(ViewWorkspace::getUrl(panel: 'system', parameters: ['workspace' => $workspace]))
tests/Feature/Baselines/BaselineCompareAuditEventsTest.php:61:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Baselines/BaselineCompareAuditEventsTest.php:74:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Baselines/BaselineCompareAuditEventsTest.php:100:                'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Baselines/BaselineCompareAuditEventsTest.php:151:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/Baselines/BaselineCompareAuditEventsTest.php:157:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Unit/FoundationSnapshotServiceTest.php:80:        'managed_environment_id' => 'tenant-123',
tests/Unit/FoundationSnapshotServiceTest.php:133:        'managed_environment_id' => 'tenant-rbac-123',
tests/Feature/Baselines/BaselineCompareExplanationFallbackTest.php:34:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/Alerts/AlertRuleCrudTest.php:35:            'tenant_scope_mode' => 'allowlist',
tests/Feature/Filament/Alerts/AlertRuleCrudTest.php:58:            'tenant_scope_mode' => 'all',
tests/Feature/Filament/Alerts/AlertRuleCrudTest.php:66:    expect($rule->tenant_scope_mode)->toBe('all');
tests/Feature/Filament/Alerts/AlertRuleCrudTest.php:79:        'tenant_scope_mode' => 'allowlist',
tests/Feature/Filament/Alerts/AlertRuleCrudTest.php:88:    ])->get(AlertRuleResource::getUrl('edit', ['record' => $rule], panel: 'admin'))
tests/Feature/Filament/Alerts/AlertRuleCrudTest.php:114:    ])->get(AlertRuleResource::getUrl('edit', ['record' => $rule], panel: 'admin'))
tests/Feature/System/Directory/ViewWorkspaceClosureTest.php:105:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Unit/Providers/ProviderNextStepsRegistryTest.php:16:        'managed_environment_id' => 'tenant-1',
tests/Unit/Providers/ProviderNextStepsRegistryTest.php:36:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Unit/Providers/ProviderNextStepsRegistryTest.php:39:        'entra_tenant_id' => 'dedicated-target-tenant-id',
tests/Unit/Providers/ProviderNextStepsRegistryTest.php:68:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Unit/Providers/ProviderNextStepsRegistryTest.php:71:        'entra_tenant_id' => (string) $tenant->graphTenantId(),
tests/Feature/Filament/PolicyResourceAdminTenantParityTest.php:93:        ->get(\App\Filament\Resources\PolicyResource::getUrl('view', ['record' => $policyA], panel: 'admin', tenant: $tenantA));
tests/Feature/Filament/PolicyResourceAdminTenantParityTest.php:102:        ->get(\App\Filament\Resources\PolicyResource::getUrl('view', ['record' => $policyB], panel: 'admin', tenant: $tenantA))
tests/Unit/ScopeTagResolverTest.php:23:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Unit/ScopeTagResolverTest.php:39:                    && ($options['tenant'] ?? null) === $connection->entra_tenant_id
tests/Unit/ScopeTagResolverTest.php:71:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Unit/ScopeTagResolverTest.php:117:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Unit/ScopeTagResolverTest.php:146:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/Alerts/AlertRuleAccessTest.php:21:        ->get(AlertRuleResource::getUrl('edit', ['record' => $rule], panel: 'admin'))
tests/Feature/Filament/Alerts/AlertRuleAccessTest.php:43:        ->get(AlertRuleResource::getUrl(panel: 'admin'))
tests/Feature/Filament/Alerts/AlertRuleAccessTest.php:51:        ->get(AlertRuleResource::getUrl(panel: 'admin'))
tests/Feature/Filament/Alerts/AlertRuleAccessTest.php:55:        ->get(AlertRuleResource::getUrl('create', panel: 'admin'))
tests/Feature/Baselines/BaselineCaptureAmbiguousMatchGapTest.php:31:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Baselines/BaselineCaptureAmbiguousMatchGapTest.php:41:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Baselines/BaselineCaptureAmbiguousMatchGapTest.php:51:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Baselines/BaselineCaptureAmbiguousMatchGapTest.php:68:            'source_environment_id' => (int) $tenant->getKey(),
tests/Feature/Baselines/BaselineCaptureAmbiguousMatchGapTest.php:143:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Baselines/BaselineCaptureAmbiguousMatchGapTest.php:153:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Baselines/BaselineCaptureAmbiguousMatchGapTest.php:163:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Baselines/BaselineCaptureAmbiguousMatchGapTest.php:180:            'source_environment_id' => (int) $tenant->getKey(),
tests/Unit/Tenants/TenantActionPolicySurfaceTest.php:51:            'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Unit/Tenants/TenantActionPolicySurfaceTest.php:77:            'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Unit/Tenants/TenantActionPolicySurfaceTest.php:100:            'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Unit/Tenants/TenantActionPolicySurfaceTest.php:142:            'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Feature/Filament/SettingsCatalogRestoreApplySettingsPatchTest.php:101:        'managed_environment_id' => 'tenant-3',
tests/Feature/Filament/SettingsCatalogRestoreApplySettingsPatchTest.php:109:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/SettingsCatalogRestoreApplySettingsPatchTest.php:117:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/SettingsCatalogRestoreApplySettingsPatchTest.php:141:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/SettingsCatalogRestoreApplySettingsPatchTest.php:197:    ])->get(\App\Filament\Resources\RestoreRunResource::getUrl('view', ['record' => $run], panel: 'admin', tenant: $tenant));
tests/Feature/System/ProductTelemetry/NoAdHocTelemetryBypassTest.php:82:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Unit/Providers/PlatformProviderIdentityResolverTest.php:10:    config()->set('graph.managed_environment_id', 'platform-home-tenant-id');
tests/Unit/Providers/PlatformProviderIdentityResolverTest.php:22:        ->and($resolution->redirectUri)->toBe(route('admin.consent.callback'));
tests/Unit/Tenants/TenantOperabilityOutcomeTest.php:16:        metadata: ['selected_tenant_id' => 123],
tests/Unit/Tenants/TenantOperabilityOutcomeTest.php:22:        ->and($outcome->metadata)->toBe(['selected_tenant_id' => 123]);
tests/Feature/Baselines/BaselineCompareDriftEvidenceContractRbacTest.php:53:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Baselines/BaselineCompareDriftEvidenceContractRbacTest.php:68:        'managed_environment_id' => (int) $policy->managed_environment_id,
tests/Feature/Baselines/BaselineCompareDriftEvidenceContractRbacTest.php:139:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Baselines/BaselineCompareDriftEvidenceContractRbacTest.php:253:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/Baselines/BaselineCompareDriftEvidenceContractRbacTest.php:326:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/Baselines/BaselineCompareDriftEvidenceContractRbacTest.php:398:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/Filament/Alerts/AlertDeliveryViewerTest.php:36:    $instance->cacheInteractsWithHeaderActions();
tests/Feature/Filament/Alerts/AlertDeliveryViewerTest.php:38:    foreach ($instance->getCachedHeaderActions() as $action) {
tests/Feature/Filament/Alerts/AlertDeliveryViewerTest.php:66:        'managed_environment_id' => (int) $tenantA->getKey(),
tests/Feature/Filament/Alerts/AlertDeliveryViewerTest.php:74:        'managed_environment_id' => (int) $tenantB->getKey(),
tests/Feature/Filament/Alerts/AlertDeliveryViewerTest.php:107:    expect($action?->getUrl())->toBe(AlertRuleResource::getUrl(panel: 'admin'));
tests/Feature/Filament/Alerts/AlertDeliveryViewerTest.php:126:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/Alerts/AlertDeliveryViewerTest.php:151:            'back_url' => \App\Filament\Clusters\Monitoring\AlertsCluster::getUrl(panel: 'admin'),
tests/Feature/Filament/Alerts/AlertDeliveryViewerTest.php:174:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/Alerts/AlertDeliveryViewerTest.php:180:        ->get(AlertDeliveryResource::getUrl('view', ['record' => $delivery], panel: 'admin'))
tests/Feature/Filament/Alerts/AlertDeliveryViewerTest.php:202:        ->get(AlertDeliveryResource::getUrl(panel: 'admin'))
tests/Feature/Filament/Alerts/AlertDeliveryViewerTest.php:228:        'managed_environment_id' => (int) $tenantA->getKey(),
tests/Feature/Filament/Alerts/AlertDeliveryViewerTest.php:236:        'managed_environment_id' => (int) $tenantB->getKey(),
tests/Feature/Filament/Alerts/AlertDeliveryViewerTest.php:245:    Livewire::withHeaders(['referer' => AlertDeliveryResource::getUrl(panel: 'admin')])
tests/Feature/Filament/Alerts/AlertDeliveryViewerTest.php:250:    Livewire::withHeaders(['referer' => AlertDeliveryResource::getUrl(panel: 'admin')])
tests/Feature/Filament/Alerts/AlertDeliveryViewerTest.php:252:        ->assertSet('tableFilters.status.value', AlertDelivery::STATUS_SENT)
tests/Feature/Filament/Alerts/AlertDeliveryViewerTest.php:263:    Livewire::withHeaders(['referer' => AlertDeliveryResource::getUrl(panel: 'admin')])
tests/Feature/Filament/Alerts/AlertDeliveryViewerTest.php:265:        ->assertSet('tableFilters.managed_environment_id.value', null);
tests/Feature/Filament/Alerts/AlertDeliveryViewerTest.php:290:        'managed_environment_id' => (int) $tenantA->getKey(),
tests/Feature/Filament/Alerts/AlertDeliveryViewerTest.php:298:        'managed_environment_id' => (int) $tenantB->getKey(),
tests/Feature/Filament/Alerts/AlertDeliveryViewerTest.php:310:    Livewire::withHeaders(['referer' => AlertDeliveryResource::getUrl(panel: 'admin')])
tests/Feature/Filament/Alerts/AlertDeliveryViewerTest.php:312:        ->assertSet('tableFilters.managed_environment_id.value', null)
tests/Feature/Filament/BackupCreationTest.php:76:        'managed_environment_id' => 'local-tenant',
tests/Feature/Filament/BackupCreationTest.php:86:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/BackupCreationTest.php:95:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/BackupCreationTest.php:169:        'managed_environment_id' => 'tenant-1',
tests/Feature/Filament/BackupCreationTest.php:179:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/BackupCreationTest.php:188:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/BackupCreationTest.php:198:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/BackupCreationTest.php:208:        'managed_environment_id' => $tenant->id,
tests/Feature/System/OpsRunbooks/RemoveFindingsLifecycleBackfillRunbookSurfaceTest.php:32:    $this->get(Runbooks::getUrl(panel: 'system'))
tests/Feature/System/OpsRunbooks/RemoveFindingsLifecycleBackfillRunbookSurfaceTest.php:57:        ->get(Runbooks::getUrl(panel: 'system'))
tests/Unit/Providers/ProviderConnectionTargetScopeDescriptorTest.php:18:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Unit/Providers/ProviderConnectionTargetScopeDescriptorTest.php:20:        'entra_tenant_id' => '11111111-1111-1111-1111-111111111111',
tests/Feature/Filament/Alerts/AlertDestinationAccessTest.php:24:        ->get(AlertDestinationResource::getUrl('edit', ['record' => $destination], panel: 'admin'))
tests/Feature/Filament/Alerts/AlertDestinationAccessTest.php:46:        ->get(AlertDestinationResource::getUrl(panel: 'admin'))
tests/Feature/Filament/Alerts/AlertDestinationAccessTest.php:54:        ->get(AlertDestinationResource::getUrl(panel: 'admin'))
tests/Feature/Filament/Alerts/AlertDestinationAccessTest.php:58:        ->get(AlertDestinationResource::getUrl('create', panel: 'admin'))
tests/Feature/Verification/VerificationReportViewerDbOnlyTest.php:37:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Verification/VerificationReportViewerDbOnlyTest.php:78:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Verification/VerificationReportViewerDbOnlyTest.php:150:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Verification/VerificationReportViewerDbOnlyTest.php:170:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Verification/VerificationReportViewerDbOnlyTest.php:182:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Verification/VerificationReportViewerDbOnlyTest.php:183:        'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Feature/System/ProductTelemetry/ProductTelemetryDashboardWidgetTest.php:74:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/RestorePreviewTest.php:49:        'managed_environment_id' => 'tenant-1',
tests/Feature/Filament/RestorePreviewTest.php:56:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/RestorePreviewTest.php:64:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/RestorePreviewTest.php:71:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/RestorePreviewTest.php:81:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/RestorePreviewTest.php:143:        'managed_environment_id' => 'tenant-driver-preview',
tests/Feature/Filament/RestorePreviewTest.php:150:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/RestorePreviewTest.php:157:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/RestorePreviewTest.php:215:        'managed_environment_id' => 'tenant-2',
tests/Feature/Filament/RestorePreviewTest.php:222:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/RestorePreviewTest.php:230:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/RestorePreviewTest.php:237:        'managed_environment_id' => $tenant->id,
tests/Feature/System/SupportAccessRequestFlowTest.php:92:        'managed_environment_id' => null,
tests/Feature/System/SupportAccessRequestFlowTest.php:145:        ->get(ViewWorkspace::getUrl(panel: 'system', parameters: ['workspace' => $workspace]))
tests/Feature/Baselines/BaselineCaptureGapClassificationTest.php:43:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Baselines/BaselineCaptureGapClassificationTest.php:54:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Baselines/BaselineCaptureGapClassificationTest.php:70:            'source_environment_id' => (int) $tenant->getKey(),
tests/Unit/Providers/ProviderIdentityResolverTest.php:18:        'managed_environment_id' => 'platform-target-tenant-id',
tests/Unit/Providers/ProviderIdentityResolverTest.php:23:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Unit/Providers/ProviderIdentityResolverTest.php:26:        'entra_tenant_id' => 'platform-target-tenant-id',
tests/Unit/Providers/ProviderIdentityResolverTest.php:49:        'managed_environment_id' => 'dedicated-target-tenant-id',
tests/Unit/Providers/ProviderIdentityResolverTest.php:53:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Unit/Providers/ProviderIdentityResolverTest.php:56:        'entra_tenant_id' => 'dedicated-target-tenant-id',
tests/Unit/Providers/ProviderIdentityResolverTest.php:77:        'entra_tenant_id' => 'dedicated-target-tenant-id',
tests/Unit/Providers/ProviderIdentityResolverTest.php:99:        'entra_tenant_id' => 'dedicated-target-tenant-id',
tests/Unit/Providers/ProviderIdentityResolverTest.php:111:        'entra_tenant_id' => 'platform-target-tenant-id',
tests/Feature/Verification/PreviousVerificationReportResolverTest.php:21:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Verification/PreviousVerificationReportResolverTest.php:25:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Verification/PreviousVerificationReportResolverTest.php:36:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Verification/PreviousVerificationReportResolverTest.php:57:    $connectionA = (int) ProviderConnection::factory()->create(['managed_environment_id' => (int) $tenant->getKey()])->getKey();
tests/Feature/Verification/PreviousVerificationReportResolverTest.php:58:    $connectionB = (int) ProviderConnection::factory()->create(['managed_environment_id' => (int) $tenant->getKey()])->getKey();
tests/Feature/Verification/PreviousVerificationReportResolverTest.php:61:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Verification/PreviousVerificationReportResolverTest.php:72:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Verification/PreviousVerificationReportResolverTest.php:96:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/Verification/PreviousVerificationReportResolverTest.php:98:        'entra_tenant_id' => fake()->uuid(),
tests/Feature/Verification/PreviousVerificationReportResolverTest.php:102:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/Verification/PreviousVerificationReportResolverTest.php:104:        'entra_tenant_id' => fake()->uuid(),
tests/Feature/System/ProductTelemetry/ProductTelemetryRetentionTest.php:27:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/System/ProductTelemetry/ProductTelemetryRetentionTest.php:39:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/System/ProductTelemetry/ProductTelemetryRetentionTest.php:52:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/System/ProductTelemetry/ProductTelemetryRetentionTest.php:57:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/System/ProductTelemetry/ProductTelemetryRetentionTest.php:64:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/System/ProductTelemetry/ProductTelemetryRetentionTest.php:92:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/System/ProductTelemetry/ProductTelemetryRetentionTest.php:104:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/System/SupportAccessRecoveryBoundaryTest.php:24:        'managed_environment_id' => null,
tests/Feature/Filament/TenantRegistryRecoveryTriageTest.php:167:        ->assertTableActionHasUrl('openTenant', EnvironmentDashboard::getUrl(panel: 'admin', tenant: $weakenedTenant), $weakenedTenant)
tests/Feature/Filament/TenantRegistryRecoveryTriageTest.php:173:        ->toBe(ManagedEnvironmentResource::getUrl('view', ['record' => $weakenedTenant], panel: 'admin'));
tests/Feature/Filament/TenantRegistryRecoveryTriageTest.php:225:        ->assertSet('tableFilters.recovery_evidence.values', ['unvalidated']);
tests/Feature/Filament/TenantRegistryRecoveryTriageTest.php:230:        ->toBe(ManagedEnvironmentResource::getUrl('view', ['record' => $unvalidatedTenant], panel: 'admin'));
tests/Feature/Filament/TenantRegistryRecoveryTriageTest.php:291:        ->assertSet('tableFilters.triage_sort.value', 'worst_first')
tests/Unit/Providers/ProviderIdentityResolutionNeutralityTest.php:18:    config()->set('graph.managed_environment_id', 'platform-home-tenant-id');
tests/Unit/Providers/ProviderIdentityResolutionNeutralityTest.php:21:        'managed_environment_id' => '22222222-2222-2222-2222-222222222222',
tests/Unit/Providers/ProviderIdentityResolutionNeutralityTest.php:26:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Unit/Providers/ProviderIdentityResolutionNeutralityTest.php:28:        'entra_tenant_id' => '22222222-2222-2222-2222-222222222222',
tests/Unit/Providers/ProviderIdentityResolutionNeutralityTest.php:41:        ->toContain('microsoft_tenant_id', 'authority_tenant', 'redirect_uri');
tests/Unit/Providers/ProviderIdentityResolutionNeutralityTest.php:46:        'entra_tenant_id' => '33333333-3333-3333-3333-333333333333',
tests/Feature/Baselines/BaselineCompareSummaryAssessmentTest.php:35:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Baselines/BaselineCompareSummaryAssessmentTest.php:46:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Baselines/BaselineCompareSummaryAssessmentTest.php:79:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Baselines/BaselineCompareSummaryAssessmentTest.php:112:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Baselines/BaselineCompareSummaryAssessmentTest.php:135:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Baselines/BaselineCompareSummaryAssessmentTest.php:167:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Baselines/BaselineCompareSummaryAssessmentTest.php:189:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Baselines/BaselineCompareSummaryAssessmentTest.php:208:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Baselines/BaselineCompareSummaryAssessmentTest.php:231:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Baselines/BaselineCompareSummaryAssessmentTest.php:238:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Baselines/BaselineCompareSummaryAssessmentTest.php:261:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Baselines/BaselineCompareSummaryAssessmentTest.php:278:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Baselines/BaselineCompareSummaryAssessmentTest.php:301:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Baselines/BaselineCompareSummaryAssessmentTest.php:307:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/TenantRequiredPermissionsPageTest.php:40:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/TenantRequiredPermissionsPageTest.php:48:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/TenantRequiredPermissionsPageTest.php:113:        ->set('tableFilters.features.values', ['backup'])
tests/Feature/Filament/TenantRequiredPermissionsPageTest.php:114:        ->assertSet('tableFilters.features.values', ['backup']);
tests/Feature/Verification/ProviderExecutionReauthorizationTest.php:38:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/Verification/ProviderExecutionReauthorizationTest.php:47:        ->where('managed_environment_id', $tenant->getKey())
tests/Feature/Verification/ProviderExecutionReauthorizationTest.php:70:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/Verification/ProviderExecutionReauthorizationTest.php:122:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Unit/Providers/ProviderOperationStartResultPresenterTest.php:18:        'managed_environment_id' => $tenant->getKey(),
tests/Unit/Providers/ProviderOperationStartResultPresenterTest.php:33:            Action::make('manage_connections')
tests/Unit/Providers/ProviderOperationStartResultPresenterTest.php:35:                ->url('/provider-connections'),
tests/Unit/Providers/ProviderOperationStartResultPresenterTest.php:56:        'managed_environment_id' => $tenant->getKey(),
tests/Unit/Providers/ProviderOperationStartResultPresenterTest.php:79:        'managed_environment_id' => $tenant->getKey(),
tests/Unit/Providers/ProviderOperationStartResultPresenterTest.php:112:        'managed_environment_id' => $tenant->getKey(),
tests/Unit/Providers/ProviderOperationStartResultPresenterTest.php:129:            Action::make('manage_connections')
tests/Unit/Providers/ProviderOperationStartResultPresenterTest.php:131:                ->url('/provider-connections'),
tests/Feature/Filament/ReferencedTenantLifecyclePresentationTest.php:22:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/ReferencedTenantLifecyclePresentationTest.php:58:        'managed_environment_id' => (int) $archivedTenant->getKey(),
tests/Feature/Baselines/BaselineOperabilityAutoCloseTest.php:92:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/Baselines/BaselineOperabilityAutoCloseTest.php:181:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/System/Spec195/SystemDirectoryResidualSurfaceTest.php:50:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/System/Spec195/SystemDirectoryResidualSurfaceTest.php:61:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/System/Spec195/SystemDirectoryResidualSurfaceTest.php:98:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/System/CustomerHealth/CustomerHealthExplainabilityTest.php:57:        ->where('managed_environment_id', (int) $providerWorkspace['tenant']->getKey())
tests/Unit/Providers/ProviderBoundaryGuardrailTest.php:25:        providerSpecificTerms: ['provider_context.microsoft_tenant_id'],
tests/Feature/Filament/BaselineTenantAssignmentsRelationManagerTest.php:28:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/BaselineTenantAssignmentsRelationManagerTest.php:44:        'managed_environment_id' => (int) $assignedTenant->getKey(),
tests/Feature/Filament/BaselineTenantAssignmentsRelationManagerTest.php:54:        ->assertFormFieldExists('managed_environment_id', function (Select $field) use ($assignedTenant, $availableTenant, $otherProfile): bool {
tests/Feature/Verification/VerificationStartDedupeTest.php:22:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/Verification/VerificationStartDedupeTest.php:48:        ->where('managed_environment_id', $tenant->getKey())
tests/Feature/Verification/VerificationStartDedupeTest.php:65:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/Verification/VerificationStartDedupeTest.php:89:        ->where('managed_environment_id', $tenant->getKey())
tests/Feature/Baselines/BaselineCompareAmbiguousMatchGapTest.php:66:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Baselines/BaselineCompareAmbiguousMatchGapTest.php:76:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Baselines/BaselineCompareAmbiguousMatchGapTest.php:111:            ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/Filament/BaselineProfileScopeV2PersistenceTest.php:226:                    'filters' => ['tenant_ids' => ['tenant-a']],
tests/Feature/System/CustomerHealth/CustomerHealthAuthorizationTest.php:39:        ->get(Dashboard::getUrl(panel: 'system'))
tests/Feature/System/CustomerHealth/CustomerHealthAuthorizationTest.php:55:        ->get(Dashboard::getUrl(panel: 'system'))
tests/Feature/System/CustomerHealth/CustomerHealthAuthorizationTest.php:74:        ->get(Dashboard::getUrl(panel: 'system'))
tests/Feature/System/CustomerHealth/CustomerHealthAuthorizationTest.php:94:        ->get(Dashboard::getUrl(panel: 'system'))
tests/Feature/System/CustomerHealth/CustomerHealthAuthorizationTest.php:114:        ->get(Dashboard::getUrl(panel: 'system'))
tests/Feature/System/CustomerHealth/CustomerHealthAuthorizationTest.php:131:        ->get(Dashboard::getUrl(panel: 'system'))
tests/Unit/Providers/ProviderBoundaryClassificationTest.php:34:        ->and($identity->retainedProviderSemantics)->toContain('provider_context.microsoft_tenant_id')
tests/Unit/Providers/ProviderBoundaryClassificationTest.php:53:        ->and($seam->retainedProviderSemantics)->toContain('provider_context.microsoft_tenant_id')
tests/Feature/Filament/TableStandardsBaselineTest.php:81:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/TableStandardsBaselineTest.php:106:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/TableStandardsBaselineTest.php:130:        FindingResource::getUrl('view', ['record' => $finding], tenant: $tenant)
tests/Feature/Baselines/BaselineAssignmentTest.php:19:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Baselines/BaselineAssignmentTest.php:26:    expect($assignment->managed_environment_id)->toBe((int) $tenant->getKey());
tests/Feature/Baselines/BaselineAssignmentTest.php:43:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Baselines/BaselineAssignmentTest.php:49:    // due to the unique constraint on (workspace_id, managed_environment_id)
tests/Feature/Baselines/BaselineAssignmentTest.php:52:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Baselines/BaselineAssignmentTest.php:71:        'managed_environment_id' => (int) $tenant1->getKey(),
tests/Feature/Baselines/BaselineAssignmentTest.php:76:        'managed_environment_id' => (int) $tenant2->getKey(),
tests/Feature/Baselines/BaselineAssignmentTest.php:93:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Baselines/BaselineAssignmentTest.php:116:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Unit/Providers/CredentialManagerTest.php:12:        'entra_tenant_id' => fake()->uuid(),
tests/Unit/Providers/CredentialManagerTest.php:34:        'entra_tenant_id' => 'tenant-a',
tests/Unit/Providers/CredentialManagerTest.php:40:            'managed_environment_id' => 'tenant-b',
tests/Unit/Providers/CredentialManagerTest.php:53:        'entra_tenant_id' => 'tenant-a',
tests/Feature/System/CustomerHealth/CustomerHealthDashboardWidgetsTest.php:67:    $response = $this->actingAs($user, 'platform')->get(Dashboard::getUrl(panel: 'system'));
tests/Feature/Filament/RestoreResultAttentionSurfaceTest.php:60:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/RestoreResultAttentionSurfaceTest.php:64:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/RestoreResultAttentionSurfaceTest.php:119:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/RestoreResultAttentionSurfaceTest.php:142:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/RestoreResultAttentionSurfaceTest.php:184:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/RestoreResultAttentionSurfaceTest.php:188:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/RestoreResultAttentionSurfaceTest.php:228:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/RestoreResultAttentionSurfaceTest.php:232:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/RestoreResultAttentionSurfaceTest.php:273:    $this->get(RestoreRunResource::getUrl('view', [
tests/Feature/Filament/RestoreRunListFiltersTest.php:29:        'managed_environment_id' => (int) $tenantA->getKey(),
tests/Feature/Filament/RestoreRunListFiltersTest.php:33:        'managed_environment_id' => (int) $tenantB->getKey(),
tests/Feature/Filament/RestoreRunListFiltersTest.php:37:        'managed_environment_id' => (int) $tenantA->getKey(),
tests/Feature/Filament/RestoreRunListFiltersTest.php:44:        'managed_environment_id' => (int) $tenantA->getKey(),
tests/Feature/Filament/RestoreRunListFiltersTest.php:51:        'managed_environment_id' => (int) $tenantB->getKey(),
tests/Feature/Filament/RestoreRunListFiltersTest.php:72:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/RestoreRunListFiltersTest.php:76:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/RestoreRunListFiltersTest.php:83:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/RestoreRunListFiltersTest.php:91:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/RestoreRunListFiltersTest.php:102:        ->set('tableFilters.started_at.from', now()->subDays(2)->toDateString())
tests/Feature/Filament/RestoreRunListFiltersTest.php:103:        ->set('tableFilters.started_at.until', now()->toDateString())
tests/Feature/Filament/RestoreRunListFiltersTest.php:122:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/RestoreRunListFiltersTest.php:126:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/RestoreRunListFiltersTest.php:132:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/RestoreRunListFiltersTest.php:149:        ->set('tableFilters.status.value', null)
tests/Feature/Verification/VerificationStartAfterCompletionTest.php:25:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/Verification/VerificationStartAfterCompletionTest.php:57:        ->where('managed_environment_id', $tenant->getKey())
tests/Feature/Filament/TenantActionsAuthorizationTest.php:40:        ->assertRedirect(EnvironmentDashboard::getUrl(tenant: $tenantA));
tests/Unit/Providers/ProviderConnectionClassifierTest.php:18:        'managed_environment_id' => 'platform-like-tenant-id',
tests/Unit/Providers/ProviderConnectionClassifierTest.php:24:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Unit/Providers/ProviderConnectionClassifierTest.php:27:        'entra_tenant_id' => 'platform-like-tenant-id',
tests/Unit/Providers/ProviderConnectionClassifierTest.php:47:        'managed_environment_id' => 'dedicated-like-tenant-id',
tests/Unit/Providers/ProviderConnectionClassifierTest.php:53:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Unit/Providers/ProviderConnectionClassifierTest.php:56:        'entra_tenant_id' => 'dedicated-like-tenant-id',
tests/Unit/Providers/ProviderConnectionClassifierTest.php:85:        'managed_environment_id' => 'hybrid-tenant-id',
tests/Unit/Providers/ProviderConnectionClassifierTest.php:89:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Unit/Providers/ProviderConnectionClassifierTest.php:92:        'entra_tenant_id' => 'hybrid-tenant-id',
tests/Feature/Baselines/BaselineCompareDriftEvidenceContractTest.php:48:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Baselines/BaselineCompareDriftEvidenceContractTest.php:56:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Baselines/BaselineCompareDriftEvidenceContractTest.php:68:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Baselines/BaselineCompareDriftEvidenceContractTest.php:109:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Baselines/BaselineCompareDriftEvidenceContractTest.php:140:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/Baselines/BaselineCompareDriftEvidenceContractTest.php:187:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Baselines/BaselineCompareDriftEvidenceContractTest.php:195:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Baselines/BaselineCompareDriftEvidenceContractTest.php:256:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/Filament/TableStandardsCriticalListsTest.php:63:    expect($table->getColumn('managed_environment_id')?->isToggleable())->toBeTrue();
tests/Feature/Filament/TableStandardsCriticalListsTest.php:64:    expect($table->getColumn('managed_environment_id')?->isToggledHiddenByDefault())->toBeTrue();
tests/Feature/Filament/TableStandardsCriticalListsTest.php:173:    expect($table->getColumn('entra_tenant_id')?->getLabel())->toBe('Microsoft tenant ID');
tests/Feature/Filament/TableStandardsCriticalListsTest.php:174:    expect($table->getColumn('entra_tenant_id')?->isToggleable())->toBeTrue();
tests/Feature/Filament/TableStandardsCriticalListsTest.php:175:    expect($table->getColumn('entra_tenant_id')?->isToggledHiddenByDefault())->toBeTrue();
tests/Feature/Filament/TableStandardsCriticalListsTest.php:240:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/BaselineCompareLandingAdminTenantParityTest.php:85:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/BaselineCompareLandingAdminTenantParityTest.php:90:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/BaselineCompareLandingAdminTenantParityTest.php:163:        ->get(BaselineCompareLanding::getUrl(tenant: $tenant, panel: 'admin'))
tests/Feature/Verification/VerificationAuthorizationTest.php:22:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Verification/VerificationAuthorizationTest.php:38:        ->get(route('admin.operations.view', [
tests/Feature/Verification/VerificationAuthorizationTest.php:45:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Verification/VerificationAuthorizationTest.php:61:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Verification/VerificationAuthorizationTest.php:78:        ->get(route('admin.operations.view', [
tests/Feature/Verification/VerificationAuthorizationTest.php:86:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Verification/VerificationAuthorizationTest.php:102:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/Verification/VerificationAuthorizationTest.php:115:    expect($result->run->managed_environment_id)->toBe((int) $tenant->getKey());
tests/Feature/Filament/BackupSetEnterpriseDetailPageTest.php:25:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/BackupSetEnterpriseDetailPageTest.php:53:    $this->get(BackupSetResource::getUrl('view', ['record' => $backupSet], tenant: $tenant))
tests/Feature/Filament/BackupSetEnterpriseDetailPageTest.php:76:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/BackupSetEnterpriseDetailPageTest.php:82:    $this->get(BackupSetResource::getUrl('view', ['record' => $backupSet], tenant: $tenant))
tests/Feature/Filament/BackupSetEnterpriseDetailPageTest.php:97:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/BackupSetEnterpriseDetailPageTest.php:113:    $this->get(BackupSetResource::getUrl('view', ['record' => $backupSet], tenant: $tenant))
tests/Feature/Filament/BackupSetEnterpriseDetailPageTest.php:129:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/BackupSetEnterpriseDetailPageTest.php:141:    $this->get(BackupSetResource::getUrl('view', [
tests/Feature/Filament/BackupSetEnterpriseDetailPageTest.php:160:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/BackupSetEnterpriseDetailPageTest.php:175:    $this->get(BackupSetResource::getUrl('view', [
tests/Feature/Verification/VerificationReportNextStepsSchemaSpec081Test.php:18:                ['label' => 'Manage Provider Connections', 'url' => '/admin/provider-connections?managed_environment_id=example'],
tests/Feature/Verification/VerificationReportNextStepsSchemaSpec081Test.php:28:            'url' => '/admin/provider-connections?managed_environment_id=example',
tests/Feature/Baselines/BaselineCompareResumeIdempotencyTest.php:69:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Baselines/BaselineCompareResumeIdempotencyTest.php:84:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Baselines/BaselineCompareResumeIdempotencyTest.php:115:                'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/GroupPolicyConfigurationRestoreTest.php:101:        'managed_environment_id' => 'tenant-gpo-restore',
tests/Feature/Filament/GroupPolicyConfigurationRestoreTest.php:109:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/GroupPolicyConfigurationRestoreTest.php:117:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/GroupPolicyConfigurationRestoreTest.php:146:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/OperationRunResumeCaptureActionTest.php:60:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/Verification/ProviderConnectionHealthCheckWritesReportTest.php:22:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Verification/ProviderConnectionHealthCheckWritesReportTest.php:24:        'entra_tenant_id' => fake()->uuid(),
tests/Feature/Verification/ProviderConnectionHealthCheckWritesReportTest.php:30:            'managed_environment_id' => (string) $connection->entra_tenant_id,
tests/Feature/Verification/ProviderConnectionHealthCheckWritesReportTest.php:37:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Verification/ProviderConnectionHealthCheckWritesReportTest.php:104:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Verification/ProviderConnectionHealthCheckWritesReportTest.php:106:        'entra_tenant_id' => fake()->uuid(),
tests/Feature/Verification/ProviderConnectionHealthCheckWritesReportTest.php:112:            'managed_environment_id' => (string) $connection->entra_tenant_id,
tests/Feature/Verification/ProviderConnectionHealthCheckWritesReportTest.php:119:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Verification/ProviderConnectionHealthCheckWritesReportTest.php:194:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Verification/ProviderConnectionHealthCheckWritesReportTest.php:196:        'entra_tenant_id' => fake()->uuid(),
tests/Feature/Verification/ProviderConnectionHealthCheckWritesReportTest.php:202:            'managed_environment_id' => (string) $connection->entra_tenant_id,
tests/Feature/Verification/ProviderConnectionHealthCheckWritesReportTest.php:209:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Verification/ProviderConnectionHealthCheckWritesReportTest.php:266:    expect(ManagedEnvironmentPermission::query()->where('managed_environment_id', (int) $tenant->getKey())->count())->toBe(0);
tests/Feature/Verification/ProviderConnectionHealthCheckWritesReportTest.php:273:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Verification/ProviderConnectionHealthCheckWritesReportTest.php:275:        'entra_tenant_id' => fake()->uuid(),
tests/Feature/Verification/ProviderConnectionHealthCheckWritesReportTest.php:281:            'managed_environment_id' => (string) $connection->entra_tenant_id,
tests/Feature/Verification/ProviderConnectionHealthCheckWritesReportTest.php:288:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Verification/ProviderConnectionHealthCheckWritesReportTest.php:342:            'tenant' => (string) $connection->entra_tenant_id,
tests/Feature/Verification/ProviderConnectionHealthCheckWritesReportTest.php:370:    expect(ManagedEnvironmentPermission::query()->where('managed_environment_id', (int) $tenant->getKey())->count())->toBe(0);
tests/Feature/Filament/GroupPolicyConfigurationNormalizedDiffTest.php:47:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/GroupPolicyConfigurationNormalizedDiffTest.php:55:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/GroupPolicyConfigurationNormalizedDiffTest.php:79:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/GroupPolicyConfigurationNormalizedDiffTest.php:103:        ->get(PolicyVersionResource::getUrl('view', ['record' => $version], tenant: $tenant));
tests/Feature/Filament/PolicyViewSettingsCatalogReadableTest.php:15:        'managed_environment_id' => 'local-tenant',
tests/Feature/Filament/PolicyViewSettingsCatalogReadableTest.php:24:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/PolicyViewSettingsCatalogReadableTest.php:43:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/PolicyViewSettingsCatalogReadableTest.php:73:        ->get(PolicyResource::getUrl('view', ['record' => $policy], tenant: $tenant));
tests/Feature/Filament/PolicyViewSettingsCatalogReadableTest.php:85:        'managed_environment_id' => 'local-tenant',
tests/Feature/Filament/PolicyViewSettingsCatalogReadableTest.php:94:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/PolicyViewSettingsCatalogReadableTest.php:109:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/PolicyViewSettingsCatalogReadableTest.php:130:        ->get(PolicyResource::getUrl('view', ['record' => $policy], tenant: $tenant));
tests/Feature/Filament/PolicyViewSettingsCatalogReadableTest.php:139:        'managed_environment_id' => 'local-tenant',
tests/Feature/Filament/PolicyViewSettingsCatalogReadableTest.php:148:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/PolicyViewSettingsCatalogReadableTest.php:158:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/PolicyViewSettingsCatalogReadableTest.php:179:        ->get(PolicyResource::getUrl('view', ['record' => $policy], tenant: $tenant));
tests/Feature/Filament/PolicyViewSettingsCatalogReadableTest.php:188:        'managed_environment_id' => 'local-tenant',
tests/Feature/Filament/PolicyViewSettingsCatalogReadableTest.php:197:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/PolicyViewSettingsCatalogReadableTest.php:205:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/PolicyViewSettingsCatalogReadableTest.php:221:        ->get(PolicyResource::getUrl('view', ['record' => $policy], tenant: $tenant));
tests/Feature/Filament/PolicyViewSettingsCatalogReadableTest.php:232:        'managed_environment_id' => 'local-tenant',
tests/Feature/Filament/PolicyViewSettingsCatalogReadableTest.php:248:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/PolicyViewSettingsCatalogReadableTest.php:256:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/PolicyViewSettingsCatalogReadableTest.php:277:        ->get(PolicyResource::getUrl('view', ['record' => $policy], tenant: $tenant));
tests/Feature/Filament/PolicyViewSettingsCatalogReadableTest.php:287:        'managed_environment_id' => 'local-tenant',
tests/Feature/Filament/PolicyViewSettingsCatalogReadableTest.php:312:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/PolicyViewSettingsCatalogReadableTest.php:320:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/PolicyViewSettingsCatalogReadableTest.php:353:        ->get(PolicyResource::getUrl('view', ['record' => $policy], tenant: $tenant));
tests/Feature/Filament/PolicyViewSettingsCatalogReadableTest.php:362:        'managed_environment_id' => 'local-tenant',
tests/Feature/Filament/PolicyViewSettingsCatalogReadableTest.php:382:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/PolicyViewSettingsCatalogReadableTest.php:390:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/PolicyViewSettingsCatalogReadableTest.php:417:        ->get(PolicyResource::getUrl('view', ['record' => $policy], tenant: $tenant));
tests/Feature/Filament/PolicyViewSettingsCatalogReadableTest.php:426:        'managed_environment_id' => 'local-tenant',
tests/Feature/Filament/PolicyViewSettingsCatalogReadableTest.php:435:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/PolicyViewSettingsCatalogReadableTest.php:443:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/PolicyViewSettingsCatalogReadableTest.php:464:        ->get(PolicyResource::getUrl('view', ['record' => $policy], tenant: $tenant));
tests/Feature/Baselines/BaselineCompareGapClassificationTest.php:79:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Baselines/BaselineCompareGapClassificationTest.php:90:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Dashboard/TenantDashboardProductizationReadinessTest.php:47:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Dashboard/TenantDashboardProductizationReadinessTest.php:54:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Dashboard/TenantDashboardProductizationReadinessTest.php:97:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Dashboard/TenantDashboardProductizationReadinessTest.php:112:        ->and($outputCard['actionUrl'])->toBe(ReviewPackResource::getUrl('view', ['record' => $pack], panel: 'admin', tenant: $tenant))
tests/Feature/Dashboard/TenantDashboardProductizationReadinessTest.php:131:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Dashboard/TenantDashboardProductizationReadinessTest.php:183:        ->and($evidenceCoverage['actionUrl'])->toBe(EvidenceSnapshotResource::getUrl('view', ['record' => $snapshot], panel: 'admin', tenant: $tenant))
tests/Feature/Dashboard/TenantDashboardProductizationReadinessTest.php:201:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Dashboard/TenantDashboardProductizationReadinessTest.php:209:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Dashboard/TenantDashboardProductizationReadinessTest.php:248:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Dashboard/TenantDashboardProductizationReadinessTest.php:256:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Dashboard/TenantDashboardProductizationReadinessTest.php:267:    $content = $this->get(EnvironmentDashboard::getUrl(panel: 'admin', tenant: $tenant))
tests/Feature/Dashboard/TenantDashboardProductizationReadinessTest.php:334:        ->and($evidenceCoverage['actionUrl'])->toBe(EvidenceSnapshotResource::getUrl('index', panel: 'admin', tenant: $tenant));
tests/Feature/Filament/BaselineSnapshotAuthorizationTest.php:21:        ->get(BaselineSnapshotResource::getUrl(panel: 'admin'))
tests/Feature/Filament/BaselineSnapshotAuthorizationTest.php:59:        ->get(BaselineSnapshotResource::getUrl(panel: 'admin'))
tests/Feature/Filament/BaselineSnapshotAuthorizationTest.php:63:        ->get(BaselineSnapshotResource::getUrl('view', ['record' => $snapshot], panel: 'admin'))
tests/Feature/Filament/BaselineSnapshotAuthorizationTest.php:90:        ->get(BaselineSnapshotResource::getUrl('view', ['record' => $snapshot], panel: 'admin'))
tests/Feature/Filament/GovernanceArtifacts/GovernanceArtifactEnvironmentContextTest.php:26:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/GovernanceArtifacts/GovernanceArtifactEnvironmentContextTest.php:32:        'managed_environment_id' => (int) $otherTenant->getKey(),
tests/Feature/Filament/GovernanceArtifacts/GovernanceArtifactEnvironmentContextTest.php:68:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/Filament/GovernanceArtifacts/GovernanceArtifactEnvironmentContextTest.php:95:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/Filament/GovernanceArtifacts/GovernanceArtifactEnvironmentContextTest.php:120:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/Filament/GovernanceArtifacts/GovernanceArtifactEnvironmentContextTest.php:126:        ->and((int) $snapshot?->managed_environment_id)->toBe((int) $tenant->getKey());
tests/Feature/Filament/GovernanceArtifacts/GovernanceArtifactEnvironmentContextTest.php:141:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/GovernanceArtifacts/GovernanceArtifactEnvironmentContextTest.php:148:            'managed_environment_id' => (int) $otherTenant->getKey(),
tests/Feature/Baselines/BaselineResumeCaptureAuditEventsTest.php:54:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/Filament/BackupSetGraphSafetyTest.php:17:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/Filament/BackupSetGraphSafetyTest.php:22:        'managed_environment_id' => $otherTenant->getKey(),
tests/Feature/Filament/BackupSetGraphSafetyTest.php:29:        ->get(BackupSetResource::getUrl('index', tenant: $tenant))
tests/Feature/Filament/WorkspaceContextTopbarAndTenantSelectionTest.php:51:        ->get(route('filament.admin.pages.choose-environment'))
tests/Feature/Filament/WorkspaceContextTopbarAndTenantSelectionTest.php:96:        ->get(route('admin.operations.index', ['workspace' => $workspaceId, 'managed_environment_id' => (int) $hintedTenant->getKey()]))
tests/Feature/Verification/VerificationCheckAcknowledgementTest.php:21:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Verification/VerificationCheckAcknowledgementTest.php:50:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Verification/VerificationCheckAcknowledgementTest.php:79:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Verification/VerificationCheckAcknowledgementTest.php:168:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/GovernanceArtifacts/GovernanceArtifactDeepLinkContractTest.php:44:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/GovernanceArtifacts/GovernanceArtifactDeepLinkContractTest.php:91:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/GovernanceArtifacts/GovernanceArtifactDeepLinkContractTest.php:106:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/GovernanceArtifacts/GovernanceArtifactDeepLinkContractTest.php:152:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/GovernanceArtifacts/GovernanceArtifactDeepLinkContractTest.php:172:        'Backup Sets' => BackupSetResource::getUrl('index', tenant: $tenant),
tests/Feature/Filament/GovernanceArtifacts/GovernanceArtifactDeepLinkContractTest.php:173:        'Backup Set' => BackupSetResource::getUrl('view', ['record' => (int) $backupSet->getKey()], tenant: $tenant),
tests/Feature/Filament/GovernanceArtifacts/GovernanceArtifactDeepLinkContractTest.php:178:        'Restore Runs' => RestoreRunResource::getUrl('index', tenant: $tenant),
tests/Feature/Filament/GovernanceArtifacts/GovernanceArtifactDeepLinkContractTest.php:179:        'Restore Run' => RestoreRunResource::getUrl('view', ['record' => (int) $restoreRun->getKey()], tenant: $tenant),
tests/Feature/Filament/GovernanceArtifacts/GovernanceArtifactDeepLinkContractTest.php:184:        'Evidence Snapshot' => EvidenceSnapshotResource::getUrl('view', ['record' => $snapshot], tenant: $tenant),
tests/Feature/Filament/GovernanceArtifacts/GovernanceArtifactDeepLinkContractTest.php:194:        'Review Pack' => ReviewPackResource::getUrl('view', ['record' => $pack], tenant: $tenant),
tests/Feature/Filament/GovernanceArtifacts/GovernanceArtifactDeepLinkContractTest.php:211:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/GovernanceArtifacts/GovernanceArtifactDeepLinkContractTest.php:215:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/GovernanceArtifacts/GovernanceArtifactDeepLinkContractTest.php:219:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/GovernanceArtifacts/GovernanceArtifactDeepLinkContractTest.php:223:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/GovernanceArtifacts/GovernanceArtifactDeepLinkContractTest.php:235:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/GovernanceArtifacts/GovernanceArtifactDeepLinkContractTest.php:255:            'url' => BackupSetResource::getUrl('view', ['record' => (int) $backupSet->getKey()], tenant: $tenant),
tests/Feature/Filament/GovernanceArtifacts/GovernanceArtifactDeepLinkContractTest.php:260:            'url' => RestoreRunResource::getUrl('view', ['record' => (int) $restoreRun->getKey()], tenant: $tenant),
tests/Feature/Filament/GovernanceArtifacts/GovernanceArtifactDeepLinkContractTest.php:265:            'url' => FindingResource::getUrl('view', ['record' => (int) $finding->getKey()], tenant: $tenant),
tests/Feature/Filament/GovernanceArtifacts/GovernanceArtifactDeepLinkContractTest.php:270:            'url' => FindingExceptionResource::getUrl('view', ['record' => $findingException], tenant: $tenant),
tests/Feature/Dashboard/MyFindingsSignalTest.php:76:        ->and($signal['cta_url'])->toBe(MyFindingsInbox::getUrl(panel: 'admin'));
tests/Feature/Verification/VerificationReportMissingOrMalformedTest.php:18:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Verification/VerificationReportMissingOrMalformedTest.php:41:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/GovernanceArtifacts/GovernanceArtifactAdminPanelRegistrationTest.php:73:        $path = parse_url($resourceClass::getUrl('index', panel: 'admin', tenant: $tenant), PHP_URL_PATH);
tests/Feature/Filament/GovernanceArtifacts/GovernanceArtifactAdminPanelRegistrationTest.php:117:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/GovernanceArtifacts/GovernanceArtifactAdminPanelRegistrationTest.php:125:        ->get(FindingResource::getUrl('index', ['workspace' => $otherWorkspace], panel: 'admin', tenant: $tenant))
tests/Feature/Filament/GovernanceArtifacts/GovernanceArtifactAdminPanelRegistrationTest.php:132:        ->get(StoredReportResource::getUrl('view', ['workspace' => $otherWorkspace, 'record' => $report], panel: 'admin', tenant: $tenant))
tests/Feature/Filament/TenantScopingTest.php:16:        'managed_environment_id' => (int) $tenantA->getKey(),
tests/Feature/Filament/TenantScopingTest.php:22:        'managed_environment_id' => (int) $tenantB->getKey(),
tests/Feature/Filament/TenantScopingTest.php:28:        ->get(ProviderConnectionResource::getUrl('index', tenant: $tenantB))
tests/Feature/Baselines/BaselineCaptureRbacRoleDefinitionsTest.php:40:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Baselines/BaselineCaptureRbacRoleDefinitionsTest.php:48:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Baselines/BaselineCaptureRbacRoleDefinitionsTest.php:70:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Baselines/BaselineCaptureRbacRoleDefinitionsTest.php:89:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Baselines/BaselineCaptureRbacRoleDefinitionsTest.php:112:            'source_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/PolicyVersionRestoreToIntuneTest.php:70:        'managed_environment_id' => 'tenant-version-restore',
tests/Feature/Filament/PolicyVersionRestoreToIntuneTest.php:78:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/PolicyVersionRestoreToIntuneTest.php:112:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/PolicyVersionRestoreToIntuneTest.php:124:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/PolicyVersionRestoreToIntuneTest.php:165:        'managed_environment_id' => 'tenant-version-restore-a',
tests/Feature/Filament/PolicyVersionRestoreToIntuneTest.php:171:        'managed_environment_id' => 'tenant-version-restore-b',
tests/Feature/Filament/PolicyVersionRestoreToIntuneTest.php:177:        'managed_environment_id' => $tenantB->id,
tests/Feature/Filament/PolicyVersionRestoreToIntuneTest.php:185:        'managed_environment_id' => $tenantB->id,
tests/Feature/Verification/VerificationReportRedactionTest.php:26:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Verification/VerificationReportRedactionTest.php:43:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/TenantSwitcherUrlResolvesTenantTest.php:30:    expect(Filament::getTenant()?->is($tenantA))->toBeTrue();
tests/Feature/Filament/TenantSwitcherUrlResolvesTenantTest.php:33:        ->get(EnvironmentDashboard::getUrl(tenant: $tenantB));
tests/Feature/Filament/TenantSwitcherUrlResolvesTenantTest.php:36:    expect(Filament::getTenant())->toBeInstanceOf(ManagedEnvironment::class);
tests/Feature/Filament/TenantSwitcherUrlResolvesTenantTest.php:37:    expect(Filament::getTenant()?->is($tenantB))->toBeTrue();
tests/Feature/Filament/GovernanceArtifacts/GovernanceArtifactLegacyTenantPanelGuardTest.php:63:            'pattern' => '/\\bFilament::getTenant\\s*\\(/',
tests/Feature/Filament/EmptyStateConsistencyTest.php:128:    expect($action?->getUrl())->toBe(BackupSetResource::getUrl('create', tenant: $tenant));
tests/Feature/Filament/EmptyStateConsistencyTest.php:153:    expect($action?->getUrl())->toBe(RestoreRunResource::getUrl('create', tenant: $tenant));
tests/Feature/Filament/EmptyStateConsistencyTest.php:178:    expect($action?->getUrl())->toBe(BackupScheduleResource::getUrl('create', tenant: $tenant));
tests/Feature/Filament/EmptyStateConsistencyTest.php:197:    expect($action?->getUrl())->toBe(WorkspaceResource::getUrl('create'));
tests/Feature/Filament/GroupPolicyConfigurationHydrationTest.php:94:        'managed_environment_id' => 'tenant-gpo-hydration',
tests/Feature/Filament/GroupPolicyConfigurationHydrationTest.php:101:    putenv('INTUNE_TENANT_ID='.$tenant->managed_environment_id);
tests/Feature/Filament/GroupPolicyConfigurationHydrationTest.php:102:    $_ENV['INTUNE_TENANT_ID'] = $tenant->managed_environment_id;
tests/Feature/Filament/GroupPolicyConfigurationHydrationTest.php:103:    $_SERVER['INTUNE_TENANT_ID'] = $tenant->managed_environment_id;
tests/Feature/Filament/GroupPolicyConfigurationHydrationTest.php:107:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/Filament/GroupPolicyConfigurationHydrationTest.php:140:        ->get(PolicyResource::getUrl('view', ['record' => $policy], tenant: $tenant));
tests/Feature/Dashboard/TenantDashboardProductizationActionsTest.php:70:        ->toBe(route('admin.operations.index', [
tests/Feature/Dashboard/TenantDashboardProductizationActionsTest.php:72:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Dashboard/TenantDashboardProductizationActionsTest.php:80:        ->toBe(route('admin.operations.index', [
tests/Feature/Dashboard/TenantDashboardProductizationActionsTest.php:82:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Dashboard/TenantDashboardProductizationActionsTest.php:110:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Dashboard/TenantDashboardProductizationActionsTest.php:118:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Dashboard/TenantDashboardProductizationActionsTest.php:194:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Dashboard/TenantDashboardProductizationActionsTest.php:202:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Dashboard/TenantDashboardProductizationActionsTest.php:211:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Dashboard/TenantDashboardProductizationActionsTest.php:243:        ->and($actions[1]['actionUrl'])->toBe(FindingResource::getUrl('index', [
tests/Feature/Dashboard/TenantDashboardProductizationActionsTest.php:247:        ->and($actions[2]['actionUrl'])->toBe(FindingExceptionResource::getUrl('index', panel: 'admin', tenant: $tenant));
tests/Feature/Dashboard/TenantDashboardProductizationActionsTest.php:252:    $content = $this->get(EnvironmentDashboard::getUrl(panel: 'admin', tenant: $tenant))
tests/Feature/TenantRBAC/TenantMembershipCrudTest.php:25:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/TenantRBAC/TenantMembershipCrudTest.php:37:        'managed_environment_id' => $tenant->getKey(),
app/Support/Inventory/TenantCoverageTruthResolver.php:30:            ->where('managed_environment_id', $tenantId)
tests/Feature/Filament/InventoryItemListFiltersTest.php:22:        'managed_environment_id' => (int) $tenantA->getKey(),
tests/Feature/Filament/InventoryItemListFiltersTest.php:29:        'managed_environment_id' => (int) $tenantA->getKey(),
tests/Feature/Filament/InventoryItemListFiltersTest.php:36:        'managed_environment_id' => (int) $tenantB->getKey(),
tests/Feature/Filament/InventoryItemListFiltersTest.php:58:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/InventoryItemListFiltersTest.php:64:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/InventoryItemListFiltersTest.php:80:        ->set('tableFilters.platform.value', null)
tests/Feature/Filament/InventoryItemListFiltersTest.php:81:        ->set('tableFilters.stale.value', null)
tests/Feature/Filament/AppProtectionPolicySettingsDisplayTest.php:21:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/Filament/AppProtectionPolicySettingsDisplayTest.php:29:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/Filament/AppProtectionPolicySettingsDisplayTest.php:46:        ->get(PolicyResource::getUrl('view', ['record' => $policy], tenant: $tenant));
tests/Feature/TenantRBAC/TenantBootstrapAssignTest.php:27:        ->set('data.managed_environment_id', $tenantGuid)
tests/Feature/TenantRBAC/TenantBootstrapAssignTest.php:34:        ->where('managed_environment_id', $tenant->getKey())
tests/Feature/TenantRBAC/TenantBootstrapAssignTest.php:42:        ->where('managed_environment_id', $tenant->getKey())
tests/Feature/Dashboard/TenantDashboardProductizationAuthorizationTest.php:82:function tenantDashboardProductizationHeaderActions(Testable $component): array
tests/Feature/Dashboard/TenantDashboardProductizationAuthorizationTest.php:86:    if ($instance->getCachedHeaderActions() === []) {
tests/Feature/Dashboard/TenantDashboardProductizationAuthorizationTest.php:87:        $instance->cacheInteractsWithHeaderActions();
tests/Feature/Dashboard/TenantDashboardProductizationAuthorizationTest.php:90:    return $instance->getCachedHeaderActions();
tests/Feature/Dashboard/TenantDashboardProductizationAuthorizationTest.php:95:    return collect(tenantDashboardProductizationHeaderActions($component))
tests/Feature/Dashboard/TenantDashboardProductizationAuthorizationTest.php:105:    $moreGroup = collect(tenantDashboardProductizationHeaderActions($component))
tests/Feature/Dashboard/TenantDashboardProductizationAuthorizationTest.php:120:        ->get(EnvironmentDashboard::getUrl(panel: 'admin', tenant: $tenant))
tests/Feature/Dashboard/TenantDashboardProductizationAuthorizationTest.php:130:    $this->get(EnvironmentDashboard::getUrl(panel: 'admin', tenant: $tenant))
tests/Feature/Dashboard/TenantDashboardProductizationAuthorizationTest.php:138:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Dashboard/TenantDashboardProductizationAuthorizationTest.php:153:    $headerActions = tenantDashboardProductizationHeaderActions($component);
tests/Feature/Dashboard/TenantDashboardProductizationAuthorizationTest.php:190:    $primaryAction = collect(tenantDashboardProductizationHeaderActions($component))
tests/Feature/Dashboard/TenantDashboardProductizationAuthorizationTest.php:196:        ->and($primaryAction->getUrl())->toBe(GovernanceInbox::getUrl(panel: 'admin').'?'.http_build_query([
tests/Feature/Dashboard/TenantDashboardProductizationAuthorizationTest.php:197:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Dashboard/TenantDashboardProductizationAuthorizationTest.php:222:    $primaryAction = collect(tenantDashboardProductizationHeaderActions($component))
tests/Feature/Dashboard/TenantDashboardProductizationAuthorizationTest.php:229:        ->and($primaryAction->getUrl())->toBe(RequiredPermissionsLinks::requiredPermissions($tenant));
tests/Feature/Dashboard/TenantDashboardProductizationAuthorizationTest.php:264:    $content = $this->get(EnvironmentDashboard::getUrl(panel: 'admin', tenant: $tenant))
tests/Feature/Dashboard/TenantDashboardProductizationAuthorizationTest.php:316:    $content = $this->get(EnvironmentDashboard::getUrl(panel: 'admin', tenant: $tenant))
tests/Feature/Dashboard/TenantDashboardProductizationAuthorizationTest.php:364:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Dashboard/TenantDashboardProductizationAuthorizationTest.php:383:    $this->get(FindingResource::getUrl('index', [
tests/Feature/Filament/PolicyVersionBaselineEvidenceVisibilityTest.php:33:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/PolicyVersionBaselineEvidenceVisibilityTest.php:41:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/PolicyVersionBaselineEvidenceVisibilityTest.php:48:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/PolicyVersionBaselineEvidenceVisibilityTest.php:61:        ->get(PolicyVersionResource::getUrl('view', ['record' => $baselinePurposeVersion], tenant: $tenant))
tests/Feature/Filament/PolicyVersionBaselineEvidenceVisibilityTest.php:73:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/PolicyVersionBaselineEvidenceVisibilityTest.php:81:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/PolicyVersionBaselineEvidenceVisibilityTest.php:88:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/PolicyVersionBaselineEvidenceVisibilityTest.php:100:        ->get(PolicyVersionResource::getUrl('view', ['record' => $baselinePurposeVersion], tenant: $tenant))
tests/Feature/Filament/BaselineSnapshotTruthSurfaceTest.php:36:        ->get(BaselineProfileResource::getUrl('view', ['record' => $profile], panel: 'admin'))
tests/Feature/Filament/BaselineSnapshotTruthSurfaceTest.php:67:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/BaselineSnapshotTruthSurfaceTest.php:74:        ->get(BaselineProfileResource::getUrl('view', ['record' => $profile], panel: 'admin'))
tests/Feature/Filament/BaselineSnapshotTruthSurfaceTest.php:107:        ->get(BaselineSnapshotResource::getUrl(panel: 'admin'))
tests/Feature/Filament/BaselineSnapshotTruthSurfaceTest.php:115:        ->get(BaselineSnapshotResource::getUrl('view', ['record' => $historicalSnapshot], panel: 'admin'))
tests/Feature/Filament/EntraGroupEnterpriseDetailPageTest.php:35:    $response = $this->get(EntraGroupResource::getUrl('view', ['record' => $group], tenant: $tenant))
tests/Feature/Filament/EntraGroupEnterpriseDetailPageTest.php:62:    $this->get(EntraGroupResource::getUrl('view', ['record' => $group], tenant: $tenant))
tests/Feature/TenantRBAC/MembershipAuditLogTest.php:27:        ->where('managed_environment_id', $tenant->getKey())
tests/Feature/TenantRBAC/MembershipAuditLogTest.php:39:        ->where('managed_environment_id', $tenant->getKey())
tests/Feature/Filament/WorkspaceContextRecoveryDisplayTest.php:36:        ->get(route('admin.operations.index', ['workspace' => $validTenant->workspace, 'tenant' => $foreignTenant->external_id]))
tests/Feature/Filament/HousekeepingTest.php:23:        'managed_environment_id' => 'tenant-1',
tests/Feature/Filament/HousekeepingTest.php:30:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/HousekeepingTest.php:36:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/HousekeepingTest.php:63:        'managed_environment_id' => 'tenant-2',
tests/Feature/Filament/HousekeepingTest.php:70:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/HousekeepingTest.php:76:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/HousekeepingTest.php:99:        'managed_environment_id' => 'tenant-force',
tests/Feature/Filament/HousekeepingTest.php:106:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/HousekeepingTest.php:112:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/HousekeepingTest.php:127:        ->set('tableFilters.trashed.value', 1)
tests/Feature/Filament/HousekeepingTest.php:141:        'managed_environment_id' => 'tenant-restore-backup-set',
tests/Feature/Filament/HousekeepingTest.php:148:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/HousekeepingTest.php:154:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/HousekeepingTest.php:169:        ->set('tableFilters.trashed.value', 1)
tests/Feature/Filament/HousekeepingTest.php:183:        'managed_environment_id' => 'tenant-restore-run',
tests/Feature/Filament/HousekeepingTest.php:190:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/HousekeepingTest.php:197:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/HousekeepingTest.php:209:        ->set('tableFilters.trashed.value', 1)
tests/Feature/Filament/HousekeepingTest.php:222:        'managed_environment_id' => 'tenant-restore-restore-run',
tests/Feature/Filament/HousekeepingTest.php:229:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/HousekeepingTest.php:236:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/HousekeepingTest.php:248:        ->set('tableFilters.trashed.value', 1)
tests/Feature/Filament/HousekeepingTest.php:261:        'managed_environment_id' => 'tenant-policy-row-actions',
tests/Feature/Filament/HousekeepingTest.php:269:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/HousekeepingTest.php:288:        ->set('tableFilters.visibility.value', 'ignored')
tests/Feature/Filament/HousekeepingTest.php:297:        'managed_environment_id' => 'tenant-3',
tests/Feature/Filament/HousekeepingTest.php:304:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/HousekeepingTest.php:311:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/HousekeepingTest.php:335:        'managed_environment_id' => 'tenant-3b',
tests/Feature/Filament/HousekeepingTest.php:342:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/HousekeepingTest.php:349:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/HousekeepingTest.php:362:        ->set('tableFilters.trashed.value', 1)
tests/Feature/Filament/HousekeepingTest.php:375:        'managed_environment_id' => 'tenant-4',
tests/Feature/Filament/HousekeepingTest.php:401:        'managed_environment_id' => 'tenant-5',
tests/Feature/Filament/HousekeepingTest.php:413:        'managed_environment_id' => 'tenant-active',
tests/Feature/Filament/HousekeepingTest.php:422:        'managed_environment_id' => 'tenant-archived',
tests/Feature/Filament/HousekeepingTest.php:461:        'managed_environment_id' => 'tenant-restore-context',
tests/Feature/Filament/HousekeepingTest.php:470:        'managed_environment_id' => 'tenant-restore',
tests/Feature/Filament/TenantDashboardTruthAlignmentTest.php:43:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/TenantDashboardTruthAlignmentTest.php:55:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/TenantDashboardTruthAlignmentTest.php:89:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/TenantDashboardTruthAlignmentTest.php:98:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/TenantDashboardTruthAlignmentTest.php:176:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/TenantDashboardTruthAlignmentTest.php:217:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/TenantDashboardTruthAlignmentTest.php:325:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/BaselineCompareExplanationSurfaceTest.php:37:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/BaselineCompareExplanationSurfaceTest.php:42:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/TenantRBAC/TenantGuidVsBigintGuardTest.php:19:        'managed_environment_id' => '00000000-0000-0000-0000-000000000123',
tests/Feature/Dashboard/TenantDashboardProductizationSummaryTest.php:52:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Dashboard/TenantDashboardProductizationSummaryTest.php:60:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Dashboard/TenantDashboardProductizationSummaryTest.php:69:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Dashboard/TenantDashboardProductizationSummaryTest.php:77:    $response = $this->get(EnvironmentDashboard::getUrl(panel: 'admin', tenant: $tenant))
tests/Feature/Dashboard/TenantDashboardProductizationSummaryTest.php:156:                'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Dashboard/TenantDashboardProductizationSummaryTest.php:167:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Dashboard/TenantDashboardProductizationSummaryTest.php:177:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Dashboard/TenantDashboardProductizationSummaryTest.php:189:                'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Dashboard/TenantDashboardProductizationSummaryTest.php:235:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Dashboard/TenantDashboardProductizationSummaryTest.php:245:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Dashboard/TenantDashboardProductizationSummaryTest.php:255:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Dashboard/TenantDashboardProductizationSummaryTest.php:297:    $response = $this->get(EnvironmentDashboard::getUrl(panel: 'admin', tenant: $tenant))
tests/Feature/Dashboard/TenantDashboardProductizationSummaryTest.php:316:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Dashboard/TenantDashboardProductizationSummaryTest.php:326:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Dashboard/TenantDashboardProductizationSummaryTest.php:337:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Dashboard/TenantDashboardProductizationSummaryTest.php:384:    $this->get(EnvironmentDashboard::getUrl(panel: 'admin', tenant: $tenant))
tests/Feature/Dashboard/TenantDashboardProductizationSummaryTest.php:401:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Dashboard/TenantDashboardProductizationSummaryTest.php:420:    $this->get(EnvironmentDashboard::getUrl(panel: 'admin', tenant: $tenant))
tests/Feature/Filament/AuditLogDetailInspectionTest.php:32:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/AuditLogDetailInspectionTest.php:51:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/AuditLogDetailInspectionTest.php:74:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/NeedsAttentionWidgetTest.php:50:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/NeedsAttentionWidgetTest.php:60:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/NeedsAttentionWidgetTest.php:138:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/NeedsAttentionWidgetTest.php:202:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/NeedsAttentionWidgetTest.php:240:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/NeedsAttentionWidgetTest.php:310:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/NeedsAttentionWidgetTest.php:333:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/NeedsAttentionWidgetTest.php:338:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/NeedsAttentionWidgetTest.php:384:        ->not->toContain(FindingResource::getUrl('index', ['tab' => 'overdue'], panel: 'admin', tenant: $tenant))
tests/Feature/Filament/NeedsAttentionWidgetTest.php:393:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/NeedsAttentionWidgetTest.php:402:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/NeedsAttentionWidgetTest.php:431:    expect($component->html())->toContain(BackupSetResource::getUrl('index', [
tests/Feature/Filament/NeedsAttentionWidgetTest.php:461:    expect($staleComponent->html())->toContain(BackupSetResource::getUrl('view', [
tests/Feature/Filament/NeedsAttentionWidgetTest.php:495:    expect($degradedComponent->html())->toContain(BackupSetResource::getUrl('view', [
tests/Feature/Filament/NeedsAttentionWidgetTest.php:534:    expect($component->html())->toContain(BackupScheduleResource::getUrl('index', [
tests/Feature/Filament/NeedsAttentionWidgetTest.php:566:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/NeedsAttentionWidgetTest.php:623:    expect($component->html())->toContain(RestoreRunResource::getUrl('index', [
tests/Feature/Filament/NeedsAttentionWidgetTest.php:655:    expect($component->html())->toContain(RestoreRunResource::getUrl('view', [
tests/Feature/Filament/NeedsAttentionWidgetTest.php:670:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/NeedsAttentionWidgetTest.php:742:    expect($component->html())->not->toContain(BackupSetResource::getUrl('view', [
tests/Feature/Filament/BackupSetRelatedNavigationTest.php:17:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/BackupSetRelatedNavigationTest.php:29:    $this->get(BackupSetResource::getUrl('view', ['record' => $backupSet], tenant: $tenant))
tests/Feature/Filament/BackupSetRelatedNavigationTest.php:35:    $this->get(BackupSetResource::getUrl('index', tenant: $tenant))
tests/Feature/Filament/TenantGovernanceAggregateMemoizationTest.php:38:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/TenantGovernanceAggregateMemoizationTest.php:43:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/TenantRBAC/ArchivedTenantRouteAccessTest.php:42:        ->get(ManagedEnvironmentResource::getUrl('view', ['record' => $tenant]))
tests/Feature/TenantRBAC/ArchivedTenantRouteAccessTest.php:98:        ->get(ManagedEnvironmentResource::getUrl('view', ['record' => $archivedTenant]))
tests/Feature/TenantRBAC/ArchivedTenantRouteAccessTest.php:123:        ->get(ManagedEnvironmentResource::getUrl('view', ['record' => $onboardingTenant]))
tests/Feature/Filament/PolicyVersionRestoreViaWizardTest.php:20:        'managed_environment_id' => 'tenant-policy-version-wizard',
tests/Feature/Filament/PolicyVersionRestoreViaWizardTest.php:26:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/PolicyVersionRestoreViaWizardTest.php:34:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/PolicyVersionRestoreViaWizardTest.php:71:    expect($backupSet->managed_environment_id)->toBe($tenant->id);
tests/Feature/Filament/PolicyVersionRestoreViaWizardTest.php:88:        'managed_environment_id' => 'tenant-policy-version-wizard-readonly',
tests/Feature/Filament/PolicyVersionRestoreViaWizardTest.php:94:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/PolicyVersionRestoreViaWizardTest.php:102:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/PolicyVersionRestoreViaWizardTest.php:128:        'managed_environment_id' => 'tenant-policy-version-wizard-quality',
tests/Feature/Filament/PolicyVersionRestoreViaWizardTest.php:134:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/PolicyVersionRestoreViaWizardTest.php:142:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/PolicyVersionRestoreViaWizardTest.php:166:        'managed_environment_id' => 'tenant-policy-version-prefill',
tests/Feature/Filament/PolicyVersionRestoreViaWizardTest.php:172:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/PolicyVersionRestoreViaWizardTest.php:180:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/PolicyVersionRestoreViaWizardTest.php:198:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/PolicyVersionRestoreViaWizardTest.php:210:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/TenantDashboardDbOnlyTest.php:21:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/Filament/TenantDashboardDbOnlyTest.php:28:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/Filament/TenantDashboardDbOnlyTest.php:36:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/TenantDashboardDbOnlyTest.php:43:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/TenantDashboardDbOnlyTest.php:56:        $this->get(EnvironmentDashboard::getUrl(tenant: $tenant))
tests/Feature/Filament/TenantDashboardDbOnlyTest.php:81:        ->get(EnvironmentDashboard::getUrl(tenant: $tenant))
tests/Feature/Filament/ChooseWorkspaceShowsLastUsedRecommendationTest.php:38:        ->get(route('filament.admin.pages.choose-workspace'))
tests/Feature/Filament/AuditLogAuthorizationTest.php:20:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/AuditLogAuthorizationTest.php:38:        ->get(route('admin.monitoring.audit-log'))
tests/Feature/Filament/AuditLogAuthorizationTest.php:59:        ->get(route('admin.monitoring.audit-log'))
tests/Feature/Filament/AuditLogAuthorizationTest.php:87:        ->get(route('admin.monitoring.audit-log').'?event='.(int) $hidden->getKey())
tests/Feature/Alerts/AlertDeliveryDeepLinkFiltersTest.php:52:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/Alerts/AlertDeliveryDeepLinkFiltersTest.php:88:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/Alerts/AlertDeliveryDeepLinkFiltersTest.php:96:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/Alerts/AlertDeliveryDeepLinkFiltersTest.php:109:it('filters deliveries by managed_environment_id for multi-tenant members', function (): void {
tests/Feature/Alerts/AlertDeliveryDeepLinkFiltersTest.php:133:        'managed_environment_id' => (int) $tenantA->getKey(),
tests/Feature/Alerts/AlertDeliveryDeepLinkFiltersTest.php:141:        'managed_environment_id' => (int) $tenantB->getKey(),
tests/Feature/Alerts/AlertDeliveryDeepLinkFiltersTest.php:149:        ->filterTable('managed_environment_id', (string) $tenantA->getKey())
tests/Feature/Alerts/AlertDeliveryDeepLinkFiltersTest.php:173:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Alerts/AlertDeliveryDeepLinkFiltersTest.php:181:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Alerts/AlertDeliveryDeepLinkFiltersTest.php:192:            'back_url' => \App\Filament\Clusters\Monitoring\AlertsCluster::getUrl(panel: 'admin'),
tests/Feature/Alerts/AlertDeliveryDeepLinkFiltersTest.php:226:        'managed_environment_id' => (int) $tenantA->getKey(),
tests/Feature/Alerts/AlertDeliveryDeepLinkFiltersTest.php:234:        'managed_environment_id' => (int) $tenantB->getKey(),
tests/Feature/Alerts/AlertDeliveryDeepLinkFiltersTest.php:248:    $component = Livewire::withHeaders(['referer' => AlertDeliveryResource::getUrl(panel: 'admin')])
tests/Feature/Alerts/AlertDeliveryDeepLinkFiltersTest.php:252:    expect(data_get(session()->get($component->instance()->getTableFiltersSessionKey()), 'managed_environment_id.value'))
tests/Feature/Alerts/AlertDeliveryDeepLinkFiltersTest.php:261:    Livewire::withHeaders(['referer' => AlertDeliveryResource::getUrl(panel: 'admin')])
tests/Feature/Alerts/AlertDeliveryDeepLinkFiltersTest.php:263:        ->assertSet('tableFilters.managed_environment_id.value', null)
tests/Feature/Alerts/AlertDeliveryDeepLinkFiltersTest.php:264:        ->assertSet('tableFilters.status.value', AlertDelivery::STATUS_SENT)
tests/Feature/Alerts/AlertDeliveryDeepLinkFiltersTest.php:306:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Alerts/AlertDeliveryDeepLinkFiltersTest.php:315:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Alerts/AlertDeliveryDeepLinkFiltersTest.php:324:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Alerts/AlertDeliveryDeepLinkFiltersTest.php:333:        ->set('tableFilters.created_at.from', now()->subDays(2)->toDateString())
tests/Feature/Alerts/AlertDeliveryDeepLinkFiltersTest.php:334:        ->set('tableFilters.created_at.until', now()->toDateString())
tests/Feature/Alerts/AlertDeliveryDeepLinkFiltersTest.php:360:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Alerts/AlertDeliveryDeepLinkFiltersTest.php:369:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Alerts/AlertDeliveryDeepLinkFiltersTest.php:378:        ->set('tableFilters.created_at.from', now()->subDays(2)->toDateString())
tests/Feature/Alerts/AlertDeliveryDeepLinkFiltersTest.php:379:        ->set('tableFilters.created_at.until', now()->toDateString())
tests/Feature/Alerts/AlertDeliveryDeepLinkFiltersTest.php:384:        ->set('tableFilters.status.value', null)
tests/Feature/Alerts/AlertDeliveryDeepLinkFiltersTest.php:385:        ->set('tableFilters.created_at.from', null)
tests/Feature/Alerts/AlertDeliveryDeepLinkFiltersTest.php:386:        ->set('tableFilters.created_at.until', null)
tests/Feature/Filament/InventoryItemResourceTest.php:28:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/Filament/InventoryItemResourceTest.php:36:        'managed_environment_id' => $otherTenant->getKey(),
tests/Feature/Filament/InventoryItemResourceTest.php:44:        ->get(InventoryItemResource::getUrl('index', tenant: $tenant))
tests/Feature/Filament/InventoryItemResourceTest.php:58:        ->get(InventoryItemResource::getUrl('index', tenant: $tenant))
tests/Feature/Filament/InventoryItemResourceTest.php:74:        ->get(InventoryItemResource::getUrl('index', panel: 'admin', tenant: $tenant))
tests/Feature/Filament/InventoryItemResourceTest.php:97:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/InventoryItemResourceTest.php:105:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/InventoryItemResourceTest.php:129:        ->get(InventoryItemResource::getUrl('index', tenant: $tenant))
tests/Feature/Filament/RestoreRunAdminTenantParityTest.php:35:    ])->get(RestoreRunResource::getUrl('index', panel: 'admin', tenant: $tenantA))
tests/Feature/TenantRBAC/TenantSwitcherScopeTest.php:146:        ->get(route('admin.operations.index', ['workspace' => $activeTenant->workspace]))
tests/Feature/Filament/InventoryItemDependencyEdgesTableTest.php:33:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/InventoryItemDependencyEdgesTableTest.php:38:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/InventoryItemDependencyEdgesTableTest.php:51:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/InventoryItemDependencyEdgesTableTest.php:64:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/InventoryItemDependencyEdgesTableTest.php:116:        'managed_environment_id' => (int) ManagedEnvironment::factory()->create()->getKey(),
tests/Feature/Filament/SettingsCatalogPolicyNormalizedDiffTest.php:86:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/SettingsCatalogPolicyNormalizedDiffTest.php:94:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/SettingsCatalogPolicyNormalizedDiffTest.php:119:        ->get(PolicyVersionResource::getUrl('view', ['record' => $version], tenant: $tenant));
tests/Feature/Alerts/PermissionMissingAlertTest.php:52:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/Alerts/PermissionMissingAlertTest.php:59:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Alerts/PermissionMissingAlertTest.php:97:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Alerts/PermissionMissingAlertTest.php:127:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/Alerts/PermissionMissingAlertTest.php:134:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Alerts/PermissionMissingAlertTest.php:172:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/Alerts/PermissionMissingAlertTest.php:195:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/Alerts/PermissionMissingAlertTest.php:212:        ->and($events[0]['managed_environment_id'])->toBe((int) $tenant->getKey())
tests/Feature/Filament/EnvironmentContextSurfaceCopyTest.php:16:        ->get(EnvironmentDashboard::getUrl(tenant: $environment))
tests/Feature/Filament/EnvironmentContextSurfaceCopyTest.php:31:        ->get(route('admin.operations.index', ['workspace' => $environment->workspace]))
tests/Feature/Filament/BaselineProfileCompareStartSurfaceTest.php:28:function baselineProfileHeaderActions(Testable $component): array
tests/Feature/Filament/BaselineProfileCompareStartSurfaceTest.php:32:    if ($instance->getCachedHeaderActions() === []) {
tests/Feature/Filament/BaselineProfileCompareStartSurfaceTest.php:33:        $instance->cacheInteractsWithHeaderActions();
tests/Feature/Filament/BaselineProfileCompareStartSurfaceTest.php:36:    return $instance->getCachedHeaderActions();
tests/Feature/Filament/BaselineProfileCompareStartSurfaceTest.php:68:        ->callAction('compareNow', data: ['target_environment_id' => (int) $tenant->getKey()])
tests/Feature/Filament/BaselineProfileCompareStartSurfaceTest.php:89:        ->callAction('compareNow', data: ['target_environment_id' => (int) $tenant->getKey()])
tests/Feature/Filament/BaselineProfileCompareStartSurfaceTest.php:95:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/Filament/BaselineProfileCompareStartSurfaceTest.php:119:        ->callAction('compareNow', data: ['target_environment_id' => (int) $tenant->getKey()])
tests/Feature/Filament/BaselineProfileCompareStartSurfaceTest.php:166:        ->callAction('compareNow', data: ['target_environment_id' => (int) $tenant->getKey()])
tests/Feature/Filament/BaselineProfileCompareStartSurfaceTest.php:188:    $topLevelActionNames = collect(baselineProfileHeaderActions($component))
tests/Feature/Filament/BaselineProfileCompareStartSurfaceTest.php:195:    $moreGroup = collect(baselineProfileHeaderActions($component))
tests/Feature/Filament/BaselineProfileCompareStartSurfaceTest.php:274:        ->callAction('compareNow', data: ['target_environment_id' => (int) $tenant->getKey()])
tests/Feature/TenantRBAC/TenantDiagnosticsAccessTest.php:41:        $table->dropUnique(['managed_environment_id', 'user_id']);
tests/Feature/TenantRBAC/TenantDiagnosticsAccessTest.php:45:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/BaselineGapSurfacesDbOnlyRenderTest.php:67:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/BaselineGapSurfacesDbOnlyRenderTest.php:112:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/BaselineGapSurfacesDbOnlyRenderTest.php:117:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/ProviderConnectionsUiEnforcementTest.php:27:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/ProviderConnectionsUiEnforcementTest.php:33:        ->get(ProviderConnectionResource::getUrl('index', tenant: $tenant))
tests/Feature/Filament/ProviderConnectionsUiEnforcementTest.php:45:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/ProviderConnectionsUiEnforcementTest.php:48:        'entra_tenant_id' => '77777777-7777-7777-7777-777777777777',
tests/Feature/Filament/ProviderConnectionsUiEnforcementTest.php:52:        ->get(ProviderConnectionResource::getUrl('view', ['record' => $connection], tenant: $tenant))
tests/Feature/Filament/ProviderConnectionsUiEnforcementTest.php:61:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/Filament/ProviderConnectionsUiEnforcementTest.php:95:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/Alerts/AlertDestinationLastTestStatusTest.php:169:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/WindowsUpdateRingPolicyTest.php:14:        'managed_environment_id' => 'local-tenant',
tests/Feature/Filament/WindowsUpdateRingPolicyTest.php:23:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/WindowsUpdateRingPolicyTest.php:31:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/WindowsUpdateRingPolicyTest.php:52:        ->get(PolicyResource::getUrl('view', ['record' => $policy], tenant: $tenant));
tests/Feature/Filament/WorkspaceOverviewDbOnlyTest.php:53:        'managed_environment_id' => (int) $tenantC->getKey(),
tests/Feature/Filament/WorkspaceOverviewDbOnlyTest.php:66:            ->get(route('admin.workspace.home', ['workspace' => $tenantA->workspace]))
tests/Feature/Filament/PolicyVersionTest.php:17:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/PolicyVersionTest.php:32:        ->get(PolicyVersionResource::getUrl('index', tenant: $tenant))
tests/Feature/Filament/PolicyVersionTest.php:46:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/PolicyVersionTest.php:55:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/PolicyVersionTest.php:80:        ->get(PolicyVersionResource::getUrl('view', ['record' => $version, 'tab' => 'normalized-settings'], tenant: $tenant));
tests/Feature/Filament/PolicyVersionTest.php:99:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/PolicyVersionTest.php:108:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/PolicyVersionTest.php:120:        ->get(PolicyVersionResource::getUrl('view', ['record' => $version], tenant: $tenant))
tests/Feature/Alerts/SlaDueAlertTest.php:45:        'managed_environment_id' => $tenantA->getKey(),
tests/Feature/Alerts/SlaDueAlertTest.php:53:        'managed_environment_id' => $tenantA->getKey(),
tests/Feature/Alerts/SlaDueAlertTest.php:61:        'managed_environment_id' => $tenantA->getKey(),
tests/Feature/Alerts/SlaDueAlertTest.php:69:        'managed_environment_id' => $tenantA->getKey(),
tests/Feature/Alerts/SlaDueAlertTest.php:77:        'managed_environment_id' => $tenantB->getKey(),
tests/Feature/Alerts/SlaDueAlertTest.php:85:        'managed_environment_id' => $tenantC->getKey(),
tests/Feature/Alerts/SlaDueAlertTest.php:95:    $eventsByTenant = collect($events)->keyBy(static fn (array $event): int => (int) $event['managed_environment_id']);
tests/Feature/Alerts/SlaDueAlertTest.php:144:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/Alerts/SlaDueAlertTest.php:152:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/Alerts/SlaDueAlertTest.php:160:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/Alerts/SlaDueAlertTest.php:178:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/Alerts/SlaDueAlertTest.php:207:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/Alerts/SlaDueAlertTest.php:215:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/Filament/EvidenceOverviewDerivedStateMemoizationTest.php:25:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/EvidenceOverviewDerivedStateMemoizationTest.php:92:        ->get(route('admin.evidence.overview'))
tests/Feature/Filament/PolicyListingTest.php:19:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/PolicyListingTest.php:30:        'managed_environment_id' => $otherTenant->id,
tests/Feature/Filament/PolicyListingTest.php:51:        ->get(PolicyResource::getUrl(panel: 'admin', tenant: $tenant))
tests/Feature/Filament/PolicyListingTest.php:70:        ->set('tableFilters.visibility.value', 'active');
tests/Feature/Filament/PolicyListingTest.php:87:        ->assertSet('tableFilters.visibility.value', 'active');
tests/Feature/Filament/MalformedSnapshotWarningTest.php:15:        'managed_environment_id' => 'local-tenant',
tests/Feature/Filament/MalformedSnapshotWarningTest.php:24:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/MalformedSnapshotWarningTest.php:32:        'managed_environment_id' => $tenant->id,
tests/Feature/Filament/MalformedSnapshotWarningTest.php:43:        ->get(PolicyResource::getUrl('view', ['record' => $policy], tenant: $tenant));
tests/Feature/Filament/MalformedSnapshotWarningTest.php:48:        ->get(PolicyVersionResource::getUrl('view', ['record' => $version], tenant: $tenant));
tests/Feature/Alerts/BaselineCompareFailedAlertTest.php:73:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Alerts/BaselineCompareFailedAlertTest.php:85:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Alerts/BaselineCompareFailedAlertTest.php:97:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Alerts/BaselineCompareFailedAlertTest.php:106:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Alerts/BaselineCompareFailedAlertTest.php:122:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Alerts/BaselineCompareFailedAlertTest.php:133:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Alerts/BaselineCompareFailedAlertTest.php:149:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Alerts/BaselineCompareFailedAlertTest.php:158:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/TenantDashboardTenantScopeTest.php:29:        'managed_environment_id' => $otherTenant->getKey(),
tests/Feature/Filament/TenantDashboardTenantScopeTest.php:35:        'managed_environment_id' => $otherTenant->getKey(),
tests/Feature/Filament/TenantDashboardTenantScopeTest.php:41:        'managed_environment_id' => $otherTenant->getKey(),
tests/Feature/Filament/TenantDashboardTenantScopeTest.php:50:    $this->get(EnvironmentDashboard::getUrl(tenant: $tenant))
tests/Feature/Filament/TenantDashboardTenantScopeTest.php:101:    $this->get(EnvironmentDashboard::getUrl(tenant: $tenant))
tests/Feature/Filament/TenantDashboardTenantScopeTest.php:104:    $this->get(BackupSetResource::getUrl('index', tenant: $tenant))
tests/Feature/Filament/BackupQualityTruthSurfaceTest.php:55:    $this->get(BackupSetResource::getUrl('index', tenant: $tenant))
tests/Feature/TenantRBAC/LastOwnerGuardTest.php:14:        ->where('managed_environment_id', $tenant->getKey())
tests/Feature/TenantRBAC/LastOwnerGuardTest.php:32:        ->where('managed_environment_id', $tenant->getKey())
tests/Feature/Alerts/BaselineHighDriftAlertTest.php:79:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Alerts/BaselineHighDriftAlertTest.php:90:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Alerts/BaselineHighDriftAlertTest.php:101:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Alerts/BaselineHighDriftAlertTest.php:112:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Alerts/BaselineHighDriftAlertTest.php:123:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Alerts/BaselineHighDriftAlertTest.php:141:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Alerts/BaselineHighDriftAlertTest.php:154:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Alerts/BaselineHighDriftAlertTest.php:172:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Alerts/BaselineHighDriftAlertTest.php:182:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/BaselineSnapshotResolvedReferencePresentationTest.php:32:    $this->get(BaselineSnapshotResource::getUrl('view', ['record' => $snapshot], panel: 'admin'))
tests/Feature/Filament/WorkspaceOverviewSummaryMetricsTest.php:40:        'managed_environment_id' => (int) $tenantExpiring->getKey(),
tests/Feature/Filament/WorkspaceOverviewSummaryMetricsTest.php:45:        'managed_environment_id' => (int) $tenantExpiring->getKey(),
tests/Feature/Filament/WorkspaceOverviewSummaryMetricsTest.php:108:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/WorkspaceOverviewSummaryMetricsTest.php:115:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/WorkspaceOverviewSummaryMetricsTest.php:211:        ->and($metrics->get('backup_attention_tenants')['destination_url'])->toStartWith(\App\Filament\Resources\ManagedEnvironmentResource::getUrl(panel: 'admin'))
tests/Feature/Filament/WorkspaceOverviewSummaryMetricsTest.php:219:        ->and($metrics->get('recovery_attention_tenants')['destination_url'])->toStartWith(\App\Filament\Resources\ManagedEnvironmentResource::getUrl(panel: 'admin'))
tests/Feature/Filament/BaselineSnapshotRelatedContextTest.php:48:        ->get(BaselineSnapshotResource::getUrl('view', ['record' => $snapshot], panel: 'admin'))
tests/Feature/Filament/BaselineSnapshotRelatedContextTest.php:52:        ->assertSee(BaselineProfileResource::getUrl('view', ['record' => $profile], panel: 'admin'), false)
tests/Feature/Filament/BaselineSnapshotRelatedContextTest.php:57:        ->get(BaselineSnapshotResource::getUrl(panel: 'admin'))
tests/Feature/Filament/BaselineSnapshotRelatedContextTest.php:60:        ->assertSee(BaselineProfileResource::getUrl('view', ['record' => $profile], panel: 'admin'), false);
tests/Feature/Filament/Resources/TenantResource/TenantWorkspaceRemovalTest.php:54:            ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/Filament/Resources/TenantResource/TenantWorkspaceRemovalTest.php:60:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/Filament/Resources/TenantResource/TenantWorkspaceRemovalTest.php:82:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/Filament/Resources/TenantResource/TenantWorkspaceRemovalTest.php:113:            ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/TenantRBAC/BreakGlassRecoveryTest.php:18:    expect(AuditLog::query()->where('managed_environment_id', $tenant->getKey())->where('action', 'tenant_membership.bootstrap_recover')->exists())
tests/Feature/BulkDeletePoliciesAsyncTest.php:18:    $policies = Policy::factory()->count(25)->create(['managed_environment_id' => $tenant->id]);
tests/Feature/BulkExportFailuresTest.php:18:    $okPolicy = Policy::factory()->create(['managed_environment_id' => $tenant->id]);
tests/Feature/BulkExportFailuresTest.php:20:        'managed_environment_id' => $tenant->id,
tests/Feature/BulkExportFailuresTest.php:28:    $missingVersionPolicy = Policy::factory()->create(['managed_environment_id' => $tenant->id]);
tests/Feature/BulkExportFailuresTest.php:64:        'managed_environment_id' => $tenant->id,
app/Support/Ai/AiDecisionAuditMetadataFactory.php:23:            'managed_environment_id' => $request->tenant?->getKey(),
tests/Feature/Alerts/FindingsAlertRuleIntegrationTest.php:111:        'tenant_scope_mode' => AlertRule::TENANT_SCOPE_ALLOWLIST,
tests/Feature/Alerts/FindingsAlertRuleIntegrationTest.php:220:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Alerts/FindingsAlertRuleIntegrationTest.php:254:        ->get(AlertRuleResource::getUrl(panel: 'admin'))
tests/Feature/Alerts/FindingsAlertRuleIntegrationTest.php:258:        ->get(AlertDeliveryResource::getUrl(panel: 'admin'))
tests/Feature/Alerts/FindingsAlertRuleIntegrationTest.php:262:        ->get(AlertRuleResource::getUrl('create', panel: 'admin'))
tests/Feature/Alerts/FindingsAlertRuleIntegrationTest.php:271:        ->get(AlertRuleResource::getUrl(panel: 'admin'))
tests/Feature/Alerts/FindingsAlertRuleIntegrationTest.php:275:        ->get(AlertDeliveryResource::getUrl(panel: 'admin'))
tests/Feature/Alerts/FindingsAlertRuleIntegrationTest.php:282:        ->get(AlertRuleResource::getUrl(panel: 'admin'))
tests/Feature/Filament/Resources/Workspaces/WorkspaceClosureStatusTest.php:39:        ->get(WorkspaceResource::getUrl('view', ['record' => $workspace], panel: 'admin'))
tests/Feature/Inventory/InventorySyncStartSurfaceTest.php:42:        ->where('managed_environment_id', $tenant->getKey())
tests/Feature/BackupServiceVersionReuseTest.php:24:        'managed_environment_id' => $tenant->id,
tests/Feature/BackupServiceVersionReuseTest.php:29:        'managed_environment_id' => $tenant->id,
tests/Feature/BackupServiceVersionReuseTest.php:35:        'managed_environment_id' => $tenant->id,
tests/Feature/BackupServiceVersionReuseTest.php:85:        'managed_environment_id' => $tenant->id,
tests/Feature/BackupServiceVersionReuseTest.php:90:        'managed_environment_id' => $tenant->id,
tests/Feature/BackupServiceVersionReuseTest.php:96:        'managed_environment_id' => $tenant->id,
tests/Feature/BackupServiceVersionReuseTest.php:110:                    'managed_environment_id' => $tenant->id,
tests/Feature/BackupServiceVersionReuseTest.php:227:    expect(PolicyVersion::query()->where('managed_environment_id', $tenant->id)->where('policy_type', 'intuneRoleDefinition')->count())->toBe(1);
tests/Feature/RunAuthorizationTenantIsolationTest.php:34:        'managed_environment_id' => (int) $tenantA->getKey(),
tests/Feature/RunAuthorizationTenantIsolationTest.php:43:        'managed_environment_id' => (int) $tenantB->getKey(),
tests/Feature/RunAuthorizationTenantIsolationTest.php:60:        ->assertSet('tableFilters.managed_environment_id.value', (string) $tenantA->getKey());
tests/Feature/RunAuthorizationTenantIsolationTest.php:81:        'managed_environment_id' => (int) $tenantB->getKey(),
tests/Feature/RunAuthorizationTenantIsolationTest.php:98:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/RunAuthorizationTenantIsolationTest.php:130:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/RunAuthorizationTenantIsolationTest.php:168:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/RunAuthorizationTenantIsolationTest.php:214:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/RunAuthorizationTenantIsolationTest.php:235:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/RunAuthorizationTenantIsolationTest.php:281:        'managed_environment_id' => (int) $tenantB->getKey(),
tests/Feature/RunAuthorizationTenantIsolationTest.php:285:        'managed_environment_id' => (int) $tenantB->getKey(),
tests/Feature/Alerts/AlertDestinationViewLastDeliveryLinkTest.php:105:    $url = $component->instance()->getAction('view_last_delivery')->getUrl();
tests/Feature/Intune/PolicySnapshotFingerprintIsolationTest.php:17:        'managed_environment_id' => (int) $tenantA->getKey(),
tests/Feature/Intune/PolicySnapshotFingerprintIsolationTest.php:22:        'managed_environment_id' => (int) $tenantB->getKey(),
tests/Feature/Filament/Resources/FindingResourceOwnershipSemanticsTest.php:154:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Filament/Resources/FindingResourceOwnershipSemanticsTest.php:175:    $this->get(FindingResource::getUrl('view', ['record' => $findingWithException], panel: 'admin', tenant: $tenant))
tests/Feature/Filament/Resources/FindingResourceOwnershipSemanticsTest.php:212:        ->get(FindingResource::getUrl('index', panel: 'admin', tenant: $tenant))
tests/Feature/Filament/Resources/FindingResourceOwnershipSemanticsTest.php:216:        ->get(FindingResource::getUrl('view', ['record' => $finding], panel: 'admin', tenant: $tenant))
tests/Feature/Filament/Resources/FindingResourceOwnershipSemanticsTest.php:225:        ->get(FindingResource::getUrl('index', panel: 'admin', tenant: $tenant))
tests/Feature/Filament/Resources/FindingResourceOwnershipSemanticsTest.php:229:        ->get(FindingResource::getUrl('view', ['record' => $finding], panel: 'admin', tenant: $tenant))
tests/Feature/Monitoring/OperationsKpiHeaderTenantContextTest.php:41:        'managed_environment_id' => (int) $tenantA->getKey(),
tests/Feature/Monitoring/OperationsKpiHeaderTenantContextTest.php:48:        'managed_environment_id' => (int) $tenantA->getKey(),
tests/Feature/Monitoring/OperationsKpiHeaderTenantContextTest.php:57:        'managed_environment_id' => (int) $tenantB->getKey(),
tests/Feature/Monitoring/OperationsKpiHeaderTenantContextTest.php:72:        'referer' => route('admin.operations.index', ['workspace' => $tenantA->workspace]),
tests/Feature/Monitoring/OperationsKpiHeaderTenantContextTest.php:93:        'managed_environment_id' => (int) $tenantA->getKey(),
tests/Feature/Monitoring/OperationsKpiHeaderTenantContextTest.php:100:        'managed_environment_id' => (int) $tenantB->getKey(),
tests/Feature/Monitoring/OperationsKpiHeaderTenantContextTest.php:117:        'referer' => route('admin.operations.index', ['workspace' => $tenantA->workspace]),
tests/Feature/SupportDiagnostics/ProductTelemetrySupportDiagnosticsCaptureTest.php:52:        ->and($event->managed_environment_id)->toBe((int) $tenant->getKey())
tests/Feature/SupportDiagnostics/ProductTelemetrySupportDiagnosticsCaptureTest.php:86:        ->and($event->managed_environment_id)->toBe((int) $tenant->getKey())
tests/Feature/Alerts/AlertDestinationSendTestMessageTest.php:45:    expect($delivery->managed_environment_id)->toBeNull();
tests/Feature/Alerts/AlertDestinationSendTestMessageTest.php:104:    $this->get(AlertDestinationResource::getUrl('edit', ['record' => $destination], panel: 'admin'))
tests/Feature/Alerts/AlertDestinationSendTestMessageTest.php:123:        ->get(AlertDestinationResource::getUrl('edit', ['record' => $destination], panel: 'admin'))
tests/Feature/TermsAndConditionsPolicyTypeTest.php:97:    $tenant = ManagedEnvironment::factory()->create(['managed_environment_id' => 'tenant-1']);
tests/Feature/TermsAndConditionsPolicyTypeTest.php:100:        'managed_environment_id' => $tenant->id,
tests/Feature/TermsAndConditionsPolicyTypeTest.php:107:        'managed_environment_id' => $tenant->id,
tests/Feature/TermsAndConditionsPolicyTypeTest.php:113:        'managed_environment_id' => $tenant->id,
tests/Feature/TermsAndConditionsPolicyTypeTest.php:218:    expect(Policy::query()->where('managed_environment_id', $tenant->id)->where('policy_type', 'termsAndConditions')->count())
tests/Feature/Intune/PolicySnapshotRedactionTest.php:21:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Inventory/InventorySyncButtonTest.php:36:        ->where('managed_environment_id', $tenant->id)
tests/Feature/Inventory/InventorySyncButtonTest.php:72:        ->where('managed_environment_id', $tenant->id)
tests/Feature/Inventory/InventorySyncButtonTest.php:103:        ->where('managed_environment_id', $tenant->id)
tests/Feature/Inventory/InventorySyncButtonTest.php:134:        ->where('managed_environment_id', $tenant->id)
tests/Feature/Inventory/InventorySyncButtonTest.php:191:        ->where('managed_environment_id', $tenant->id)
tests/Feature/Inventory/InventorySyncButtonTest.php:214:        ->callAction('run_inventory_sync', data: ['managed_environment_id' => $tenantB->getKey(), 'policy_types' => $allTypes])
tests/Feature/Inventory/InventorySyncButtonTest.php:219:    expect(OperationRun::query()->where('managed_environment_id', $tenantB->id)->where('type', 'inventory.sync')->exists())->toBeFalse();
tests/Feature/Inventory/InventorySyncButtonTest.php:220:    expect(OperationRun::query()->where('managed_environment_id', $tenantB->id)->exists())->toBeFalse();
tests/Feature/Inventory/InventorySyncButtonTest.php:256:    expect(OperationRun::query()->where('managed_environment_id', $tenant->id)->where('type', 'inventory.sync')->count())->toBe(1);
tests/Feature/Inventory/InventorySyncButtonTest.php:271:    expect(OperationRun::query()->where('managed_environment_id', $tenant->id)->where('type', 'inventory.sync')->exists())->toBeFalse();
tests/Feature/Monitoring/AuditLogInspectFlowTest.php:19:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Monitoring/AuditLogInspectFlowTest.php:57:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Monitoring/AuditLogInspectFlowTest.php:65:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Monitoring/AuditLogInspectFlowTest.php:80:        'managed_environment_id' => null,
tests/Feature/Monitoring/AuditLogInspectFlowTest.php:118:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Monitoring/AuditLogInspectFlowTest.php:135:        'managed_environment_id' => (int) $foreignTenant->getKey(),
tests/Feature/Monitoring/AuditLogInspectFlowTest.php:169:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Monitoring/AuditLogInspectFlowTest.php:177:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Monitoring/AuditLogInspectFlowTest.php:192:        ->get(route('admin.monitoring.audit-log'))
tests/Feature/Monitoring/AuditLogInspectFlowTest.php:199:        ->get(route('admin.monitoring.audit-log', ['event' => (int) $audit->getKey()]))
tests/Feature/Monitoring/AuditLogInspectFlowTest.php:210:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/SupportDiagnostics/ProductKnowledgeSupportDiagnosticHelpTest.php:57:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/InventoryItemDependenciesTest.php:29:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/InventoryItemDependenciesTest.php:34:    $url = InventoryItemResource::getUrl('view', ['record' => $item], panel: 'admin').'?tenant='.(string) $tenant->external_id;
tests/Feature/InventoryItemDependenciesTest.php:39:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/InventoryItemDependenciesTest.php:65:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/InventoryItemDependenciesTest.php:70:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/InventoryItemDependenciesTest.php:77:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/InventoryItemDependenciesTest.php:90:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/InventoryItemDependenciesTest.php:98:    $url = InventoryItemResource::getUrl('view', ['record' => $item], panel: 'admin').'?tenant='.(string) $tenant->external_id.'&direction=outbound';
tests/Feature/InventoryItemDependenciesTest.php:118:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/InventoryItemDependenciesTest.php:124:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/InventoryItemDependenciesTest.php:134:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/InventoryItemDependenciesTest.php:143:    $url = InventoryItemResource::getUrl('view', ['record' => $item], panel: 'admin')
tests/Feature/InventoryItemDependenciesTest.php:160:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/InventoryItemDependenciesTest.php:166:    // Same source_id, but different managed_environment_id: must not be rendered.
tests/Feature/InventoryItemDependenciesTest.php:168:        'managed_environment_id' => $otherTenant->getKey(),
tests/Feature/InventoryItemDependenciesTest.php:177:    $url = InventoryItemResource::getUrl('view', ['record' => $item], panel: 'admin').'?tenant='.(string) $tenant->external_id;
tests/Feature/InventoryItemDependenciesTest.php:191:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/InventoryItemDependenciesTest.php:196:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/InventoryItemDependenciesTest.php:208:    $url = InventoryItemResource::getUrl('view', ['record' => $item], panel: 'admin').'?tenant='.(string) $tenant->external_id;
tests/Feature/InventoryItemDependenciesTest.php:222:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/InventoryItemDependenciesTest.php:227:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/InventoryItemDependenciesTest.php:234:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/InventoryItemDependenciesTest.php:241:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/InventoryItemDependenciesTest.php:254:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/InventoryItemDependenciesTest.php:267:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/InventoryItemDependenciesTest.php:279:    $url = InventoryItemResource::getUrl('view', ['record' => $item], panel: 'admin').'?tenant='.(string) $tenant->external_id;
tests/Feature/InventoryItemDependenciesTest.php:304:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/InventoryItemDependenciesTest.php:309:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/InventoryItemDependenciesTest.php:316:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/InventoryItemDependenciesTest.php:328:    $url = InventoryItemResource::getUrl('view', ['record' => $item], panel: 'admin').'?tenant='.(string) $tenant->external_id;
tests/Feature/InventoryItemDependenciesTest.php:339:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/InventoryItemDependenciesTest.php:343:    $url = InventoryItemResource::getUrl('view', ['record' => $item], panel: 'admin').'?tenant='.(string) $tenant->external_id;
tests/Feature/SupportDiagnostics/OperationRunSupportDiagnosticActionTest.php:46:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/SupportDiagnostics/OperationRunSupportDiagnosticActionTest.php:76:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/SupportDiagnostics/OperationRunSupportDiagnosticActionTest.php:84:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/SupportDiagnostics/OperationRunSupportDiagnosticActionTest.php:94:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/SupportDiagnostics/OperationRunSupportDiagnosticActionTest.php:110:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/SupportDiagnostics/OperationRunSupportDiagnosticActionTest.php:118:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/SupportDiagnostics/OperationRunSupportDiagnosticActionTest.php:129:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/SupportDiagnostics/OperationRunSupportDiagnosticActionTest.php:184:        'managed_environment_id' => (int) $allowedTenant->getKey(),
tests/Feature/SupportDiagnostics/OperationRunSupportDiagnosticActionTest.php:193:        'managed_environment_id' => (int) $tenant->getKey(),
app/Support/Links/RequiredPermissionsLinks.php:43:            ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/Findings/FindingsIntakeQueueTest.php:167:        ->assertSet('tableFilters.managed_environment_id.value', (string) $tenantB->getKey())
tests/Feature/Findings/FindingsIntakeQueueTest.php:223:        ->assertSet('tableFilters.managed_environment_id.value', (string) $tenantB->getKey())
tests/Feature/Findings/FindingsIntakeQueueTest.php:312:    expect($detailUrl)->toContain(FindingResource::getUrl('view', ['record' => $finding], panel: 'admin', tenant: $tenant))
tests/Feature/SupportDiagnostics/SupportDiagnosticAuditTest.php:51:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/SupportDiagnostics/SupportDiagnosticAuditTest.php:78:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/SupportDiagnostics/SupportDiagnosticAuditTest.php:88:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Inventory/InventorySyncServiceTest.php:87:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/Inventory/InventorySyncServiceTest.php:94:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Inventory/InventorySyncServiceTest.php:97:            'entra_tenant_id' => $tenant->managed_environment_id,
tests/Feature/Inventory/InventorySyncServiceTest.php:172:    $item = \App\Models\InventoryItem::query()->where('managed_environment_id', $tenant->id)->first();
tests/Feature/Inventory/InventorySyncServiceTest.php:179:    $items = \App\Models\InventoryItem::query()->where('managed_environment_id', $tenant->id)->get();
tests/Feature/Inventory/InventorySyncServiceTest.php:212:        ->where('managed_environment_id', $tenant->id)
tests/Feature/Inventory/InventorySyncServiceTest.php:219:        ->where('managed_environment_id', $tenant->id)
tests/Feature/Inventory/InventorySyncServiceTest.php:226:        ->where('managed_environment_id', $tenant->id)
tests/Feature/Inventory/InventorySyncServiceTest.php:276:        ->where('managed_environment_id', $tenant->id)
tests/Feature/Inventory/InventorySyncServiceTest.php:289:        ->where('managed_environment_id', $tenant->id)
tests/Feature/Inventory/InventorySyncServiceTest.php:307:        ->where('managed_environment_id', $tenant->id)
tests/Feature/Inventory/InventorySyncServiceTest.php:345:        ->where('managed_environment_id', $tenant->id)
tests/Feature/Inventory/InventorySyncServiceTest.php:376:        ->where('managed_environment_id', $tenant->id)
tests/Feature/Inventory/InventorySyncServiceTest.php:479:        ->where('managed_environment_id', $tenant->id)
tests/Feature/Inventory/InventorySyncServiceTest.php:485:        ->where('managed_environment_id', $tenant->id)
tests/Feature/Inventory/InventorySyncServiceTest.php:491:        ->where('managed_environment_id', $tenant->id)
tests/Feature/Inventory/InventorySyncServiceTest.php:512:        'managed_environment_id' => $tenant->id,
tests/Feature/SupportDiagnostics/TenantSupportDiagnosticActionTest.php:45:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/SupportDiagnostics/TenantSupportDiagnosticActionTest.php:71:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/SupportDiagnostics/TenantSupportDiagnosticActionTest.php:79:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/SupportDiagnostics/TenantSupportDiagnosticActionTest.php:89:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/SupportDiagnostics/TenantSupportDiagnosticActionTest.php:105:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/SupportDiagnostics/TenantSupportDiagnosticActionTest.php:114:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/SupportDiagnostics/TenantSupportDiagnosticActionTest.php:125:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/SupportDiagnostics/TenantSupportDiagnosticActionTest.php:176:        'managed_environment_id' => (int) $allowedTenant->getKey(),
tests/Feature/SupportDiagnostics/TenantSupportDiagnosticActionTest.php:187:        ->get(EnvironmentDashboard::getUrl(panel: 'admin', tenant: $tenant))
tests/Feature/RestoreRiskChecksWizardTest.php:24:        'managed_environment_id' => 'tenant-1',
tests/Feature/RestoreRiskChecksWizardTest.php:34:        'managed_environment_id' => $tenant->id,
tests/Feature/RestoreRiskChecksWizardTest.php:42:        'managed_environment_id' => $tenant->id,
tests/Feature/RestoreRiskChecksWizardTest.php:49:        'managed_environment_id' => $tenant->id,
tests/Feature/RestoreRiskChecksWizardTest.php:143:        'managed_environment_id' => 'tenant-1',
tests/Feature/RestoreRiskChecksWizardTest.php:153:        'managed_environment_id' => $tenant->id,
tests/Feature/RestoreRiskChecksWizardTest.php:161:        'managed_environment_id' => $tenant->id,
tests/Feature/RestoreRiskChecksWizardTest.php:168:        'managed_environment_id' => $tenant->id,
tests/Feature/RestoreRiskChecksWizardTest.php:238:        'managed_environment_id' => 'tenant-drift',
tests/Feature/RestoreRiskChecksWizardTest.php:248:        'managed_environment_id' => $tenant->id,
tests/Feature/RestoreRiskChecksWizardTest.php:256:        'managed_environment_id' => $tenant->id,
tests/Feature/RestoreRiskChecksWizardTest.php:263:        'managed_environment_id' => $tenant->id,
tests/Feature/RestoreRiskChecksWizardTest.php:273:        'managed_environment_id' => $tenant->id,
tests/Feature/RestoreRiskChecksWizardTest.php:317:        'managed_environment_id' => 'tenant-1',
tests/Feature/RestoreRiskChecksWizardTest.php:327:        'managed_environment_id' => $tenant->id,
tests/Feature/RestoreRiskChecksWizardTest.php:335:        'managed_environment_id' => $tenant->id,
tests/Feature/RestoreRiskChecksWizardTest.php:342:        'managed_environment_id' => $tenant->id,
tests/Feature/Monitoring/HeaderContextBarTest.php:27:        ->get(route('admin.operations.index', ['workspace' => $tenant->workspace]))
tests/Feature/Monitoring/HeaderContextBarTest.php:42:    expect($matches[1] ?? null)->toBe(ChooseWorkspace::getUrl(panel: 'admin').'?choose=1');
tests/Feature/Monitoring/HeaderContextBarTest.php:49:        ->post(route('admin.select-environment'), ['managed_environment_id' => (int) $tenant->getKey()])
tests/Feature/Monitoring/HeaderContextBarTest.php:134:        ->get(route('admin.operations.index', ['workspace' => $tenantA->workspace]))
tests/Feature/Monitoring/HeaderContextBarTest.php:156:        ->get(route('admin.operations.index', ['workspace' => $tenantA->workspace]))
tests/Feature/Monitoring/HeaderContextBarTest.php:183:        ->get(route('admin.operations.index', ['workspace' => $tenantA->workspace]))
tests/Feature/Monitoring/HeaderContextBarTest.php:203:        'managed_environment_id' => (int) $tenantA->getKey(),
tests/Feature/Monitoring/HeaderContextBarTest.php:210:        'managed_environment_id' => (int) $tenantB->getKey(),
tests/Feature/Monitoring/HeaderContextBarTest.php:222:        ->get(route('admin.operations.view', ['workspace' => $tenantA->workspace, 'run' => (int) $runA->getKey()]))
tests/Feature/Monitoring/HeaderContextBarTest.php:225:    expect(Filament::getTenant())->toBeNull();
tests/Feature/Monitoring/HeaderContextBarTest.php:231:        ->get(route('admin.operations.index', ['workspace' => $tenantA->workspace]))
tests/Feature/Monitoring/HeaderContextBarTest.php:253:        'managed_environment_id' => (int) $runTenant->getKey(),
tests/Feature/Monitoring/HeaderContextBarTest.php:264:        ->get(route('admin.operations.view', ['workspace' => $runTenant->workspace, 'run' => (int) $run->getKey()]))
tests/Feature/Monitoring/HeaderContextBarTest.php:278:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Monitoring/HeaderContextBarTest.php:289:        ->get(route('admin.operations.view', ['workspace' => $tenant->workspace, 'run' => (int) $run->getKey()]))
tests/Feature/ManagedEnvironment/LegacyTenantCoreGuardTest.php:96:it('keeps first-slice core tables on managed_environment_id instead of tenant_id', function (): void {
tests/Feature/ManagedEnvironment/LegacyTenantCoreGuardTest.php:100:        expect(Schema::hasColumn($table, 'tenant_id'))
tests/Feature/ManagedEnvironment/LegacyTenantCoreGuardTest.php:101:            ->toBeFalse("{$table} must not expose tenant_id after the managed-environment cutover");
tests/Feature/ManagedEnvironment/LegacyTenantCoreGuardTest.php:103:        expect(Schema::hasColumn($table, 'managed_environment_id'))
tests/Feature/ManagedEnvironment/LegacyTenantCoreGuardTest.php:104:            ->toBeTrue("{$table} must expose managed_environment_id after the managed-environment cutover");
tests/Feature/SupportDiagnostics/ProductKnowledgeAuthorizationTest.php:55:        ->get(EnvironmentDashboard::getUrl(panel: 'admin', tenant: $tenant))
tests/Feature/SupportDiagnostics/ProductKnowledgeAuthorizationTest.php:64:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/SupportDiagnostics/ProductKnowledgeAuthorizationTest.php:86:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/SupportDiagnostics/ProductKnowledgeAuthorizationTest.php:131:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/ManagedEnvironment/ManagedEnvironmentPanelContextTest.php:55:        ->assertRedirect(EnvironmentDashboard::getUrl(tenant: $environment));
tests/Feature/ManagedEnvironment/ManagedEnvironmentPanelContextTest.php:69:    expect(EnvironmentDashboard::getUrl(tenant: $environment))
tests/Feature/Monitoring/MonitoringPageStateContractTest.php:43:            'shareableStateKeys' => ['managed_environment_id', 'tenant_scope', 'problemClass', 'activeTab'],
tests/Feature/Monitoring/MonitoringPageStateContractTest.php:52:                'managed_environment_id' => ['stateClass' => 'contextual_prefilter', 'queryRole' => 'durable_restorable', 'shareable' => true, 'restorableOnRefresh' => true],
tests/Feature/Monitoring/MonitoringPageStateContractTest.php:53:                'tenant_scope' => ['stateClass' => 'contextual_prefilter', 'queryRole' => 'durable_restorable', 'shareable' => true, 'restorableOnRefresh' => true],
tests/Feature/Monitoring/MonitoringPageStateContractTest.php:56:                'tableFilters' => ['stateClass' => 'shareable_restorable', 'queryRole' => 'unsupported', 'shareable' => false, 'restorableOnRefresh' => true],
tests/Feature/Monitoring/MonitoringPageStateContractTest.php:76:                'managed_environment_id' => ['stateClass' => 'contextual_prefilter', 'queryRole' => 'durable_restorable', 'shareable' => false, 'restorableOnRefresh' => true],
tests/Feature/Monitoring/MonitoringPageStateContractTest.php:97:                'tableFilters' => ['stateClass' => 'shareable_restorable', 'queryRole' => 'unsupported', 'shareable' => false, 'restorableOnRefresh' => true],
tests/Feature/Monitoring/MonitoringPageStateContractTest.php:107:            'shareableStateKeys' => ['managed_environment_id', 'search'],
tests/Feature/Monitoring/MonitoringPageStateContractTest.php:116:                'managed_environment_id' => ['stateClass' => 'contextual_prefilter', 'queryRole' => 'durable_restorable', 'shareable' => true, 'restorableOnRefresh' => true],
tests/Feature/Monitoring/MonitoringPageStateContractTest.php:118:                'tableFilters' => ['stateClass' => 'shareable_restorable', 'queryRole' => 'unsupported', 'shareable' => false, 'restorableOnRefresh' => true],
tests/Feature/Findings/Concerns/InteractsWithFindingsWorkflow.php:54:            ->where('managed_environment_id', (int) $finding->managed_environment_id)
tests/Feature/Inventory/InventoryLinksNonUuidIdsTest.php:39:            ->where('managed_environment_id', $tenant->getKey())
tests/Feature/SupportDiagnostics/ProviderCapabilityReasonTranslationTest.php:17:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/SupportDiagnostics/ProviderCapabilityReasonTranslationTest.php:18:        'entra_tenant_id' => (string) $tenant->managed_environment_id,
tests/Feature/BackupSets/AddPoliciesStartSurfaceTest.php:33:        'managed_environment_id' => $tenant->id,
tests/Feature/BackupSets/AddPoliciesStartSurfaceTest.php:38:        'managed_environment_id' => $tenant->id,
tests/Feature/BackupSets/AddPoliciesStartSurfaceTest.php:51:        ->where('managed_environment_id', $tenant->getKey())
tests/Feature/SupportDiagnostics/SupportDiagnosticAuthorizationTest.php:54:        ->get(EnvironmentDashboard::getUrl(panel: 'admin', tenant: $tenant))
tests/Feature/SupportDiagnostics/SupportDiagnosticAuthorizationTest.php:89:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/SupportDiagnostics/SupportDiagnosticAuthorizationTest.php:108:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/ManagedEnvironment/ManagedEnvironmentRouteBindingTest.php:16:    $redirect = (string) parse_url(EnvironmentDashboard::getUrl(tenant: $environment), PHP_URL_PATH);
tests/Feature/ManagedEnvironment/ManagedEnvironmentRouteBindingTest.php:19:        ->get(route('admin.local.smoke-login', [
tests/Feature/ManagedEnvironment/ManagedEnvironmentRouteBindingTest.php:72:    $redirect = (string) parse_url(EnvironmentDashboard::getUrl(tenant: $environment), PHP_URL_PATH);
tests/Feature/ManagedEnvironment/ManagedEnvironmentRouteBindingTest.php:81:        ->get(route('admin.local.smoke-login', [
tests/Feature/Monitoring/GovernanceOperationRunSummariesTest.php:45:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Monitoring/GovernanceOperationRunSummariesTest.php:87:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Monitoring/GovernanceOperationRunSummariesTest.php:185:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Monitoring/GovernanceOperationRunSummariesTest.php:222:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Findings/FindingOutcomeSummaryReportingTest.php:47:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Findings/FindingOutcomeSummaryReportingTest.php:58:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/PolicyVersionViewAssignmentsTest.php:15:        'managed_environment_id' => $this->tenant->id,
tests/Feature/PolicyVersionViewAssignmentsTest.php:23:        'managed_environment_id' => $this->tenant->id,
tests/Feature/PolicyVersionViewAssignmentsTest.php:30:    $response = $this->get(PolicyVersionResource::getUrl('view', ['record' => $version], tenant: $this->tenant));
tests/Feature/PolicyVersionViewAssignmentsTest.php:37:        'managed_environment_id' => $this->tenant->id,
tests/Feature/PolicyVersionViewAssignmentsTest.php:71:    $response = $this->get(PolicyVersionResource::getUrl('view', ['record' => $version], tenant: $this->tenant));
tests/Feature/PolicyVersionViewAssignmentsTest.php:83:        'managed_environment_id' => $this->tenant->id,
tests/Feature/PolicyVersionViewAssignmentsTest.php:91:    $response = $this->get(PolicyVersionResource::getUrl('view', ['record' => $version], tenant: $this->tenant));
tests/Feature/PolicyVersionViewAssignmentsTest.php:99:        'managed_environment_id' => $this->tenant->id,
tests/Feature/PolicyVersionViewAssignmentsTest.php:111:    $response = $this->get(PolicyVersionResource::getUrl('view', ['record' => $version], tenant: $this->tenant));
tests/Feature/PolicyVersionViewAssignmentsTest.php:119:        'managed_environment_id' => $this->tenant->id,
tests/Feature/PolicyVersionViewAssignmentsTest.php:124:        'managed_environment_id' => $this->tenant->id,
tests/Feature/PolicyVersionViewAssignmentsTest.php:137:    $response = $this->get(PolicyVersionResource::getUrl('view', ['record' => $version], tenant: $this->tenant));
tests/Feature/PolicyVersionViewAssignmentsTest.php:148:        'managed_environment_id' => $this->tenant->id,
tests/Feature/PolicyVersionViewAssignmentsTest.php:170:    $response = $this->get(PolicyVersionResource::getUrl('view', ['record' => $version], tenant: $this->tenant));
tests/Feature/PolicyVersionViewAssignmentsTest.php:180:        'managed_environment_id' => $this->tenant->id,
tests/Feature/PolicyVersionViewAssignmentsTest.php:202:    $response = $this->get(PolicyVersionResource::getUrl('view', ['record' => $version], tenant: $this->tenant));
tests/Feature/PolicyVersionViewAssignmentsTest.php:212:        'managed_environment_id' => $this->tenant->id,
tests/Feature/PolicyVersionViewAssignmentsTest.php:225:    $response = $this->get(PolicyVersionResource::getUrl('view', ['record' => $version, 'tab' => 'normalized-settings'], tenant: $this->tenant));
tests/Feature/BackupSets/RemovePoliciesStartSurfaceTest.php:33:        'managed_environment_id' => $tenant->id,
tests/Feature/BackupSets/RemovePoliciesStartSurfaceTest.php:52:        ->where('managed_environment_id', $tenant->getKey())
tests/Feature/RestoreRunArchiveGuardTest.php:18:        'managed_environment_id' => $tenant->id,
tests/Feature/RestoreRunArchiveGuardTest.php:25:        'managed_environment_id' => $tenant->id,
tests/Feature/FoundationBackupTest.php:18:        'managed_environment_id' => $this->tenant->id,
tests/Feature/FoundationBackupTest.php:222:    expect(Policy::query()->where('managed_environment_id', $this->tenant->id)->where('policy_type', 'intuneRoleDefinition')->count())->toBe(1);
tests/Feature/FoundationBackupTest.php:223:    expect(PolicyVersion::query()->where('managed_environment_id', $this->tenant->id)->where('policy_type', 'intuneRoleAssignment')->count())->toBe(1);
tests/Feature/Monitoring/OperationsDbOnlyRenderTest.php:14:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Monitoring/ArtifactTruthRunDetailTest.php:61:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Findings/FindingExceptionDecisionRegisterNavigationTest.php:33:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Findings/FindingExceptionDecisionRegisterNavigationTest.php:47:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Findings/FindingExceptionDecisionRegisterNavigationTest.php:60:        backLinkUrl: DecisionRegister::getUrl(panel: 'admin', parameters: [
tests/Feature/Findings/FindingExceptionDecisionRegisterNavigationTest.php:61:            'managed_environment_id' => (string) $tenant->getKey(),
tests/Feature/Findings/FindingExceptionDecisionRegisterNavigationTest.php:66:        FindingExceptionResource::getUrl('view', ['record' => $exception], panel: 'admin', tenant: $tenant)
tests/Feature/Findings/FindingExceptionDecisionRegisterNavigationTest.php:76:        'managed_environment_id' => (string) $tenant->getKey(),
tests/Feature/BackupSets/RemovePoliciesJobNotificationTest.php:15:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/BackupSets/RemovePoliciesJobNotificationTest.php:21:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/BackupSets/RemovePoliciesJobNotificationTest.php:28:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/Monitoring/FindingExceptionsQueueTest.php:33:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Monitoring/FindingExceptionsQueueTest.php:74:        ->filterTable('managed_environment_id', (string) $tenantB->getKey())
tests/Feature/Monitoring/FindingExceptionsQueueTest.php:84:        ->assertSet('tableFilters.managed_environment_id.value', (string) $tenantB->getKey())
tests/Feature/Governance/GovernanceInboxAuthorizationTest.php:34:        ->get(GovernanceInbox::getUrl(panel: 'admin'))
tests/Feature/Governance/GovernanceInboxAuthorizationTest.php:50:        ->get(GovernanceInbox::getUrl(panel: 'admin'))
tests/Feature/Governance/GovernanceInboxAuthorizationTest.php:71:        ->get(GovernanceInbox::getUrl(panel: 'admin'))
tests/Feature/Governance/GovernanceInboxAuthorizationTest.php:81:        ->get(GovernanceInbox::getUrl(panel: 'admin'))
tests/Feature/Governance/GovernanceInboxAuthorizationTest.php:97:        ->get(GovernanceInbox::getUrl(panel: 'admin').'?managed_environment_id='.(string) $hiddenTenant->getKey())
tests/Feature/Monitoring/OperationsTenantScopeTest.php:24:        'managed_environment_id' => $tenantA->getKey(),
tests/Feature/Monitoring/OperationsTenantScopeTest.php:32:        'managed_environment_id' => $tenantB->getKey(),
tests/Feature/Monitoring/OperationsTenantScopeTest.php:44:    Livewire::withHeaders(['referer' => route('admin.operations.index', ['workspace' => $tenantA->workspace])])
tests/Feature/Monitoring/OperationsTenantScopeTest.php:46:        ->withQueryParams(['managed_environment_id' => (string) $tenantA->getKey()])
tests/Feature/Monitoring/OperationsTenantScopeTest.php:50:        ->assertSet('tableFilters.managed_environment_id.value', (string) $tenantA->getKey());
tests/Feature/Monitoring/OperationsTenantScopeTest.php:72:        'managed_environment_id' => $tenantA->getKey(),
tests/Feature/Monitoring/OperationsTenantScopeTest.php:80:        'managed_environment_id' => $tenantB->getKey(),
tests/Feature/Monitoring/OperationsTenantScopeTest.php:95:    Livewire::withHeaders(['referer' => route('admin.operations.index', ['workspace' => $tenantA->workspace])])
tests/Feature/Monitoring/OperationsTenantScopeTest.php:99:        ->assertSet('tableFilters.managed_environment_id.value', null);
tests/Feature/Monitoring/OperationsTenantScopeTest.php:122:        'managed_environment_id' => $tenantA->getKey(),
tests/Feature/Monitoring/OperationsTenantScopeTest.php:130:        'managed_environment_id' => $tenantA->getKey(),
tests/Feature/Monitoring/OperationsTenantScopeTest.php:139:        'managed_environment_id' => $tenantA->getKey(),
tests/Feature/Monitoring/OperationsTenantScopeTest.php:147:        'managed_environment_id' => $tenantA->getKey(),
tests/Feature/Monitoring/OperationsTenantScopeTest.php:155:        'managed_environment_id' => $tenantA->getKey(),
tests/Feature/Monitoring/OperationsTenantScopeTest.php:163:        'managed_environment_id' => $tenantA->getKey(),
tests/Feature/Monitoring/OperationsTenantScopeTest.php:171:        'managed_environment_id' => $tenantB->getKey(),
tests/Feature/Monitoring/OperationsTenantScopeTest.php:179:        'managed_environment_id' => $tenantB->getKey(),
tests/Feature/Monitoring/OperationsTenantScopeTest.php:195:    Livewire::withHeaders(['referer' => route('admin.operations.index', ['workspace' => $tenantA->workspace])])
tests/Feature/Monitoring/OperationsTenantScopeTest.php:238:        'managed_environment_id' => $tenantB->getKey(),
tests/Feature/VersionCaptureWithAssignmentsTest.php:16:        'managed_environment_id' => $this->tenant->id,
tests/Feature/VersionCaptureWithAssignmentsTest.php:310:        'managed_environment_id' => $this->tenant->id,
tests/Feature/VersionCaptureWithAssignmentsTest.php:326:        'managed_environment_id' => $this->tenant->id,
tests/Feature/Monitoring/OperationsDbOnlyRenderingSpec081Test.php:14:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Monitoring/OperationsDbOnlyTest.php:12:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/Monitoring/OperationsDbOnlyTest.php:49:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/Findings/DriftStaleAutoResolveTest.php:28:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Findings/DriftStaleAutoResolveTest.php:37:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Findings/DriftStaleAutoResolveTest.php:49:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Findings/DriftStaleAutoResolveTest.php:88:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Findings/DriftStaleAutoResolveTest.php:97:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/BackupSets/AddPoliciesToBackupSetJobTest.php:24:        'managed_environment_id' => $tenant->id,
tests/Feature/BackupSets/AddPoliciesToBackupSetJobTest.php:31:        'managed_environment_id' => $tenant->id,
tests/Feature/BackupSets/AddPoliciesToBackupSetJobTest.php:36:        'managed_environment_id' => $tenant->id,
tests/Feature/BackupSets/AddPoliciesToBackupSetJobTest.php:41:        'managed_environment_id' => $tenant->id,
tests/Feature/BackupSets/AddPoliciesToBackupSetJobTest.php:49:        'managed_environment_id' => $tenant->id,
tests/Feature/BackupSets/AddPoliciesToBackupSetJobTest.php:157:        'managed_environment_id' => $tenant->id,
tests/Feature/BackupSets/AddPoliciesToBackupSetJobTest.php:164:        'managed_environment_id' => $tenant->id,
tests/Feature/BackupSets/AddPoliciesToBackupSetJobTest.php:169:        'managed_environment_id' => $tenant->id,
tests/Feature/BackupSets/AddPoliciesToBackupSetJobTest.php:174:        'managed_environment_id' => $tenant->id,
tests/Feature/BackupSets/AddPoliciesToBackupSetJobTest.php:182:        'managed_environment_id' => $tenant->id,
tests/Feature/BackupSets/AddPoliciesToBackupSetJobTest.php:331:        'managed_environment_id' => $tenant->id,
tests/Feature/BackupSets/AddPoliciesToBackupSetJobTest.php:338:        'managed_environment_id' => $tenant->id,
tests/Feature/BackupSets/AddPoliciesToBackupSetJobTest.php:345:        'managed_environment_id' => $tenant->id,
tests/Feature/BackupSets/AddPoliciesToBackupSetJobTest.php:353:        'managed_environment_id' => $tenant->id,
tests/Feature/Governance/DecisionRegisterPageTest.php:80:        ->get(DecisionRegister::getUrl(panel: 'admin'))
tests/Feature/Governance/DecisionRegisterPageTest.php:91:        ->get(DecisionRegister::getUrl(panel: 'admin').'?register_state=recently_closed')
tests/Feature/Governance/DecisionRegisterPageTest.php:127:        ->get(DecisionRegister::getUrl(panel: 'admin').'?managed_environment_id='.(string) $alphaTenant->getKey())
tests/Feature/Governance/DecisionRegisterPageTest.php:134:        ->get(DecisionRegister::getUrl(panel: 'admin').'?register_state=recently_closed')
tests/Feature/Governance/DecisionRegisterPageTest.php:156:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Governance/DecisionRegisterPageTest.php:179:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Governance/DecisionRegisterPageTest.php:204:        ->get(DecisionRegister::getUrl(panel: 'admin'))
tests/Feature/Governance/DecisionRegisterPageTest.php:234:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Governance/DecisionRegisterPageTest.php:248:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Governance/DecisionRegisterAuthorizationTest.php:47:        ->get(DecisionRegister::getUrl(panel: 'admin'))
tests/Feature/Governance/DecisionRegisterAuthorizationTest.php:63:        ->get(DecisionRegister::getUrl(panel: 'admin'))
tests/Feature/Governance/DecisionRegisterAuthorizationTest.php:73:        ->get(DecisionRegister::getUrl(panel: 'admin'))
tests/Feature/Governance/DecisionRegisterAuthorizationTest.php:83:        ->get(route('admin.workspace.home', ['workspace' => $tenant->workspace]))
tests/Feature/Governance/DecisionRegisterAuthorizationTest.php:86:    $response->assertDontSee(DecisionRegister::getUrl(panel: 'admin'));
tests/Feature/Governance/DecisionRegisterAuthorizationTest.php:102:        ->get(DecisionRegister::getUrl(panel: 'admin').'?managed_environment_id='.(string) $hiddenTenant->getKey())
tests/Feature/Governance/DecisionRegisterAuthorizationTest.php:121:        ->get(DecisionRegister::getUrl(panel: 'admin'))
tests/Feature/Governance/DecisionRegisterAuthorizationTest.php:141:        ->get(route('admin.workspace.home', ['workspace' => $tenant->workspace]))
tests/Feature/Governance/DecisionRegisterAuthorizationTest.php:144:    $response->assertSee(DecisionRegister::getUrl(panel: 'admin'));
tests/Feature/Governance/DecisionRegisterAuthorizationTest.php:164:        ->get(route('admin.workspace.home', ['workspace' => $tenant->workspace]))
tests/Feature/Governance/DecisionRegisterAuthorizationTest.php:167:    $response->assertSee(DecisionRegister::getUrl(panel: 'admin'));
tests/Feature/Governance/DecisionRegisterAuthorizationTest.php:173:        ->get(DecisionRegister::getUrl(panel: 'admin'))
tests/Feature/Governance/DecisionRegisterAuthorizationTest.php:174:        ->assertRedirect(DecisionRegister::getUrl(panel: 'admin', parameters: ['register_state' => 'recently_closed']));
tests/Feature/Governance/DecisionRegisterAuthorizationTest.php:185:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Governance/DecisionRegisterAuthorizationTest.php:204:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Governance/DecisionRegisterAuthorizationTest.php:213:        ->get(DecisionRegister::getUrl(panel: 'admin'))
tests/Feature/Governance/DecisionRegisterAuthorizationTest.php:235:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Governance/DecisionRegisterAuthorizationTest.php:249:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Monitoring/GovernanceRunExplanationFallbackTest.php:23:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Monitoring/OperationsDashboardDrillthroughTest.php:25:        'managed_environment_id' => (int) $tenantA->getKey(),
tests/Feature/Monitoring/OperationsDashboardDrillthroughTest.php:36:        'managed_environment_id' => (int) $tenantA->getKey(),
tests/Feature/Monitoring/OperationsDashboardDrillthroughTest.php:46:        'managed_environment_id' => (int) $tenantB->getKey(),
tests/Feature/Monitoring/OperationsDashboardDrillthroughTest.php:62:        ->filterTable('managed_environment_id', (string) $tenantA->getKey())
tests/Feature/Monitoring/OperationsDashboardDrillthroughTest.php:78:        'managed_environment_id' => (int) $tenantA->getKey(),
tests/Feature/Monitoring/OperationsDashboardDrillthroughTest.php:88:        'managed_environment_id' => (int) $tenantA->getKey(),
tests/Feature/Monitoring/OperationsDashboardDrillthroughTest.php:97:        'managed_environment_id' => (int) $tenantB->getKey(),
tests/Feature/Monitoring/OperationsDashboardDrillthroughTest.php:112:        ->filterTable('managed_environment_id', (string) $tenantA->getKey())
tests/Feature/Monitoring/OperationsDashboardDrillthroughTest.php:128:        'managed_environment_id' => (int) $tenantA->getKey(),
tests/Feature/Monitoring/OperationsDashboardDrillthroughTest.php:137:        'managed_environment_id' => (int) $tenantA->getKey(),
tests/Feature/Monitoring/OperationsDashboardDrillthroughTest.php:146:        'managed_environment_id' => (int) $tenantA->getKey(),
tests/Feature/Monitoring/OperationsDashboardDrillthroughTest.php:155:        'managed_environment_id' => (int) $tenantA->getKey(),
tests/Feature/Monitoring/OperationsDashboardDrillthroughTest.php:165:        'managed_environment_id' => (int) $tenantA->getKey(),
tests/Feature/Monitoring/OperationsDashboardDrillthroughTest.php:175:        'managed_environment_id' => (int) $tenantB->getKey(),
tests/Feature/Monitoring/OperationsDashboardDrillthroughTest.php:189:        ->filterTable('managed_environment_id', (string) $tenantA->getKey())
tests/Feature/Monitoring/OperationsDashboardDrillthroughTest.php:212:        'managed_environment_id' => (int) $tenantB->getKey(),
tests/Feature/Monitoring/OperationsDashboardDrillthroughTest.php:221:        'managed_environment_id' => (int) $tenantA->getKey(),
tests/Feature/Monitoring/OperationsDashboardDrillthroughTest.php:246:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Monitoring/OperationsDashboardDrillthroughTest.php:274:        ->toBe(route('admin.operations.index', [
tests/Feature/Monitoring/OperationsDashboardDrillthroughTest.php:276:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Monitoring/OperationsDashboardDrillthroughTest.php:284:        ->toBe(route('admin.operations.index', [
tests/Feature/Monitoring/OperationsDashboardDrillthroughTest.php:286:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Monitoring/OperationsDashboardDrillthroughTest.php:296:        ->toBe(route('admin.operations.index', [
tests/Feature/Monitoring/OperationsDashboardDrillthroughTest.php:298:            'tenant_scope' => 'all',
tests/Feature/Monitoring/OperationsDashboardDrillthroughTest.php:315:        'managed_environment_id' => (int) $tenantA->getKey(),
tests/Feature/Monitoring/OperationsDashboardDrillthroughTest.php:326:        'managed_environment_id' => (int) $foreignTenant->getKey(),
tests/Feature/Monitoring/OperationsDashboardDrillthroughTest.php:349:        ->not->toContain('managed_environment_id='.(int) $foreignTenant->getKey());
tests/Feature/Jobs/AppProtectionPolicySyncFilteringTest.php:52:        'managed_environment_id' => 'test-tenant',
tests/Feature/Jobs/AppProtectionPolicySyncFilteringTest.php:61:        'managed_environment_id' => $tenant->id,
tests/Feature/Jobs/AppProtectionPolicySyncFilteringTest.php:94:        ->where('managed_environment_id', $tenant->id)
tests/Feature/Jobs/AppProtectionPolicySyncFilteringTest.php:101:    expect(Policy::where('managed_environment_id', $tenant->id)->where('external_id', 'config-skip')->exists())->toBeFalse();
tests/Feature/Jobs/AppProtectionPolicySyncFilteringTest.php:102:    expect(Policy::where('managed_environment_id', $tenant->id)->where('external_id', 'policy-2')->whereNull('ignored_at')->whereNull('missing_from_provider_at')->exists())->toBeTrue();
tests/Feature/Governance/GovernanceInboxNavigationContextTest.php:42:        backLinkUrl: GovernanceInbox::getUrl(panel: 'admin'),
tests/Feature/Governance/GovernanceInboxNavigationContextTest.php:47:        ->get(GovernanceInbox::getUrl(panel: 'admin'));
tests/Feature/Governance/GovernanceInboxNavigationContextTest.php:52:        MyFindingsInbox::getUrl(panel: 'admin').'?'.http_build_query($context->toQuery()),
tests/Feature/Monitoring/AuditCoverageOperationsTest.php:90:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Monitoring/OperationsCanonicalUrlsTest.php:32:        'managed_environment_id' => (int) $tenantA->getKey(),
tests/Feature/Monitoring/OperationsCanonicalUrlsTest.php:39:        'managed_environment_id' => (int) $tenantB->getKey(),
tests/Feature/Monitoring/OperationsCanonicalUrlsTest.php:62:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Monitoring/OperationsCanonicalUrlsTest.php:96:        'managed_environment_id' => (int) $tenantB->getKey(),
tests/Feature/Monitoring/OperationsCanonicalUrlsTest.php:117:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Monitoring/OperationsCanonicalUrlsTest.php:146:        'managed_environment_id' => (int) $tenantA->getKey(),
tests/Feature/Monitoring/OperationsCanonicalUrlsTest.php:153:        'managed_environment_id' => (int) $tenantB->getKey(),
tests/Feature/Monitoring/OperationsCanonicalUrlsTest.php:168:    Livewire::withHeaders(['referer' => route('admin.operations.index', ['workspace' => $tenantA->workspace])])
tests/Feature/Monitoring/OperationsCanonicalUrlsTest.php:172:        ->assertSet('tableFilters.managed_environment_id.value', null);
tests/Feature/Monitoring/OperationsCanonicalUrlsTest.php:174:    Livewire::withHeaders(['referer' => route('admin.operations.index', ['workspace' => $tenantA->workspace])])
tests/Feature/Monitoring/OperationsCanonicalUrlsTest.php:175:        ->withQueryParams(['managed_environment_id' => (string) $tenantA->getKey()])
tests/Feature/Monitoring/OperationsCanonicalUrlsTest.php:179:        ->assertSet('tableFilters.managed_environment_id.value', (string) $tenantA->getKey());
tests/Feature/Monitoring/OperationsCanonicalUrlsTest.php:221:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Jobs/PolicySyncProviderMissingSemanticsTest.php:28:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Jobs/PolicySyncProviderMissingSemanticsTest.php:32:        'entra_tenant_id' => (string) ($tenant->managed_environment_id ?: 'tenant-'.$tenant->getKey()),
tests/Feature/Jobs/PolicySyncProviderMissingSemanticsTest.php:51:        'managed_environment_id' => $tenant->id,
tests/Feature/Jobs/PolicySyncProviderMissingSemanticsTest.php:60:        'managed_environment_id' => $tenant->id,
tests/Feature/Jobs/PolicySyncProviderMissingSemanticsTest.php:103:        ->where('managed_environment_id', $tenant->id)
tests/Feature/Jobs/PolicySyncProviderMissingSemanticsTest.php:113:        'managed_environment_id' => $tenant->id,
tests/Feature/Jobs/PolicySyncProviderMissingSemanticsTest.php:153:        ->where('managed_environment_id', $tenant->id)
tests/Feature/Governance/GovernanceInboxPageTest.php:60:        'managed_environment_id' => (int) $alphaTenant->getKey(),
tests/Feature/Governance/GovernanceInboxPageTest.php:81:        'managed_environment_id' => null,
tests/Feature/Governance/GovernanceInboxPageTest.php:109:        ->get(GovernanceInbox::getUrl(panel: 'admin'))
tests/Feature/Governance/GovernanceInboxPageTest.php:149:        'managed_environment_id' => null,
tests/Feature/Governance/GovernanceInboxPageTest.php:156:        ->get(GovernanceInbox::getUrl(panel: 'admin').'?managed_environment_id='.(string) $alphaTenant->getKey())
tests/Feature/Governance/GovernanceInboxPageTest.php:163:        ->get(GovernanceInbox::getUrl(panel: 'admin').'?managed_environment_id='.(string) $alphaTenant->getKey().'&family=alert_delivery_failures')
tests/Feature/Governance/GovernanceInboxPageTest.php:193:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Governance/GovernanceInboxPageTest.php:207:        ->get(GovernanceInbox::getUrl(panel: 'admin'))
tests/Feature/Governance/GovernanceInboxNavigationContextConvergenceTest.php:29:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Governance/GovernanceInboxNavigationContextConvergenceTest.php:43:        ->get(GovernanceInbox::getUrl(panel: 'admin').'?managed_environment_id='.(string) $tenant->getKey().'&family=finding_exceptions');
tests/Feature/Governance/GovernanceInboxNavigationContextConvergenceTest.php:50:        ->assertSee('nav%5Bback_url%5D='.urlencode(GovernanceInbox::getUrl(panel: 'admin').'?managed_environment_id='.(string) $tenant->getKey().'&family=finding_exceptions'), false)
tests/Feature/Findings/FindingAdminTenantParityTest.php:67:        ->get(FindingResource::getUrl('view', ['record' => $findingA], panel: 'admin'))
tests/Feature/Findings/FindingAdminTenantParityTest.php:71:        ->get(FindingResource::getUrl('view', ['record' => $findingB], panel: 'admin'))
tests/Feature/Monitoring/MonitoringOperationsTest.php:17:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Monitoring/MonitoringOperationsTest.php:60:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Monitoring/MonitoringOperationsTest.php:70:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Monitoring/MonitoringOperationsTest.php:98:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Jobs/PolicySyncIgnoredRevivalTest.php:52:        'managed_environment_id' => 'test-tenant',
tests/Feature/Jobs/PolicySyncIgnoredRevivalTest.php:62:        'managed_environment_id' => $tenant->id,
tests/Feature/Jobs/PolicySyncIgnoredRevivalTest.php:100:        'managed_environment_id' => 'test-tenant-2',
tests/Feature/Jobs/PolicySyncIgnoredRevivalTest.php:110:        'managed_environment_id' => $tenant->id,
tests/Feature/Jobs/PolicySyncIgnoredRevivalTest.php:119:        'managed_environment_id' => $tenant->id,
tests/Feature/PolicySyncEnrollmentConfigurationTypeCollisionTest.php:15:        'managed_environment_id' => 'tenant-sync-collision',
tests/Feature/PolicySyncEnrollmentConfigurationTypeCollisionTest.php:26:        'managed_environment_id' => $tenant->id,
tests/Feature/PolicySyncEnrollmentConfigurationTypeCollisionTest.php:78:        'managed_environment_id' => 'tenant-sync-esp-no-filter',
tests/Feature/PolicySyncEnrollmentConfigurationTypeCollisionTest.php:144:        ->where('managed_environment_id', $tenant->id)
tests/Feature/PolicySyncEnrollmentConfigurationTypeCollisionTest.php:150:        ->where('managed_environment_id', $tenant->id)
tests/Feature/PolicySyncEnrollmentConfigurationTypeCollisionTest.php:157:        ->where('managed_environment_id', $tenant->id)
tests/Feature/PolicySyncEnrollmentConfigurationTypeCollisionTest.php:170:        'managed_environment_id' => 'tenant-sync-enrollment-subtypes',
tests/Feature/PolicySyncEnrollmentConfigurationTypeCollisionTest.php:237:        ->where('managed_environment_id', $tenant->id)
tests/Feature/PolicySyncEnrollmentConfigurationTypeCollisionTest.php:243:        ->where('managed_environment_id', $tenant->id)
tests/Feature/PolicySyncEnrollmentConfigurationTypeCollisionTest.php:249:        ->where('managed_environment_id', $tenant->id)
tests/Feature/Drift/DriftFindingDiffUnavailableTest.php:13:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Drift/DriftFindingDiffUnavailableTest.php:49:        ->get(FindingResource::getUrl('view', ['record' => $finding], panel: 'admin', tenant: $tenant))
tests/Feature/Drift/DriftFindingDiffUnavailableTest.php:64:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Drift/DriftFindingDiffUnavailableTest.php:72:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Drift/DriftFindingDiffUnavailableTest.php:85:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Drift/DriftFindingDiffUnavailableTest.php:121:        ->get(FindingResource::getUrl('view', ['record' => $finding], panel: 'admin', tenant: $tenant))
tests/Feature/Drift/DriftFindingDiffUnavailableTest.php:137:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Drift/DriftFindingDiffUnavailableTest.php:145:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Drift/DriftFindingDiffUnavailableTest.php:158:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Drift/DriftFindingDiffUnavailableTest.php:194:        ->get(FindingResource::getUrl('view', ['record' => $finding], panel: 'admin', tenant: $tenant))
tests/Feature/SyncPoliciesJobDispatchTest.php:12:    SyncPoliciesJob::dispatch((int) $operationRun->managed_environment_id, null, null, $operationRun);
tests/Feature/SyncPoliciesJobDispatchTest.php:15:        return $job->tenantId === (int) $operationRun->managed_environment_id
tests/Feature/Monitoring/OperationsActionsEnqueueRunTest.php:13:        'managed_environment_id' => $tenant->getKey(),
tests/Feature/Findings/FindingsListDefaultsTest.php:91:        ->set('tableFilters.created_at.from', now()->subDay()->toDateString())
tests/Feature/Findings/FindingsListDefaultsTest.php:92:        ->set('tableFilters.created_at.until', now()->toDateString());
app/Support/Filament/CanonicalAdminTenantFilterState.php:21:        ?array $tableFilters = null,
app/Support/Filament/CanonicalAdminTenantFilterState.php:23:        ?string $tenantFilterName = 'managed_environment_id',
app/Support/Filament/CanonicalAdminTenantFilterState.php:29:        $tableFilterValue = data_get($tableFilters ?? [], "{$tenantFilterName}.value");
app/Support/Filament/CanonicalAdminTenantFilterState.php:52:        ?string $tenantFilterName = 'managed_environment_id',
tests/Feature/Monitoring/OperationsHeaderHierarchyTest.php:20:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Monitoring/OperationsHeaderHierarchyTest.php:29:        ->get(route('admin.operations.index', ['workspace' => $tenant->workspace]))
tests/Feature/RestoreAdapterTest.php:13:        ->where('managed_environment_id', $restoreRun->managed_environment_id)
tests/Feature/RestoreAdapterTest.php:20:        ->where('managed_environment_id', $restoreRun->managed_environment_id)
tests/Feature/RestoreAdapterTest.php:47:        ->where('managed_environment_id', $restoreRun->managed_environment_id)
tests/Feature/RestoreAdapterTest.php:84:        ->where('managed_environment_id', $restoreRun->managed_environment_id)
tests/Feature/Monitoring/AuditLogSupportAccessHistoryTest.php:20:        'managed_environment_id' => null,
tests/Feature/Monitoring/AuditLogSupportAccessHistoryTest.php:36:        'managed_environment_id' => null,
tests/Feature/Monitoring/AuditLogSupportAccessHistoryTest.php:47:        'managed_environment_id' => null,
tests/Feature/Monitoring/AuditLogSupportAccessHistoryTest.php:74:        'managed_environment_id' => null,
tests/Feature/Monitoring/AuditLogSupportAccessHistoryTest.php:90:        'managed_environment_id' => null,
tests/Feature/Monitoring/FindingExceptionsQueueHierarchyTest.php:21:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Monitoring/FindingExceptionsQueueHierarchyTest.php:52:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Monitoring/FindingExceptionsQueueHierarchyTest.php:105:        'managed_environment_id' => (int) $foreignTenant->getKey(),
tests/Feature/Monitoring/FindingExceptionsQueueNavigationContextTest.php:33:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Monitoring/FindingExceptionsQueueNavigationContextTest.php:55:        backLinkUrl: GovernanceInbox::getUrl(panel: 'admin', parameters: [
tests/Feature/Monitoring/FindingExceptionsQueueNavigationContextTest.php:56:            'managed_environment_id' => (string) $tenant->getKey(),
tests/Feature/Monitoring/FindingExceptionsQueueNavigationContextTest.php:67:        ->assertSet('tableFilters.managed_environment_id.value', (string) $tenant->getKey())
tests/Feature/Monitoring/FindingExceptionsQueueNavigationContextTest.php:79:        ->toContain('nav%5Bmanaged_environment_id%5D='.(string) $tenant->getKey());
tests/Feature/Monitoring/FindingExceptionsQueueNavigationContextTest.php:84:        ->toContain('nav%5Bmanaged_environment_id%5D='.(string) $tenant->getKey());
tests/Feature/Findings/FindingsAssignmentHygieneOverviewSignalTest.php:55:        'managed_environment_id' => (int) $finding->managed_environment_id,
tests/Feature/Findings/FindingsAssignmentHygieneOverviewSignalTest.php:73:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/Findings/FindingsAssignmentHygieneOverviewSignalTest.php:103:            'cta_url' => FindingsHygieneReport::getUrl(panel: 'admin'),
tests/Feature/Findings/FindingsAssignmentHygieneOverviewSignalTest.php:108:        ->get(route('admin.workspace.home', ['workspace' => $workspace]))
tests/Feature/Findings/FindingsAssignmentHygieneOverviewSignalTest.php:130:        ->where('managed_environment_id', (int) $hiddenTenant->getKey())
tests/Feature/Findings/FindingsAssignmentHygieneOverviewSignalTest.php:170:        ->get(route('admin.workspace.home', ['workspace' => $workspace]))
tests/Feature/Monitoring/OperationsRelatedNavigationTest.php:16:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Monitoring/OperationsRelatedNavigationTest.php:33:        backLinkUrl: BackupSetResource::getUrl('view', ['record' => $backupSet], tenant: $tenant),
tests/Feature/Monitoring/OperationsRelatedNavigationTest.php:43:        ->assertSee(BackupSetResource::getUrl('view', ['record' => $backupSet], tenant: $tenant), false)
tests/Feature/Monitoring/OperationLifecycleFreshnessPresentationTest.php:12:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Monitoring/OperationLifecycleFreshnessPresentationTest.php:22:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Monitoring/OperationLifecycleFreshnessPresentationTest.php:68:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Monitoring/OperationLifecycleFreshnessPresentationTest.php:78:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Drift/DriftBulkAcknowledgeAllMatchingTest.php:34:        ->set('tableFilters', [
tests/Feature/Monitoring/OperationRunBlockedSpec081Test.php:25:                'entra_tenant_id' => $tenant->graphTenantId(),
tests/Feature/Monitoring/OperationRunBlockedSpec081Test.php:34:            ['label' => 'Update Credentials', 'url' => '/admin/provider-connections?managed_environment_id=demo'],
tests/Feature/Monitoring/OperationRunBlockedSpec081Test.php:48:            ['label' => 'Update Credentials', 'url' => '/admin/provider-connections?managed_environment_id=demo'],
tests/Feature/Monitoring/AuditCoverageGovernanceTest.php:29:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Monitoring/AuditCoverageGovernanceTest.php:44:            'source_environment_id' => (int) $tenant->getKey(),
tests/Feature/Monitoring/AuditCoverageGovernanceTest.php:58:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/Monitoring/AuditCoverageGovernanceTest.php:64:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/Monitoring/AuditCoverageGovernanceTest.php:105:            'source_environment_id' => (int) $tenant->getKey(),
tests/Feature/Monitoring/AuditCoverageGovernanceTest.php:129:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/Monitoring/OperationLifecycleAggregateVisibilityTest.php:12:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Monitoring/OperationLifecycleAggregateVisibilityTest.php:22:        'managed_environment_id' => (int) $tenant->getKey(),
app/Support/RestoreRunIdempotency.php:16:            'managed_environment_id' => $tenantId,
app/Support/RestoreRunIdempotency.php:28:            ->where('managed_environment_id', $tenantId)
app/Support/OperateHub/OperateHubShell.php:67:            Action::make($scopeActionName)
app/Support/OperateHub/OperateHubShell.php:76:            $actions[] = Action::make($returnActionName)
app/Support/OperateHub/OperateHubShell.php:80:                ->url($returnAffordance['url']);
app/Support/OperateHub/OperateHubShell.php:150:                state: 'tenant_scoped',
app/Support/OperateHub/OperateHubShell.php:151:                displayMode: 'tenant_scoped',
app/Support/OperateHub/OperateHubShell.php:191:                state: 'tenant_scoped',
app/Support/OperateHub/OperateHubShell.php:192:                displayMode: 'tenant_scoped',
app/Support/OperateHub/OperateHubShell.php:220:                state: 'tenant_scoped',
app/Support/OperateHub/OperateHubShell.php:221:                displayMode: 'tenant_scoped',
app/Support/OperateHub/OperateHubShell.php:235:                    state: 'tenant_scoped',
app/Support/OperateHub/OperateHubShell.php:236:                    displayMode: 'tenant_scoped',
app/Support/OperateHub/OperateHubShell.php:277:        $tenant = Filament::getTenant();
app/Support/OperateHub/OperateHubShell.php:354:        $route = $request?->route();
app/Support/OperateHub/OperateHubShell.php:376:        $queryTenantId = $request?->query('managed_environment_id');
app/Support/OperateHub/OperateHubShell.php:387:        return filled($request?->query('tenant')) || filled($request?->query('managed_environment_id'));
app/Support/OperateHub/OperateHubShell.php:467:            selectedTenant: Filament::getTenant() instanceof ManagedEnvironment ? Filament::getTenant() : null,
app/Support/Livewire/TrustedState/TrustedStatePolicy.php:105:                    'managed_environment_id',
app/Support/Livewire/TrustedState/TrustedStatePolicy.php:228:                    'scoped_tenant_id',
app/Support/Livewire/TrustedState/TrustedStatePolicy.php:263:                            "'status' => \$filters['status']['value'] ?? data_get(\$this->tableFilters, 'status.value'),",
app/Support/Livewire/TrustedState/TrustedStatePolicy.php:277:                            "'type' => \$filters['type']['value'] ?? data_get(\$this->tableFilters, 'type.value'),",
app/Support/Livewire/TrustedState/TrustedStatePolicy.php:291:                            "'features' => \$filters['features']['values'] ?? data_get(\$this->tableFilters, 'features.values', []),",
tests/Feature/Drift/DriftFindingDetailShowsAssignmentsDiffTest.php:134:        ->get(FindingResource::getUrl('view', ['record' => $finding], tenant: $tenant))
app/Filament/Concerns/ResolvesPanelTenantContext.php:64:            ? $request->route()?->getName()
tests/Feature/Findings/FindingBulkActionsTest.php:18:        ->where('managed_environment_id', $tenantId)
tests/Feature/Drift/DriftFindingDetailShowsSettingsDiffTest.php:90:        ->get(FindingResource::getUrl('view', ['record' => $finding], tenant: $tenant))
tests/Feature/Findings/FindingExceptionPolicyTest.php:20:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Drift/DriftFindingDetailTest.php:45:        ->get(FindingResource::getUrl('view', ['record' => $finding], tenant: $tenant))
tests/Feature/Drift/DriftFindingDetailTest.php:57:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Drift/DriftFindingDetailTest.php:65:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Drift/DriftFindingDetailTest.php:88:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Drift/DriftFindingDetailTest.php:141:        ->get(FindingResource::getUrl('view', ['record' => $finding], tenant: $tenant))
app/Support/System/SystemDirectoryLinks.php:19:        return Workspaces::getUrl(panel: 'system');
app/Support/System/SystemDirectoryLinks.php:26:        return ViewWorkspace::getUrl(['workspace' => $workspaceId], panel: 'system');
app/Support/System/SystemDirectoryLinks.php:31:        return Tenants::getUrl(panel: 'system');
app/Support/System/SystemDirectoryLinks.php:38:        return ViewTenant::getUrl(['tenant' => $tenantRouteKey], panel: 'system');
app/Support/System/SystemDirectoryLinks.php:45:        return route('filament.admin.resources.workspaces.view', ['record' => $workspaceId]);
tests/Feature/Findings/FindingsAssignmentHygieneClassificationTest.php:44:        'managed_environment_id' => (int) $finding->managed_environment_id,
tests/Feature/Findings/FindingsAssignmentHygieneClassificationTest.php:60:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/Findings/FindingsAssignmentHygieneClassificationTest.php:192:        ->where('managed_environment_id', (int) $tenant->getKey())
app/Filament/Concerns/ScopesGlobalSearchToTenant.php:60:        $tenant = Filament::getTenant();
app/Support/CustomerHealth/WorkspaceHealthSummaryQuery.php:88:            ->get(['id', 'workspace_id', 'managed_environment_id', 'lifecycle_state', 'updated_at', 'created_at'])
app/Support/CustomerHealth/WorkspaceHealthSummaryQuery.php:103:                'managed_environment_id',
app/Support/CustomerHealth/WorkspaceHealthSummaryQuery.php:227:            ->get(['id', 'workspace_id', 'managed_environment_id', 'status', 'expires_at', 'created_at'])
app/Support/CustomerHealth/WorkspaceHealthSummaryQuery.php:759:            ->whereNull('managed_environment_id')
app/Support/System/SystemOperationRunLinks.php:15:        return Runs::getUrl(panel: 'system');
app/Support/System/SystemOperationRunLinks.php:22:        return ViewRun::getUrl(['run' => $runId], panel: 'system');
tests/Feature/Drift/DriftFindingDetailShowsScopeTagsDiffTest.php:92:        ->get(FindingResource::getUrl('view', ['record' => $finding], tenant: $tenant))
tests/Feature/Findings/MyWorkInboxTest.php:177:        ->assertSet('tableFilters.managed_environment_id.value', (string) $tenantB->getKey())
tests/Feature/Findings/MyWorkInboxTest.php:262:        ->set('tableFilters.reopened.isActive', true)
tests/Feature/Findings/MyWorkInboxTest.php:265:        ->set('tableFilters.reopened.isActive', false)
tests/Feature/Findings/MyWorkInboxTest.php:266:        ->set('tableFilters.high_severity.isActive', true)
tests/Feature/Findings/MyWorkInboxTest.php:324:        'action_url' => FindingResource::getUrl('index', panel: 'admin', tenant: $tenant),
tests/Feature/Findings/MyWorkInboxTest.php:338:    expect($detailUrl)->toContain(FindingResource::getUrl('view', ['record' => $finding], panel: 'admin', tenant: $tenant))
app/Support/PortfolioCompare/CrossEnvironmentComparePreviewBuilder.php:114:            ->where('managed_environment_id', (int) $environment->getKey())
app/Support/OperationRunLinks.php:101:            $parameters['managed_environment_id'] = (int) $tenant->getKey();
app/Support/OperationRunLinks.php:103:            $parameters['tenant_scope'] = 'all';
app/Support/OperationRunLinks.php:123:            $parameters['tableFilters']['type']['value'] = OperationCatalog::canonicalCode($operationType);
app/Support/OperationRunLinks.php:126:        return route('admin.operations.index', $parameters);
app/Support/OperationRunLinks.php:139:        return route('admin.operations.view', array_merge(
app/Support/OperationRunLinks.php:174:            $links['Inventory'] = InventoryItemResource::getUrl('index', tenant: $tenant);
app/Support/OperationRunLinks.php:178:            $links['Policies'] = PolicyResource::getUrl('index', tenant: $tenant);
app/Support/OperationRunLinks.php:182:                $links['Policy'] = PolicyResource::getUrl('view', ['record' => (int) $policyId], tenant: $tenant);
app/Support/OperationRunLinks.php:191:            $links['Drift'] = BaselineCompareLanding::getUrl(tenant: $tenant);
app/Support/OperationRunLinks.php:198:                $links['Baseline Snapshot'] = BaselineSnapshotResource::getUrl('view', ['record' => (int) $snapshotId], panel: 'admin');
app/Support/OperationRunLinks.php:203:            $links['Backup Sets'] = BackupSetResource::getUrl('index', tenant: $tenant);
app/Support/OperationRunLinks.php:207:                $links['Backup Set'] = BackupSetResource::getUrl('view', ['record' => (int) $backupSetId], tenant: $tenant);
app/Support/OperationRunLinks.php:212:            $links['Backup Schedules'] = BackupScheduleResource::getUrl('index', tenant: $tenant);
app/Support/OperationRunLinks.php:216:            $links['Restore Runs'] = RestoreRunResource::getUrl('index', tenant: $tenant);
app/Support/OperationRunLinks.php:220:                $links['Restore Run'] = RestoreRunResource::getUrl('view', ['record' => (int) $restoreRunId], tenant: $tenant);
app/Support/OperationRunLinks.php:231:                $links['Evidence Snapshot'] = EvidenceSnapshotResource::getUrl('view', ['record' => $snapshot], tenant: $tenant);
app/Support/OperationRunLinks.php:253:                $links['Review Pack'] = ReviewPackResource::getUrl('view', ['record' => $pack], tenant: $tenant);
app/Filament/Concerns/WorkspaceScopedTenantRoutes.php:23:    public static function getUrl(?string $name = null, array $parameters = [], bool $isAbsolute = true, ?string $panel = null, ?Model $tenant = null, bool $shouldGuessMissingParameters = false): string
app/Filament/Concerns/WorkspaceScopedTenantRoutes.php:28:            return parent::getUrl($name, $parameters, $isAbsolute, $panelId, $tenant, $shouldGuessMissingParameters);
app/Filament/Concerns/WorkspaceScopedTenantRoutes.php:47:        return parent::getUrl($name, $parameters, $isAbsolute, $panelId, null, $shouldGuessMissingParameters);
app/Support/Middleware/EnsureFilamentTenantSelected.php:33:        $existingTenant = Filament::getTenant();
app/Support/Middleware/EnsureFilamentTenantSelected.php:96:                return redirect()->route('admin.workspace.managed-environments.index', ['workspace' => $workspace]);
app/Support/Middleware/EnsureFilamentTenantSelected.php:99:            return redirect()->route('filament.admin.pages.choose-environment');
app/Support/Middleware/EnsureFilamentTenantSelected.php:135:        if (filled(Filament::getTenant())) {
app/Support/Middleware/EnsureFilamentTenantSelected.php:182:        return filled($request->query('tenant')) || filled($request->query('managed_environment_id'));
app/Support/PortfolioCompare/CrossEnvironmentPromotionExecutionPlanner.php:164:                'managed_environment_id' => $this->intValue(data_get($subject, 'source.environmentId')),
app/Support/PortfolioCompare/CrossEnvironmentPromotionExecutionPlanner.php:171:                'managed_environment_id' => $this->intValue(data_get($subject, 'target.environmentId')),
app/Support/PortfolioCompare/CrossEnvironmentPromotionExecutionPlanner.php:223:            'source_environment_id' => $selection['sourceEnvironmentId'] ?? null,
app/Support/PortfolioCompare/CrossEnvironmentPromotionExecutionPlanner.php:224:            'target_environment_id' => $selection['targetEnvironmentId'] ?? null,
tests/Feature/Findings/FindingsListFiltersTest.php:72:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Findings/FindingsListFiltersTest.php:223:        ->set('tableFilters.status.value', Finding::STATUS_NEW);
tests/Feature/Findings/FindingsListFiltersTest.php:234:        ->assertSet('tableFilters.status.value', Finding::STATUS_NEW);
tests/Feature/Findings/FindingsListFiltersTest.php:257:        ->set('tableFilters.created_at.from', now()->subDays(2)->toDateString())
tests/Feature/Findings/FindingsListFiltersTest.php:258:        ->set('tableFilters.created_at.until', now()->toDateString())
tests/Feature/Findings/FindingsListFiltersTest.php:281:        ->set('tableFilters.open.isActive', false)
tests/Feature/Findings/FindingsListFiltersTest.php:283:        ->set('tableFilters.created_at.from', now()->subDays(2)->toDateString())
tests/Feature/Findings/FindingsListFiltersTest.php:284:        ->set('tableFilters.created_at.until', now()->toDateString())
tests/Feature/Findings/FindingsListFiltersTest.php:292:        ->assertSet('tableFilters.status.value', null)
tests/Feature/Findings/FindingsListFiltersTest.php:293:        ->assertSet('tableFilters.created_at.from', null)
tests/Feature/Findings/FindingsListFiltersTest.php:294:        ->assertSet('tableFilters.created_at.until', null);
tests/Feature/Findings/FindingsListFiltersTest.php:325:        ->assertSet('tableFilters.finding_type.value', Finding::FINDING_TYPE_DRIFT)
tests/Feature/Findings/FindingsListFiltersTest.php:358:        ->assertSet('tableFilters.high_severity.isActive', true)
tests/Feature/Findings/FindingsListFiltersTest.php:378:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Findings/FindingsListFiltersTest.php:405:        ->assertSet('tableFilters.governance_validity.value', \App\Models\FindingException::VALIDITY_MISSING_SUPPORT)
app/Support/Middleware/DenyNonMemberTenantAccess.php:19:        $tenant = $request->route()?->parameter('environment') ?? $request->route()?->parameter('tenant');
app/Models/EntraGroup.php:26:        return $this->belongsTo(ManagedEnvironment::class, 'managed_environment_id');
app/Filament/Widgets/ManagedEnvironment/ManagedEnvironmentVerificationReport.php:37:        $tenant = Filament::getTenant();
app/Filament/Widgets/ManagedEnvironment/ManagedEnvironmentVerificationReport.php:130:            ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/Findings/FindingRbacTest.php:29:        ->get(FindingResource::getUrl('index', tenant: $tenant))
tests/Feature/Findings/FindingRbacTest.php:33:        ->get(FindingResource::getUrl('view', ['record' => $finding], tenant: $tenant))
tests/Feature/Findings/FindingRbacTest.php:97:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Findings/FindingRbacTest.php:200:        ->get(FindingResource::getUrl('view', ['record' => $finding], tenant: $tenant));
tests/Feature/Findings/FindingExceptionRegisterTest.php:32:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Findings/FindingExceptionRegisterTest.php:91:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Findings/FindingExceptionRegisterTest.php:139:        ->get(route('admin.finding-exceptions.open-queue', ['environment' => (string) $tenant->external_id]))
tests/Feature/Findings/FindingExceptionRegisterTest.php:141:            \App\Filament\Pages\Monitoring\FindingExceptionsQueue::getUrl([
tests/Feature/Findings/FindingExceptionRegisterTest.php:161:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Findings/FindingExceptionRegisterTest.php:194:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Findings/FindingExceptionRegisterTest.php:223:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Findings/FindingExceptionRegisterTest.php:270:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Findings/FindingExceptionRegisterTest.php:309:        'managed_environment_id' => (int) $tenant->getKey(),
app/Filament/Widgets/ManagedEnvironment/RecentOperationsSummary.php:24:        $tenant = Filament::getTenant();
app/Filament/Widgets/ManagedEnvironment/RecentOperationsSummary.php:52:            ->where('managed_environment_id', (int) $tenant->getKey())
app/Filament/Widgets/ManagedEnvironment/RecentOperationsSummary.php:59:                'managed_environment_id',
app/Support/Navigation/CanonicalNavigationContext.php:56:        $tenantId = $payload['managed_environment_id'] ?? null;
app/Support/Navigation/CanonicalNavigationContext.php:150:            backLinkUrl: BaselineCompareMatrix::getUrl($parameters, panel: 'admin'),
app/Support/Navigation/CanonicalNavigationContext.php:166:            'managed_environment_id' => $this->tenantId,
tests/Feature/Findings/FindingWorkflowGuardTest.php:51:            ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/Findings/FindingWorkflowConcurrencyTest.php:83:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Findings/FindingWorkflowConcurrencyTest.php:98:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/Findings/FindingWorkflowConcurrencyTest.php:106:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Findings/FindingWorkflowConcurrencyTest.php:138:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Findings/FindingWorkflowConcurrencyTest.php:153:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/Findings/FindingWorkflowConcurrencyTest.php:162:        'managed_environment_id' => (int) $tenant->getKey(),
app/Support/Verification/VerificationReportSanitizer.php:17:        'entra_tenant_id',
app/Models/StoredReport.php:26:        'managed_environment_id',
app/Models/StoredReport.php:50:        return $this->belongsTo(ManagedEnvironment::class, 'managed_environment_id');
app/Filament/Widgets/ManagedEnvironment/BaselineCompareCoverageBanner.php:26:        $tenant = Filament::getTenant();
app/Filament/Widgets/ManagedEnvironment/BaselineCompareCoverageBanner.php:39:        $landingUrl = BaselineCompareLanding::getUrl(tenant: $tenant);
app/Filament/Widgets/ManagedEnvironment/BaselineCompareCoverageBanner.php:42:            'findings' => \App\Filament\Resources\FindingResource::getUrl('index', tenant: $tenant),
tests/Feature/Findings/FindingsAssignmentHygieneReportTest.php:76:        'managed_environment_id' => (int) $finding->managed_environment_id,
tests/Feature/Findings/FindingsAssignmentHygieneReportTest.php:105:        ->get(FindingsHygieneReport::getUrl(panel: 'admin'))
tests/Feature/Findings/FindingsAssignmentHygieneReportTest.php:121:        ->get(FindingsHygieneReport::getUrl(panel: 'admin'))
tests/Feature/Findings/FindingsAssignmentHygieneReportTest.php:137:        ->get(FindingsHygieneReport::getUrl(panel: 'admin'))
tests/Feature/Findings/FindingsAssignmentHygieneReportTest.php:151:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/Findings/FindingsAssignmentHygieneReportTest.php:180:        ->get(FindingsHygieneReport::getUrl(panel: 'admin'))
tests/Feature/Findings/FindingsAssignmentHygieneReportTest.php:200:        ->where('managed_environment_id', (int) $visibleTenant->getKey())
tests/Feature/Findings/FindingsAssignmentHygieneReportTest.php:207:        ->where('managed_environment_id', (int) $hiddenTenant->getKey())
tests/Feature/Findings/FindingsAssignmentHygieneReportTest.php:277:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/Findings/FindingsAssignmentHygieneReportTest.php:335:                'url' => FindingsHygieneReport::getUrl(panel: 'admin'),
tests/Feature/Findings/FindingsAssignmentHygieneReportTest.php:342:                'url' => FindingsHygieneReport::getUrl(panel: 'admin', parameters: ['reason' => 'broken_assignment']),
tests/Feature/Findings/FindingsAssignmentHygieneReportTest.php:349:                'url' => FindingsHygieneReport::getUrl(panel: 'admin', parameters: ['reason' => 'stale_in_progress']),
tests/Feature/Findings/FindingsAssignmentHygieneReportTest.php:367:        ->where('managed_environment_id', (int) $tenantA->getKey())
tests/Feature/Findings/FindingsAssignmentHygieneReportTest.php:382:        ->assertSet('tableFilters.managed_environment_id.value', (string) $tenantB->getKey())
tests/Feature/Findings/FindingAutomationWorkflowTest.php:87:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Findings/FindingAutomationWorkflowTest.php:96:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Findings/FindingAutomationWorkflowTest.php:168:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/Findings/FindingAutomationWorkflowTest.php:251:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/Findings/FindingAutomationWorkflowTest.php:279:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Findings/FindingAutomationWorkflowTest.php:294:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/Findings/FindingAutomationWorkflowTest.php:306:        'managed_environment_id' => (int) $tenant->getKey(),
app/Models/SupportRequest.php:164:        return $this->belongsTo(ManagedEnvironment::class, 'managed_environment_id');
tests/Feature/Findings/FindingRecurrenceTest.php:172:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Findings/FindingRecurrenceTest.php:197:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/Findings/FindingRecurrenceTest.php:224:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Findings/FindingRecurrenceTest.php:283:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Findings/FindingRecurrenceTest.php:306:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/Findings/FindingRecurrenceTest.php:324:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Findings/FindingRecurrenceTest.php:371:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Findings/FindingRecurrenceTest.php:394:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/Findings/FindingRecurrenceTest.php:412:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Findings/FindingRecurrenceTest.php:460:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Findings/FindingRecurrenceTest.php:483:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/Findings/FindingRecurrenceTest.php:501:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Findings/FindingsIntakeQueueNavigationContextTest.php:41:        backLinkUrl: GovernanceInbox::getUrl(panel: 'admin', parameters: [
tests/Feature/Findings/FindingsIntakeQueueNavigationContextTest.php:42:            'managed_environment_id' => (string) $tenant->getKey(),
tests/Feature/Findings/FindingsIntakeQueueNavigationContextTest.php:53:        ->assertSet('tableFilters.managed_environment_id.value', (string) $tenant->getKey())
app/Support/Navigation/RelatedNavigationResolver.php:216:                ? ['label' => 'Open baseline profile', 'url' => BaselineProfileResource::getUrl('view', ['record' => $resourceId], panel: 'admin')]
app/Support/Navigation/RelatedNavigationResolver.php:226:                ? ['label' => 'Open baseline snapshot', 'url' => BaselineSnapshotResource::getUrl('view', ['record' => $resourceId], panel: 'admin')]
app/Support/Navigation/RelatedNavigationResolver.php:235:                ? ['label' => 'Open alert rule', 'url' => AlertRuleResource::getUrl('view', ['record' => $resourceId], panel: 'admin')]
app/Support/Navigation/RelatedNavigationResolver.php:244:                ? ['label' => 'Open alert destination', 'url' => AlertDestinationResource::getUrl('view', ['record' => $resourceId], panel: 'admin')]
app/Support/Navigation/RelatedNavigationResolver.php:251:                    ->where('managed_environment_id', (int) $tenant->getKey())
app/Support/Navigation/RelatedNavigationResolver.php:253:                ? ['label' => 'Open backup set', 'url' => BackupSetResource::getUrl('view', ['record' => $resourceId], tenant: $tenant)]
app/Support/Navigation/RelatedNavigationResolver.php:260:                    ->where('managed_environment_id', (int) $tenant->getKey())
app/Support/Navigation/RelatedNavigationResolver.php:262:                ? ['label' => 'Open restore run', 'url' => RestoreRunResource::getUrl('view', ['record' => $resourceId], tenant: $tenant)]
app/Support/Navigation/RelatedNavigationResolver.php:269:                    ->where('managed_environment_id', (int) $tenant->getKey())
app/Support/Navigation/RelatedNavigationResolver.php:271:                ? ['label' => 'Open finding', 'url' => FindingResource::getUrl('view', ['record' => $resourceId], tenant: $tenant)]
app/Support/Navigation/RelatedNavigationResolver.php:278:                    ->where('managed_environment_id', (int) $tenant->getKey())
app/Support/Navigation/RelatedNavigationResolver.php:280:                ? ['label' => 'Open finding exception', 'url' => FindingExceptionResource::getUrl('view', ['record' => $findingException], tenant: $tenant)]
app/Support/Navigation/RelatedNavigationResolver.php:370:                'active_tenant_id' => $this->activeTenantId(),
app/Support/Navigation/RelatedNavigationResolver.php:371:                'route_name' => request()?->route()?->getName(),
app/Support/Navigation/RelatedNavigationResolver.php:424:                tenantId: (int) $finding->managed_environment_id,
app/Support/Navigation/RelatedNavigationResolver.php:493:                tenantId: is_numeric($run->managed_environment_id ?? null) ? (int) $run->managed_environment_id : null,
app/Support/Navigation/RelatedNavigationResolver.php:498:                tenantId: is_numeric($run->managed_environment_id ?? null) ? (int) $run->managed_environment_id : null,
app/Support/Navigation/RelatedNavigationResolver.php:641:            ->where('managed_environment_id', (int) $backupSet->managed_environment_id)
app/Support/Navigation/RelatedNavigationResolver.php:667:            ->where('managed_environment_id', (int) $run->managed_environment_id)
app/Support/Navigation/RelatedNavigationResolver.php:684:            ->where('managed_environment_id', (int) $finding->managed_environment_id)
app/Support/Navigation/RelatedNavigationResolver.php:816:                tenantId: is_numeric($policy->managed_environment_id ?? null) ? (int) $policy->managed_environment_id : null,
app/Support/Navigation/RelatedNavigationResolver.php:867:            ->where('managed_environment_id', $tenantId)
app/Support/Navigation/RelatedNavigationResolver.php:883:            targetUrl: RestoreRunResource::getUrl('view', ['record' => $restoreRun], tenant: $restoreRun->tenant),
app/Support/Navigation/RelatedNavigationResolver.php:1003:            ? FindingResource::getUrl('index', tenant: $tenant)
app/Support/Navigation/RelatedNavigationResolver.php:1004:            : FindingResource::getUrl('view', ['record' => $finding], tenant: $tenant);
app/Support/Navigation/RelatedNavigationResolver.php:1013:                'tableFilters' => [
app/Support/Navigation/RelatedNavigationResolver.php:1014:                    'managed_environment_id' => ['value' => (string) $tenant->getKey()],
app/Support/Navigation/RelatedNavigationResolver.php:1025:            ? PolicyVersionResource::getUrl('index', tenant: $tenant)
app/Support/Navigation/RelatedNavigationResolver.php:1026:            : PolicyVersionResource::getUrl('view', ['record' => $version], tenant: $tenant);
app/Support/Navigation/RelatedNavigationResolver.php:1035:                'tableFilters' => [
app/Support/Navigation/RelatedNavigationResolver.php:1036:                    'managed_environment_id' => ['value' => (string) $tenant->getKey()],
app/Support/Navigation/RelatedNavigationResolver.php:1046:            ? BaselineSnapshotResource::getUrl(panel: 'admin')
app/Support/Navigation/RelatedNavigationResolver.php:1047:            : BaselineSnapshotResource::getUrl('view', ['record' => $snapshot], panel: 'admin');
app/Support/Navigation/RelatedNavigationResolver.php:1062:            ? BackupSetResource::getUrl('index', tenant: $tenant)
app/Support/Navigation/RelatedNavigationResolver.php:1063:            : BackupSetResource::getUrl('view', ['record' => $backupSet], tenant: $tenant);
app/Support/Navigation/RelatedNavigationResolver.php:1072:                'tableFilters' => [
app/Support/Navigation/RelatedNavigationResolver.php:1073:                    'managed_environment_id' => ['value' => (string) $tenant->getKey()],
app/Support/Navigation/RelatedNavigationResolver.php:1090:                'tableFilters' => [
app/Support/Navigation/RelatedNavigationResolver.php:1091:                    'managed_environment_id' => ['value' => (string) $tenant->getKey()],
app/Filament/Widgets/ManagedEnvironment/ManagedEnvironmentReviewPackCard.php:38:        $tenant = Filament::getTenant();
app/Filament/Widgets/ManagedEnvironment/ManagedEnvironmentReviewPackCard.php:94:                ->where('managed_environment_id', (int) $tenant->getKey())
app/Filament/Widgets/ManagedEnvironment/ManagedEnvironmentReviewPackCard.php:107:                    Action::make('view_run')
app/Filament/Widgets/ManagedEnvironment/ManagedEnvironmentReviewPackCard.php:109:                        ->url(OperationRunLinks::tenantlessView($activeRun)),
app/Filament/Widgets/ManagedEnvironment/ManagedEnvironmentReviewPackCard.php:142:                Action::make('view_run')
app/Filament/Widgets/ManagedEnvironment/ManagedEnvironmentReviewPackCard.php:144:                    ->url($runUrl),
app/Filament/Widgets/ManagedEnvironment/ManagedEnvironmentReviewPackCard.php:180:            ->where('managed_environment_id', (int) $tenant->getKey())
app/Support/Verification/BlockedVerificationReportFactory.php:60:            $entraTenantId = $targetScope['entra_tenant_id'] ?? null;
app/Support/Verification/BlockedVerificationReportFactory.php:62:                $identity['entra_tenant_id'] = trim($entraTenantId);
app/Support/Verification/BlockedVerificationReportFactory.php:139:            $entraTenantId = $targetScope['entra_tenant_id'] ?? null;
app/Support/Verification/BlockedVerificationReportFactory.php:142:                    'kind' => 'entra_tenant_id',
app/Models/BackupItem.php:30:        return $this->belongsTo(ManagedEnvironment::class, 'managed_environment_id');
tests/Feature/Findings/FindingAuditBackstopTest.php:28:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/Findings/FindingAuditBackstopTest.php:89:            ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/Findings/FindingExceptionDetailDecisionSummaryTest.php:29:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Findings/FindingExceptionDetailDecisionSummaryTest.php:48:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Findings/FindingExceptionDetailDecisionSummaryTest.php:65:        backLinkUrl: DecisionRegister::getUrl(panel: 'admin', parameters: [
tests/Feature/Findings/FindingExceptionDetailDecisionSummaryTest.php:66:            'managed_environment_id' => (string) $tenant->getKey(),
app/Filament/Widgets/ManagedEnvironment/ManagedEnvironmentArchivedBanner.php:23:        $tenant = Filament::getTenant();
tests/Feature/Findings/FindingRelatedNavigationTest.php:33:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Findings/FindingRelatedNavigationTest.php:38:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Findings/FindingRelatedNavigationTest.php:68:    $this->get(FindingResource::getUrl('view', ['record' => $finding], tenant: $tenant))
tests/Feature/Findings/FindingRelatedNavigationTest.php:72:        ->assertSee(BaselineSnapshotResource::getUrl('view', ['record' => $snapshot], panel: 'admin'), false)
tests/Feature/Findings/FindingRelatedNavigationTest.php:75:    $this->get(FindingResource::getUrl('index', tenant: $tenant))
app/Support/Verification/StaleQueuedVerificationReportFactory.php:52:            $entraTenantId = $targetScope['entra_tenant_id'] ?? null;
app/Support/Verification/StaleQueuedVerificationReportFactory.php:54:                $identity['entra_tenant_id'] = trim($entraTenantId);
app/Support/Verification/StaleQueuedVerificationReportFactory.php:87:            $entraTenantId = $targetScope['entra_tenant_id'] ?? null;
app/Support/Verification/StaleQueuedVerificationReportFactory.php:90:                    'kind' => 'entra_tenant_id',
app/Models/AuditLog.php:41:            if ($auditLog->workspace_id === null && is_numeric($auditLog->managed_environment_id)) {
app/Models/AuditLog.php:43:                    ->whereKey((int) $auditLog->managed_environment_id)
app/Models/AuditLog.php:72:        return $this->belongsTo(ManagedEnvironment::class, 'managed_environment_id');
app/Models/AuditLog.php:92:        return $query->where('managed_environment_id', $tenantId);
app/Models/AuditLog.php:252:            'ManagedEnvironment scope' => is_numeric($this->managed_environment_id) ? (int) $this->managed_environment_id : null,
app/Support/Navigation/WorkspaceSidebarNavigation.php:42:                            ->url(fn (): string => FindingExceptionsQueue::getUrl(panel: 'admin'))
app/Support/Navigation/WorkspaceSidebarNavigation.php:46:                            ->url(fn (): string => OperationRunLinks::index())
app/Support/Navigation/WorkspaceSidebarNavigation.php:50:                            ->url(fn (): string => route('filament.admin.alerts'))
app/Support/Navigation/WorkspaceSidebarNavigation.php:55:                                    ->url(fn (): string => AlertDestinationResource::getUrl(panel: 'admin'))
app/Support/Navigation/WorkspaceSidebarNavigation.php:59:                                    ->url(fn (): string => AlertRuleResource::getUrl(panel: 'admin'))
app/Support/Navigation/WorkspaceSidebarNavigation.php:63:                                    ->url(fn (): string => AlertDeliveryResource::getUrl(panel: 'admin'))
app/Support/Navigation/WorkspaceSidebarNavigation.php:68:                            ->url(fn (): string => route('admin.monitoring.audit-log'))
app/Support/Navigation/WorkspaceSidebarNavigation.php:74:                            ->url(fn (): string => ReviewRegister::getUrl(panel: 'admin'))
app/Support/Navigation/WorkspaceSidebarNavigation.php:77:                            ->url(fn (): string => CustomerReviewWorkspace::getUrl(panel: 'admin'))
app/Support/Navigation/WorkspaceSidebarNavigation.php:83:                            ->url(fn (): string => route('filament.admin.resources.workspaces.index'))
app/Support/Navigation/WorkspaceSidebarNavigation.php:87:                            ->url(fn (): string => ProviderConnectionResource::getUrl('index', panel: 'admin'))
app/Support/Navigation/WorkspaceSidebarNavigation.php:92:                                    ->url(fn (): string => ProviderConnectionResource::getUrl('index', panel: 'admin'))
app/Support/Navigation/WorkspaceSidebarNavigation.php:97:                            ->url(fn (): string => WorkspaceSettings::getUrl(panel: 'admin'))
app/Support/Navigation/WorkspaceSidebarNavigation.php:104:                            ->url(fn (): string => GovernanceInbox::getUrl(panel: 'admin'))
app/Support/Navigation/WorkspaceSidebarNavigation.php:107:                            ->url(fn (): string => DecisionRegister::getUrl(panel: 'admin'))
app/Filament/Widgets/ManagedEnvironment/AdminRolesSummaryWidget.php:31:        $tenant = Filament::getTenant();
app/Filament/Widgets/ManagedEnvironment/AdminRolesSummaryWidget.php:69:                'managed_environment_id' => (int) $tenant->getKey(),
app/Filament/Widgets/ManagedEnvironment/AdminRolesSummaryWidget.php:86:                    Action::make('view_run')
app/Filament/Widgets/ManagedEnvironment/AdminRolesSummaryWidget.php:88:                        ->url($runUrl),
app/Filament/Widgets/ManagedEnvironment/AdminRolesSummaryWidget.php:108:                Action::make('view_run')
app/Filament/Widgets/ManagedEnvironment/AdminRolesSummaryWidget.php:110:                    ->url($runUrl),
app/Filament/Widgets/ManagedEnvironment/AdminRolesSummaryWidget.php:132:            ->where('managed_environment_id', (int) $tenant->getKey())
app/Filament/Widgets/ManagedEnvironment/AdminRolesSummaryWidget.php:162:                ? StoredReportResource::getUrl('view', ['record' => $report], tenant: $tenant)
tests/Feature/Findings/FindingAuditLogTest.php:31:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/Findings/FindingAuditLogTest.php:72:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/Findings/FindingRiskGovernanceProjectionTest.php:32:        'managed_environment_id' => (int) $tenant->getKey(),
app/Support/ManagedEnvironmentLinks.php:25:        return self::withQuery(route('admin.workspace.managed-environments.index', [
app/Support/ManagedEnvironmentLinks.php:41:        return self::withQuery(route('admin.workspace.environments.show', [
app/Support/ManagedEnvironmentLinks.php:76:        if ($environment instanceof ManagedEnvironment && ! array_key_exists('managed_environment_id', $query)) {
app/Support/ManagedEnvironmentLinks.php:77:            $query['managed_environment_id'] = (string) $environment->external_id;
app/Support/ManagedEnvironmentLinks.php:80:        return ProviderConnectionResource::getUrl('index', $query, panel: 'admin');
app/Support/ManagedEnvironmentLinks.php:92:        if ($environment instanceof ManagedEnvironment && ! array_key_exists('managed_environment_id', $query)) {
app/Support/ManagedEnvironmentLinks.php:93:            $query['managed_environment_id'] = (string) $environment->external_id;
app/Support/ManagedEnvironmentLinks.php:98:        return ProviderConnectionResource::getUrl($page, $query, panel: 'admin');
app/Support/ManagedEnvironmentLinks.php:106:        if ($scope instanceof ManagedEnvironment && ! array_key_exists('managed_environment_id', $query)) {
app/Support/ManagedEnvironmentLinks.php:107:            $query['managed_environment_id'] = (int) $scope->getKey();
app/Support/ManagedEnvironmentLinks.php:116:        return self::withQuery(route('admin.operations.index', [
app/Support/ManagedEnvironmentLinks.php:146:        return self::withQuery(route($routeName, [
app/Support/ManagedEnvironmentLinks.php:179:        $queryString = http_build_query($query);
app/Support/ManagedEnvironmentLinks.php:181:        return $queryString !== '' ? "{$url}?{$queryString}" : $url;
app/Filament/Widgets/ManagedEnvironment/ManagedEnvironmentTriageArrivalContinuity.php:76:        $tenant = Filament::getTenant();
app/Filament/Widgets/ManagedEnvironment/ManagedEnvironmentTriageArrivalContinuity.php:97:            Action::make('markReviewed')
app/Filament/Widgets/ManagedEnvironment/ManagedEnvironmentTriageArrivalContinuity.php:117:            Action::make('markFollowUpNeeded')
app/Filament/Widgets/ManagedEnvironment/ManagedEnvironmentTriageArrivalContinuity.php:136:        $tenant = Filament::getTenant();
app/Filament/Widgets/ManagedEnvironment/ManagedEnvironmentTriageArrivalContinuity.php:154:            $tenant = Filament::getTenant();
app/Filament/Widgets/ManagedEnvironment/ManagedEnvironmentTriageArrivalContinuity.php:189:        $tenant = Filament::getTenant();
tests/Feature/Findings/FindingExceptionDecisionRegisterBoundariesTest.php:29:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Findings/FindingExceptionDecisionRegisterBoundariesTest.php:43:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Findings/FindingExceptionDecisionRegisterBoundariesTest.php:55:        ->get(DecisionRegister::getUrl(panel: 'admin'))
tests/Feature/Findings/FindingExceptionDecisionRegisterBoundariesTest.php:78:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Findings/FindingExceptionDecisionRegisterBoundariesTest.php:95:            'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Findings/FindingExceptionDecisionRegisterBoundariesTest.php:115:        ->get(DecisionRegister::getUrl(panel: 'admin', parameters: ['register_state' => 'recently_closed']))
tests/Feature/Findings/FindingExceptionDecisionRegisterBoundariesTest.php:135:        'managed_environment_id' => (int) $otherTenant->getKey(),
tests/Feature/Findings/FindingExceptionDecisionRegisterBoundariesTest.php:148:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Findings/FindingExceptionDecisionRegisterBoundariesTest.php:162:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Findings/FindingExceptionDecisionRegisterBoundariesTest.php:173:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Findings/FindingExceptionDecisionRegisterBoundariesTest.php:182:        ->get(DecisionRegister::getUrl(panel: 'admin'))
tests/Feature/Findings/FindingExceptionDecisionRegisterBoundariesTest.php:191:        ->get(EvidenceSnapshotResource::getUrl('view', ['record' => $otherSnapshot], tenant: $otherTenant, panel: 'admin'))
tests/Feature/Findings/FindingExceptionDecisionRegisterBoundariesTest.php:210:        'managed_environment_id' => (int) $otherTenant->getKey(),
tests/Feature/Findings/FindingExceptionDecisionRegisterBoundariesTest.php:223:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Findings/FindingExceptionDecisionRegisterBoundariesTest.php:237:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Findings/FindingExceptionDecisionRegisterBoundariesTest.php:248:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Findings/FindingExceptionDecisionRegisterBoundariesTest.php:257:        ->get(DecisionRegister::getUrl(panel: 'admin'))
tests/Feature/Findings/FindingExceptionDecisionRegisterBoundariesTest.php:266:        ->get(EvidenceSnapshotResource::getUrl('view', ['record' => $otherSnapshot], tenant: $otherTenant, panel: 'admin'))
app/Models/BackupSet.php:27:        return $this->belongsTo(ManagedEnvironment::class, 'managed_environment_id');
tests/Feature/Findings/MyFindingsInboxNavigationContextTest.php:40:        backLinkUrl: GovernanceInbox::getUrl(panel: 'admin', parameters: [
tests/Feature/Findings/MyFindingsInboxNavigationContextTest.php:41:            'managed_environment_id' => (string) $tenant->getKey(),
tests/Feature/Findings/MyFindingsInboxNavigationContextTest.php:51:        ->assertSet('tableFilters.managed_environment_id.value', (string) $tenant->getKey())
app/Support/Verification/PreviousVerificationReportResolver.php:23:            ->where('managed_environment_id', (int) $run->managed_environment_id)
tests/Feature/Findings/FindingsClaimHandoffTest.php:48:        ->where('managed_environment_id', (int) $tenant->getKey())
tests/Feature/Findings/FindingsClaimHandoffTest.php:98:            ->where('managed_environment_id', (int) $tenant->getKey())
app/Models/BaselineTenantAssignment.php:29:        return $this->belongsTo(ManagedEnvironment::class, 'managed_environment_id');
app/Models/BaselineTenantAssignment.php:61:            ->pluck('managed_environment_id')
app/Filament/Widgets/Dashboard/RecentDriftFindings.php:26:        $tenant = Filament::getTenant();
app/Filament/Widgets/Dashboard/RecentDriftFindings.php:74:                ? FindingResource::getUrl('view', ['record' => $record], tenant: $tenant)
app/Filament/Widgets/Dashboard/RecentDriftFindings.php:85:        $tenant = Filament::getTenant();
app/Filament/Widgets/Dashboard/RecentDriftFindings.php:90:            ->when($tenantId, fn (Builder $query) => $query->where('managed_environment_id', $tenantId))
app/Models/ReviewPack.php:55:        return $this->belongsTo(ManagedEnvironment::class, 'managed_environment_id');
app/Models/ReviewPack.php:123:        return $query->where('managed_environment_id', $tenantId);
tests/Feature/BackupWithAssignmentsConsistencyTest.php:23:        'managed_environment_id' => $this->tenant->id,
tests/Feature/BackupWithAssignmentsConsistencyTest.php:165:        'managed_environment_id' => $this->tenant->id,
tests/Feature/BackupWithAssignmentsConsistencyTest.php:226:        'managed_environment_id' => $this->tenant->id,
tests/Feature/Findings/FindingsNotificationRoutingTest.php:113:        ->where('managed_environment_id', (int) $tenant->getKey())
app/Support/PortfolioTriage/PortfolioArrivalContextResolver.php:328:            'url' => BackupSetResource::getUrl('index', [
app/Support/PortfolioTriage/PortfolioArrivalContextResolver.php:399:                ->where('managed_environment_id', (int) $tenant->getKey())
app/Support/PortfolioTriage/PortfolioArrivalContextResolver.php:404:                    'url' => RestoreRunResource::getUrl('view', [
app/Support/PortfolioTriage/PortfolioArrivalContextResolver.php:416:                'url' => RestoreRunResource::getUrl('index', [
app/Support/PortfolioTriage/PortfolioArrivalContextResolver.php:427:            'url' => RestoreRunResource::getUrl('index', [
app/Support/PortfolioTriage/PortfolioArrivalContextResolver.php:450:                'url' => route('admin.home'),
tests/Feature/Findings/FindingExceptionAuthorizationTest.php:44:        'managed_environment_id' => (int) $tenant->getKey(),
tests/Feature/Findings/FindingExceptionAuthorizationTest.php:57:        ->get(FindingExceptionResource::getUrl('index', tenant: $tenant))
tests/Feature/Findings/FindingExceptionAuthorizationTest.php:61:        ->get(FindingExceptionResource::getUrl('view', ['record' => $exception], tenant: $tenant))
app/Filament/Widgets/Dashboard/RecoveryReadiness.php:34:        return ActiveRuns::pollingIntervalForTenant(Filament::getTenant());
app/Filament/Widgets/Dashboard/RecoveryReadiness.php:42:        $tenant = Filament::getTenant();
app/Filament/Widgets/Dashboard/RecoveryReadiness.php:124:                'actionUrl' => BackupSetResource::getUrl('index', [
app/Filament/Widgets/Dashboard/RecoveryReadiness.php:130:                'actionUrl' => BackupScheduleResource::getUrl('index', [
app/Filament/Widgets/Dashboard/RecoveryReadiness.php:147:                'actionUrl' => BackupSetResource::getUrl('index', [
app/Filament/Widgets/Dashboard/RecoveryReadiness.php:158:                'actionUrl' => BackupSetResource::getUrl('view', [
app/Filament/Widgets/Dashboard/RecoveryReadiness.php:166:                'actionUrl' => BackupSetResource::getUrl('index', [
app/Filament/Widgets/Dashboard/RecoveryReadiness.php:200:                'actionUrl' => RestoreRunResource::getUrl('view', [
app/Filament/Widgets/Dashboard/RecoveryReadiness.php:234:        return RestoreRunResource::getUrl('index', [
app/Models/ManagedEnvironmentMembership.php:33:        return $this->belongsTo(ManagedEnvironment::class, 'managed_environment_id');
tests/Feature/Findings/FindingsNotificationEventTest.php:54:        'managed_environment_id' => null,
tests/Feature/PolicyTypes017Test.php:105:        'managed_environment_id' => $tenant->id,
tests/Feature/PolicyTypes017Test.php:112:        'managed_environment_id' => $tenant->id,
tests/Feature/PolicyTypes017Test.php:119:        'managed_environment_id' => $tenant->id,
tests/Feature/PolicyTypes017Test.php:160:                    'managed_environment_id' => $tenant->id,
tests/Feature/PolicyTypes017Test.php:213:        'managed_environment_id' => $tenant->id,
tests/Feature/PolicyTypes017Test.php:219:        'managed_environment_id' => $tenant->id,
tests/Feature/PolicyTypes017Test.php:232:        'managed_environment_id' => $tenant->id,
tests/Feature/PolicyTypes017Test.php:246:        'managed_environment_id' => $tenant->id,
app/Models/BackupSchedule.php:33:        return $this->belongsTo(ManagedEnvironment::class, 'managed_environment_id');
app/Models/BackupSchedule.php:38:        return $this->hasMany(OperationRun::class, 'managed_environment_id', 'managed_environment_id')
app/Filament/Widgets/Dashboard/EnvironmentDashboardContextChips.php:25:        $tenant = Filament::getTenant();
app/Models/InventoryItem.php:30:        return $this->belongsTo(ManagedEnvironment::class, 'managed_environment_id');
app/Models/ProviderConnection.php:39:        return $this->belongsTo(ManagedEnvironment::class, 'managed_environment_id');
app/Models/ProviderConnection.php:56:                ->where('managed_environment_id', $this->managed_environment_id)
app/Filament/Widgets/Dashboard/DashboardKpis.php:21:        return ActiveRuns::pollingIntervalForTenant(Filament::getTenant());
app/Filament/Widgets/Dashboard/DashboardKpis.php:29:        $tenant = Filament::getTenant();
app/Filament/Widgets/Dashboard/DashboardKpis.php:67:                $stat->url($kpi['actionUrl']);
app/Support/PortfolioTriage/ManagedEnvironmentTriageReviewStateResolver.php:58:            ->whereIn('managed_environment_id', $tenantIds)
app/Support/PortfolioTriage/ManagedEnvironmentTriageReviewStateResolver.php:64:                'managed_environment_id',
app/Support/PortfolioTriage/ManagedEnvironmentTriageReviewStateResolver.php:134:                'managed_environment_id' => $tenantId,
app/Support/PortfolioTriage/ManagedEnvironmentTriageReviewStateResolver.php:156:            'managed_environment_id' => $tenantId,
app/Models/ManagedEnvironmentTriageReview.php:79:        return $this->belongsTo(ManagedEnvironment::class, 'managed_environment_id');
app/Models/ManagedEnvironmentTriageReview.php:105:        return $query->where('managed_environment_id', $tenantId);
app/Models/EnvironmentReview.php:50:        return $this->belongsTo(ManagedEnvironment::class, 'managed_environment_id');
app/Models/EnvironmentReview.php:131:        return $query->where('managed_environment_id', $tenantId);
app/Filament/Widgets/Dashboard/EnvironmentDashboardOverview.php:25:        $tenant = Filament::getTenant();
app/Models/VerificationCheckAcknowledgement.php:23:        return $this->belongsTo(ManagedEnvironment::class, 'managed_environment_id');
app/Models/AlertDelivery.php:49:        return $this->belongsTo(ManagedEnvironment::class, 'managed_environment_id');
app/Models/EvidenceSnapshot.php:48:        return $this->belongsTo(ManagedEnvironment::class, 'managed_environment_id');
app/Models/EvidenceSnapshot.php:97:        return $query->where('managed_environment_id', $tenantId);
app/Filament/Widgets/Dashboard/BaselineCompareNow.php:31:        $tenant = Filament::getTenant();
app/Filament/Widgets/Dashboard/BaselineCompareNow.php:56:        $tenantLandingUrl = BaselineCompareLanding::getUrl(tenant: $tenant);
app/Filament/Widgets/Dashboard/BaselineCompareNow.php:58:            ->where('managed_environment_id', (int) $tenant->getKey())
app/Filament/Widgets/Dashboard/BaselineCompareNow.php:182:        return FindingResource::getUrl('index', $parameters, tenant: $tenant);
app/Models/PolicyVersion.php:45:        return $this->belongsTo(ManagedEnvironment::class, 'managed_environment_id');
app/Models/EvidenceSnapshotItem.php:48:        return $this->belongsTo(ManagedEnvironment::class, 'managed_environment_id');
app/Models/FindingException.php:77:        return $this->belongsTo(ManagedEnvironment::class, 'managed_environment_id');
app/Models/FindingExceptionEvidenceReference.php:43:        return $this->belongsTo(ManagedEnvironment::class, 'managed_environment_id');
app/Support/Providers/TargetScope/ProviderConnectionTargetScopeNormalizer.php:100:        $connectionTenantId = trim((string) $connection->entra_tenant_id);
app/Support/Providers/TargetScope/ProviderConnectionTargetScopeNormalizer.php:108:                'microsoft_tenant_id' => $connectionTenantId !== '' ? $connectionTenantId : $descriptor->scopeIdentifier,
app/Support/Providers/TargetScope/ProviderConnectionTargetScopeNormalizer.php:131:        $connectionTenantId = trim((string) $connection->entra_tenant_id);
app/Support/Providers/TargetScope/ProviderConnectionTargetScopeNormalizer.php:137:                'microsoft_tenant_id' => $connectionTenantId !== '' ? $connectionTenantId : $descriptor->scopeIdentifier,
app/Support/Providers/TargetScope/ProviderConnectionTargetScopeNormalizer.php:185:            static fn (string $field): string => $field === 'entra_tenant_id' ? 'target_scope_identifier' : $field,
app/Support/Providers/TargetScope/ProviderConnectionTargetScopeNormalizer.php:202:                $providerSpecificIdentity['microsoft_tenant_id'] ?? $scopeIdentifier,
app/Filament/Widgets/Dashboard/NeedsAttention.php:43:        $tenant = Filament::getTenant();
app/Filament/Widgets/Dashboard/NeedsAttention.php:77:            ->where('managed_environment_id', $tenantId)
app/Filament/Widgets/Dashboard/NeedsAttention.php:81:            ->where('managed_environment_id', $tenantId)
app/Filament/Widgets/Dashboard/NeedsAttention.php:85:            ->where('managed_environment_id', $tenantId)
app/Filament/Widgets/Dashboard/NeedsAttention.php:167:                'actionUrl' => BaselineCompareLanding::getUrl(tenant: $tenant),
app/Filament/Widgets/Dashboard/NeedsAttention.php:251:            ? FindingResource::getUrl('index', $parameters, tenant: $tenant)
app/Filament/Widgets/Dashboard/NeedsAttention.php:436:                'actionUrl' => BackupSetResource::getUrl('index', [
app/Filament/Widgets/Dashboard/NeedsAttention.php:444:                'actionUrl' => BackupScheduleResource::getUrl('index', [
app/Filament/Widgets/Dashboard/NeedsAttention.php:468:                'actionUrl' => BackupSetResource::getUrl('index', [
app/Filament/Widgets/Dashboard/NeedsAttention.php:481:                'actionUrl' => BackupSetResource::getUrl('view', [
app/Filament/Widgets/Dashboard/NeedsAttention.php:491:                'actionUrl' => BackupSetResource::getUrl('index', [
app/Filament/Widgets/Dashboard/NeedsAttention.php:564:                'actionUrl' => RestoreRunResource::getUrl('view', [
app/Filament/Widgets/Dashboard/NeedsAttention.php:592:        return RestoreRunResource::getUrl('index', [
app/Models/Policy.php:38:        return $this->belongsTo(ManagedEnvironment::class, 'managed_environment_id');
app/Models/ManagedEnvironmentOnboardingSession.php:26:        'entra_tenant_id',
app/Models/ManagedEnvironmentOnboardingSession.php:27:        'managed_environment_id',
app/Models/ManagedEnvironmentOnboardingSession.php:85:        return $this->belongsTo(ManagedEnvironment::class, 'managed_environment_id')->withTrashed();
app/Models/ManagedEnvironment.php:276:        $filamentTenant = Filament::getTenant();
app/Models/ManagedEnvironment.php:436:        return $this->hasManyThrough(ProviderCredential::class, ProviderConnection::class, 'managed_environment_id', 'provider_connection_id');
app/Models/ManagedEnvironment.php:446:        return is_string($connection?->entra_tenant_id) && $connection->entra_tenant_id !== ''
app/Models/ManagedEnvironment.php:447:            ? $connection->entra_tenant_id
app/Models/ManagedEnvironment.php:453:        return (string) ($this->graphTenantId() ?? $this->managed_environment_id ?? $this->external_id ?? $this->getKey());
app/Support/Providers/TargetScope/ProviderConnectionTargetScopeDescriptor.php:28:        $scopeIdentifier = trim((string) $connection->entra_tenant_id);
app/Models/ProductUsageEvent.php:45:        return $this->belongsTo(ManagedEnvironment::class, 'managed_environment_id')->withTrashed();
app/Filament/Widgets/Dashboard/RecentOperations.php:27:        $tenant = Filament::getTenant();
app/Filament/Widgets/Dashboard/RecentOperations.php:110:        $tenant = Filament::getTenant();
app/Filament/Widgets/Dashboard/RecentOperations.php:114:            ->when($tenantId, fn (Builder $query) => $query->where('managed_environment_id', $tenantId))
app/Support/OpsUx/ProviderOperationStartResultPresenter.php:52:            Action::make('view_run')
app/Support/OpsUx/ProviderOperationStartResultPresenter.php:54:                ->url($runUrl),
app/Support/OpsUx/ProviderOperationStartResultPresenter.php:61:                $actions[] = Action::make('next_step_0')
app/Support/OpsUx/ProviderOperationStartResultPresenter.php:63:                    ->url($nextStep->destination);
app/Support/Providers/TargetScope/ProviderIdentityContextMetadata.php:31:            detailKey: 'microsoft_tenant_id',
app/Support/BackupHealth/TenantBackupHealthResolver.php:79:            ->whereIn('managed_environment_id', $tenantIds)
app/Support/BackupHealth/TenantBackupHealthResolver.php:81:            ->orderBy('managed_environment_id')
app/Support/BackupHealth/TenantBackupHealthResolver.php:86:                'managed_environment_id',
app/Support/BackupHealth/TenantBackupHealthResolver.php:88:            ->unique('managed_environment_id')
app/Support/BackupHealth/TenantBackupHealthResolver.php:102:                    'managed_environment_id',
app/Support/BackupHealth/TenantBackupHealthResolver.php:111:                'managed_environment_id',
app/Support/BackupHealth/TenantBackupHealthResolver.php:122:            ->keyBy(static fn (BackupSet $backupSet): int => (int) $backupSet->managed_environment_id)
app/Support/BackupHealth/TenantBackupHealthResolver.php:153:            ->whereIn('managed_environment_id', $tenantIds)
app/Support/BackupHealth/TenantBackupHealthResolver.php:155:            ->orderBy('managed_environment_id')
app/Support/BackupHealth/TenantBackupHealthResolver.php:160:                'managed_environment_id',
app/Support/BackupHealth/TenantBackupHealthResolver.php:166:            ->groupBy('managed_environment_id');
app/Filament/Widgets/Alerts/AlertsKpiHeader.php:101:            qualifiedEnvironmentColumn: 'alert_deliveries.managed_environment_id',
app/Support/OpsUx/RunDurationInsights.php:82:        $tenantId = (int) ($run->managed_environment_id ?? 0);
app/Support/OpsUx/RunDurationInsights.php:93:                ->where('managed_environment_id', $tenantId)
app/Models/InventoryLink.php:28:        return $this->belongsTo(ManagedEnvironment::class, 'managed_environment_id');
app/Models/TenantRoleMapping.php:25:        return $this->belongsTo(ManagedEnvironment::class, 'managed_environment_id');
app/Models/ManagedEnvironmentPermission.php:24:        return $this->belongsTo(ManagedEnvironment::class, 'managed_environment_id');
app/Support/GovernanceInbox/GovernanceInboxSectionBuilder.php:249:                FindingExceptionsQueue::getUrl(
app/Support/GovernanceInbox/GovernanceInboxSectionBuilder.php:308:                MyFindingsInbox::getUrl(
app/Support/GovernanceInbox/GovernanceInboxSectionBuilder.php:350:                FindingsIntakeQueue::getUrl(
app/Support/GovernanceInbox/GovernanceInboxSectionBuilder.php:444:                AlertDeliveryResource::getUrl(panel: 'admin'),
app/Support/GovernanceInbox/GovernanceInboxSectionBuilder.php:448:                        'tableFilters' => array_filter([
app/Support/GovernanceInbox/GovernanceInboxSectionBuilder.php:450:                            'managed_environment_id' => $selectedTenant instanceof ManagedEnvironment
app/Support/GovernanceInbox/GovernanceInboxSectionBuilder.php:489:            ->keyBy('managed_environment_id')
app/Support/GovernanceInbox/GovernanceInboxSectionBuilder.php:554:                : $this->appendQuery(CustomerReviewWorkspace::getUrl(panel: 'admin'), $navigationContext?->toQuery() ?? []),
app/Support/GovernanceInbox/GovernanceInboxSectionBuilder.php:574:            ->whereIn('managed_environment_id', $tenantIds === [] ? [-1] : $tenantIds)
app/Support/GovernanceInbox/GovernanceInboxSectionBuilder.php:603:            ->whereIn('managed_environment_id', $tenantIds === [] ? [-1] : $tenantIds)
app/Support/GovernanceInbox/GovernanceInboxSectionBuilder.php:655:                    $query->where('managed_environment_id', (int) $selectedTenant->getKey());
app/Support/GovernanceInbox/GovernanceInboxSectionBuilder.php:661:                    ->whereIn('managed_environment_id', $tenantIds === [] ? [-1] : $tenantIds)
app/Support/GovernanceInbox/GovernanceInboxSectionBuilder.php:662:                    ->orWhereNull('managed_environment_id');
app/Support/GovernanceInbox/GovernanceInboxSectionBuilder.php:679:                    $query->where('managed_environment_id', (int) $selectedTenant->getKey());
app/Support/GovernanceInbox/GovernanceInboxSectionBuilder.php:685:                    ->whereIn('managed_environment_id', $tenantIds === [] ? [-1] : $tenantIds)
app/Support/GovernanceInbox/GovernanceInboxSectionBuilder.php:686:                    ->orWhereNull('managed_environment_id');
app/Support/GovernanceInbox/GovernanceInboxSectionBuilder.php:707:            ->whereIn('managed_environment_id', $tenantIds === [] ? [-1] : $tenantIds)
app/Support/GovernanceInbox/GovernanceInboxSectionBuilder.php:761:            'managed_environment_id' => $finding->tenant ? (int) $finding->tenant->getKey() : null,
app/Support/GovernanceInbox/GovernanceInboxSectionBuilder.php:770:                FindingResource::getUrl('view', ['record' => $finding], tenant: $finding->tenant),
app/Support/GovernanceInbox/GovernanceInboxSectionBuilder.php:788:            'managed_environment_id' => $run->tenant ? (int) $run->tenant->getKey() : null,
app/Support/GovernanceInbox/GovernanceInboxSectionBuilder.php:825:            'managed_environment_id' => $delivery->tenant ? (int) $delivery->tenant->getKey() : null,
app/Support/GovernanceInbox/GovernanceInboxSectionBuilder.php:832:                AlertDeliveryResource::getUrl('view', ['record' => $delivery], panel: 'admin'),
app/Support/GovernanceInbox/GovernanceInboxSectionBuilder.php:859:            'managed_environment_id' => $exception->tenant ? (int) $exception->tenant->getKey() : null,
app/Support/GovernanceInbox/GovernanceInboxSectionBuilder.php:872:                FindingExceptionsQueue::getUrl(
app/Support/GovernanceInbox/GovernanceInboxSectionBuilder.php:919:            'managed_environment_id' => (int) $tenant->getKey(),
app/Models/EnvironmentReviewSection.php:54:        return $this->belongsTo(ManagedEnvironment::class, 'managed_environment_id');
app/Filament/Widgets/Operations/OperationsKpiHeader.php:136:                ->where('managed_environment_id', (int) $tenant->getKey());
app/Filament/Widgets/Operations/OperationsKpiHeader.php:157:            $query->whereNull('managed_environment_id');
app/Filament/Widgets/Operations/OperationsKpiHeader.php:160:                $query->orWhereIn('managed_environment_id', array_values(array_unique(array_map('intval', $allowedTenantIds))));
app/Models/UserTenantPreference.php:31:        return $this->belongsTo(ManagedEnvironment::class, 'managed_environment_id');
app/Models/TenantSetting.php:30:        return $this->belongsTo(ManagedEnvironment::class, 'managed_environment_id');
app/Models/EntraRoleDefinition.php:24:        return $this->belongsTo(ManagedEnvironment::class, 'managed_environment_id');
app/Models/RestoreRun.php:35:        return $this->belongsTo(ManagedEnvironment::class, 'managed_environment_id');
app/Support/Ui/DerivedState/DerivedStateKey.php:51:            tenantId: $tenantId ?? self::normalizeScopeId($record->getAttribute('managed_environment_id')),
app/Support/Ui/DerivedState/DerivedStateKey.php:63:     *     managed_environment_id: ?int,
app/Support/Ui/DerivedState/DerivedStateKey.php:75:            'managed_environment_id' => $this->tenantId,
app/Filament/Widgets/Workspace/WorkspaceNeedsAttention.php:20:     *     managed_environment_id: int,
app/Filament/Widgets/Workspace/WorkspaceNeedsAttention.php:57:     *     managed_environment_id: int,
app/Providers/Filament/AdminPanelProvider.php:77:            ->homeUrl(fn (): string => route('admin.home'))
app/Providers/Filament/AdminPanelProvider.php:91:                    ->url(fn (): string => InventoryCluster::getUrl(panel: 'admin'))
app/Providers/Filament/AdminPanelProvider.php:97:                    ->url(fn (): string => InventoryCoverage::getUrl(panel: 'admin'))
app/Providers/Filament/AdminPanelProvider.php:103:                    ->url(fn (): string => EntraGroupResource::getUrl(panel: 'admin'))
app/Providers/Filament/AdminPanelProvider.php:109:                    ->url(fn (): string => route('filament.admin.resources.provider-connections.index'))
app/Providers/Filament/AdminPanelProvider.php:115:                    ->url(fn (): string => WorkspaceSettings::getUrl(panel: 'admin'))
app/Providers/Filament/AdminPanelProvider.php:145:                    ->url(function (): string {
app/Providers/Filament/AdminPanelProvider.php:146:                        return route('filament.admin.resources.workspaces.index');
app/Providers/Filament/AdminPanelProvider.php:166:                    ->url(fn (): string => OperationRunLinks::index())
app/Providers/Filament/AdminPanelProvider.php:171:                    ->url(fn (): string => route('filament.admin.alerts'))
app/Providers/Filament/AdminPanelProvider.php:176:                    ->url(fn (): string => route('admin.monitoring.audit-log'))
app/Models/AlertRule.php:72:        if ($this->tenant_scope_mode !== self::TENANT_SCOPE_ALLOWLIST) {
app/Models/User.php:42:        'entra_tenant_id',
app/Models/User.php:209:                ->value('managed_environment_id');
app/Filament/Widgets/Workspace/WorkspaceSummaryStats.php:66:                    $stat->url($destinationUrl);
app/Support/Artifacts/ArtifactSourceResolver.php:41:            tenantId: (int) $finding->managed_environment_id,
app/Support/Artifacts/ArtifactSourceResolver.php:42:            managedEnvironmentId: (int) $finding->managed_environment_id,
app/Support/Artifacts/ArtifactSourceResolver.php:50:            sourceTargetIdentifier: $targetIdentifier ?? (string) $finding->managed_environment_id,
app/Support/Artifacts/ArtifactSourceResolver.php:81:            tenantId: (int) $report->managed_environment_id,
app/Support/Artifacts/ArtifactSourceResolver.php:82:            managedEnvironmentId: (int) $report->managed_environment_id,
app/Support/Artifacts/ArtifactSourceResolver.php:88:            sourceTargetIdentifier: (string) $report->managed_environment_id,
app/Support/Artifacts/ArtifactSourceResolver.php:112:            tenantId: (int) $item->managed_environment_id,
app/Support/Artifacts/ArtifactSourceResolver.php:113:            managedEnvironmentId: (int) $item->managed_environment_id,
app/Support/Artifacts/ArtifactSourceResolver.php:159:            managedEnvironmentId: (int) $item->managed_environment_id,
app/Support/OpsUx/BulkRunContext.php:12:     * @param  array{entra_tenant_id?: mixed, directory_context_id?: mixed}  $targetScope
app/Support/OpsUx/BulkRunContext.php:39:     * @param  array{entra_tenant_id?: mixed, directory_context_id?: mixed}  $targetScope
app/Support/OpsUx/BulkRunContext.php:40:     * @return array{entra_tenant_id?: string, directory_context_id?: string}
app/Support/OpsUx/BulkRunContext.php:44:        $entraTenantId = $targetScope['entra_tenant_id'] ?? null;
app/Support/OpsUx/BulkRunContext.php:50:            $normalized['entra_tenant_id'] = trim($entraTenantId);
app/Support/OpsUx/BulkRunContext.php:61:        if (! isset($normalized['entra_tenant_id']) && ! isset($normalized['directory_context_id'])) {
app/Support/OpsUx/BulkRunContext.php:62:            throw new InvalidArgumentException('Target scope must include entra_tenant_id or directory_context_id.');
app/Models/OperationRun.php:46:            if ($operationRun->managed_environment_id === null) {
app/Models/OperationRun.php:50:            $tenant = ManagedEnvironment::query()->whereKey((int) $operationRun->managed_environment_id)->first();
app/Models/OperationRun.php:66:        return $this->belongsTo(ManagedEnvironment::class, 'managed_environment_id')->withTrashed();
app/Models/OperationRun.php:332:            ->whereIn('managed_environment_id', $tenantIds)
app/Models/OperationRun.php:340:            ->unique(static fn (self $run): int => (int) $run->managed_environment_id)
app/Models/OperationRun.php:351:            ->where('managed_environment_id', $tenantId)
app/Support/OpsUx/OperationUxPresenter.php:102:            actionUrl: FindingResource::getUrl(
app/Support/OpsUx/OperationUxPresenter.php:648:                Action::make($actionName)
app/Support/OpsUx/OperationUxPresenter.php:650:                    ->url($actionUrl),
app/Filament/Clusters/Inventory/InventoryCluster.php:49:    public static function getUrl(array $parameters = [], bool $isAbsolute = true, ?string $panel = null, ?Model $tenant = null): string
app/Filament/Clusters/Inventory/InventoryCluster.php:54:            return parent::getUrl($parameters, $isAbsolute, $panelId, $tenant);
app/Filament/Clusters/Inventory/InventoryCluster.php:73:        return parent::getUrl($parameters, $isAbsolute, $panelId, null);
app/Filament/Clusters/Inventory/InventoryCluster.php:91:        $filamentTenant = Filament::getTenant();
app/Filament/Pages/Reviews/ReviewRegister.php:92:    protected function getHeaderActions(): array
app/Filament/Pages/Reviews/ReviewRegister.php:95:            Action::make('clear_filters')
app/Filament/Pages/Reviews/ReviewRegister.php:112:            ->persistFiltersInSession()
app/Filament/Pages/Reviews/ReviewRegister.php:141:                SelectFilter::make('managed_environment_id')
app/Filament/Pages/Reviews/ReviewRegister.php:174:                Action::make('export_executive_pack')
app/Filament/Pages/Reviews/ReviewRegister.php:204:                Action::make('clear_filters_empty')
app/Filament/Pages/Reviews/ReviewRegister.php:297:            $this->tableFilters['managed_environment_id']['value'] = (string) $tenant->getKey();
app/Filament/Pages/Reviews/ReviewRegister.php:298:            $this->tableDeferredFilters['managed_environment_id']['value'] = (string) $tenant->getKey();
app/Filament/Pages/Reviews/ReviewRegister.php:307:            || is_string(data_get($this->tableFilters, 'status.value'))
app/Filament/Pages/Reviews/ReviewRegister.php:308:            || is_string(data_get($this->tableFilters, 'completeness_state.value'))
app/Filament/Pages/Reviews/ReviewRegister.php:309:            || is_string(data_get($this->tableFilters, 'published_state.value'))
app/Filament/Pages/Reviews/ReviewRegister.php:310:            || filled(data_get($this->tableFilters, 'review_date.from'))
app/Filament/Pages/Reviews/ReviewRegister.php:311:            || filled(data_get($this->tableFilters, 'review_date.until'));
app/Filament/Pages/Reviews/ReviewRegister.php:321:        $tenantFilter = data_get($this->tableFilters, 'managed_environment_id.value');
app/Filament/Pages/Reviews/ReviewRegister.php:324:            $tenantFilter = data_get(session()->get($this->getTableFiltersSessionKey(), []), 'managed_environment_id.value');
app/Models/Finding.php:102:        return $this->belongsTo(ManagedEnvironment::class, 'managed_environment_id');
app/Models/Finding.php:407:                ->whereColumn('inventory_items.managed_environment_id', 'findings.managed_environment_id')
app/Providers/AppServiceProvider.php:202:            $tenant = $event->getTenant();
app/Providers/AppServiceProvider.php:216:                    'managed_environment_id' => $tenant->getKey(),
app/Support/Artifacts/ArtifactSourceDescriptor.php:37:            tenantId: max(0, (int) ($payload['tenant_id'] ?? $payload['managed_environment_id'] ?? 0)),
app/Support/Artifacts/ArtifactSourceDescriptor.php:38:            managedEnvironmentId: max(0, (int) ($payload['managed_environment_id'] ?? $payload['tenant_id'] ?? 0)),
app/Support/Artifacts/ArtifactSourceDescriptor.php:54:     *     tenant_id: int,
app/Support/Artifacts/ArtifactSourceDescriptor.php:55:     *     managed_environment_id: int,
app/Support/Artifacts/ArtifactSourceDescriptor.php:71:            'tenant_id' => $this->tenantId,
app/Support/Artifacts/ArtifactSourceDescriptor.php:72:            'managed_environment_id' => $this->managedEnvironmentId,
app/Filament/Pages/Reviews/CustomerReviewWorkspace.php:105:        return static::getUrl(panel: 'admin').'?'.http_build_query([
app/Filament/Pages/Reviews/CustomerReviewWorkspace.php:123:    protected function getHeaderActions(): array
app/Filament/Pages/Reviews/CustomerReviewWorkspace.php:130:            $actions[] = Action::make('return_to_governance_inbox')
app/Filament/Pages/Reviews/CustomerReviewWorkspace.php:134:                ->url($governanceContext->backLinkUrl);
app/Filament/Pages/Reviews/CustomerReviewWorkspace.php:137:        $actions[] = Action::make('clear_filters')
app/Filament/Pages/Reviews/CustomerReviewWorkspace.php:155:            ->persistFiltersInSession()
app/Filament/Pages/Reviews/CustomerReviewWorkspace.php:191:                    ->url(fn (ManagedEnvironment $record): ?string => $this->latestReviewUrl($record))
app/Filament/Pages/Reviews/CustomerReviewWorkspace.php:195:                SelectFilter::make('managed_environment_id')
app/Filament/Pages/Reviews/CustomerReviewWorkspace.php:213:                Action::make('clear_filters_empty')
app/Filament/Pages/Reviews/CustomerReviewWorkspace.php:390:        $requestedTenant = request()->query('tenant', request()->query('managed_environment_id'));
app/Filament/Pages/Reviews/CustomerReviewWorkspace.php:401:            $this->tableFilters['managed_environment_id']['value'] = (string) $tenant->getKey();
app/Filament/Pages/Reviews/CustomerReviewWorkspace.php:402:            $this->tableDeferredFilters['managed_environment_id']['value'] = (string) $tenant->getKey();
app/Filament/Pages/Reviews/CustomerReviewWorkspace.php:448:            ->where('managed_environment_id', $tenantFilterId)
app/Filament/Pages/Reviews/CustomerReviewWorkspace.php:463:        $tenantFilter = data_get($this->tableFilters, 'managed_environment_id.value');
app/Filament/Pages/Reviews/CustomerReviewWorkspace.php:466:            $tenantFilter = data_get(session()->get($this->getTableFiltersSessionKey(), []), 'managed_environment_id.value');
app/Filament/Pages/Reviews/CustomerReviewWorkspace.php:494:            $query->where('managed_environment_id', $tenantFilterId);
app/Filament/Pages/Reviews/CustomerReviewWorkspace.php:1372:            ->where('managed_environment_id', (int) $tenant->getKey())
app/Policies/OperationRunPolicy.php:52:        $tenantId = (int) ($run->managed_environment_id ?? 0);
app/Filament/Resources/BackupScheduleResource.php:123:            return (int) $record->managed_environment_id === (int) $tenant->getKey();
app/Filament/Resources/BackupScheduleResource.php:276:        return CreateAction::make()
app/Filament/Resources/BackupScheduleResource.php:289:            ->persistFiltersInSession()
app/Filament/Resources/BackupScheduleResource.php:293:                ? static::getUrl('edit', ['record' => $record])
app/Filament/Resources/BackupScheduleResource.php:435:                        Action::make('runNow')
app/Filament/Resources/BackupScheduleResource.php:495:                                        Action::make('view_run')
app/Filament/Resources/BackupScheduleResource.php:497:                                            ->url(OperationRunLinks::view($operationRun, $tenant)),
app/Filament/Resources/BackupScheduleResource.php:506:                        Action::make('retry')
app/Filament/Resources/BackupScheduleResource.php:566:                                        Action::make('view_run')
app/Filament/Resources/BackupScheduleResource.php:568:                                            ->url(OperationRunLinks::view($operationRun, $tenant)),
app/Filament/Resources/BackupScheduleResource.php:577:                        Action::make('restore')
app/Filament/Resources/BackupScheduleResource.php:619:                        Action::make('archive')
app/Filament/Resources/BackupScheduleResource.php:663:                        Action::make('forceDelete')
app/Filament/Resources/BackupScheduleResource.php:724:                        BulkAction::make('bulk_run_now')
app/Filament/Resources/BackupScheduleResource.php:805:                                        Action::make('view_runs')
app/Filament/Resources/BackupScheduleResource.php:807:                                            ->url(OperationRunLinks::index($tenant)),
app/Filament/Resources/BackupScheduleResource.php:821:                        BulkAction::make('bulk_retry')
app/Filament/Resources/BackupScheduleResource.php:902:                                        Action::make('view_runs')
app/Filament/Resources/BackupScheduleResource.php:904:                                            ->url(OperationRunLinks::index($tenant)),
app/Filament/Resources/BackupScheduleResource.php:967:            'index' => Pages\ListBackupSchedules::route('/'),
app/Filament/Resources/BackupScheduleResource.php:968:            'create' => Pages\CreateBackupSchedule::route('/create'),
app/Filament/Resources/BackupScheduleResource.php:969:            'edit' => Pages\EditBackupSchedule::route('/{record}/edit'),
app/Filament/Resources/BackupScheduleResource.php:1065:        $data['managed_environment_id'] = static::resolveTenantContextForCurrentPanelOrFail()->getKey();
app/Support/Rbac/UiEnforcement.php:563:                $tenantId = $record->getAttribute('managed_environment_id');
app/Support/Rbac/UiEnforcement.php:583:            $tenant = Filament::getTenant();
app/Support/Rbac/UiEnforcement.php:644:     * 3. Fall back to Filament::getTenant()
app/Support/Rbac/UiEnforcement.php:654:        // This avoids relying on Filament::getTenant() for list pages that are not tenant-scoped.
app/Support/Rbac/UiEnforcement.php:691:        return Filament::getTenant();
app/Filament/Pages/InventoryCoverage.php:90:    public static function getUrl(array $parameters = [], bool $isAbsolute = true, ?string $panel = null, ?Model $tenant = null): string
app/Filament/Pages/InventoryCoverage.php:95:            return parent::getUrl($parameters, $isAbsolute, $panelId, $tenant);
app/Filament/Pages/InventoryCoverage.php:114:        return parent::getUrl($parameters, $isAbsolute, $panelId, null);
app/Filament/Pages/InventoryCoverage.php:148:            ->persistFiltersInSession()
app/Filament/Pages/InventoryCoverage.php:301:            ->filters($this->tableFilters())
app/Filament/Pages/InventoryCoverage.php:306:                Action::make('clear_filters')
app/Filament/Pages/InventoryCoverage.php:321:    protected function tableFilters(): array
app/Filament/Pages/InventoryCoverage.php:556:                'inventoryItemsUrl' => InventoryItemResource::getUrl('index', tenant: $tenant),
app/Filament/Pages/InventoryCoverage.php:572:            'inventoryItemsUrl' => InventoryItemResource::getUrl('index', tenant: $tenant),
app/Support/Providers/Capabilities/ProviderCapabilityEvaluator.php:46:        if (! $tenant instanceof ManagedEnvironment && is_numeric($connection->managed_environment_id)) {
app/Support/Providers/Capabilities/ProviderCapabilityEvaluator.php:47:            $tenant = ManagedEnvironment::query()->whereKey((int) $connection->managed_environment_id)->first();
app/Support/Providers/Capabilities/ProviderCapabilityEvaluator.php:418:        if (is_numeric($connection->managed_environment_id) && (int) $connection->managed_environment_id !== (int) $tenant->getKey()) {
app/Support/Providers/Capabilities/ProviderCapabilityEvaluator.php:422:        $connectionTenantId = trim((string) $connection->entra_tenant_id);
app/Support/Providers/Capabilities/ProviderCapabilityEvaluator.php:423:        $tenantDirectoryId = trim((string) $tenant->managed_environment_id);
app/Filament/Resources/BackupSetResource.php:149:        $action = Actions\CreateAction::make()
app/Filament/Resources/BackupSetResource.php:164:            ->persistFiltersInSession()
app/Filament/Resources/BackupSetResource.php:203:            ->recordUrl(fn (BackupSet $record): string => static::getUrl('view', ['record' => $record]))
app/Filament/Resources/BackupSetResource.php:208:                        Actions\Action::make('restore')
app/Filament/Resources/BackupSetResource.php:241:                        Actions\Action::make('archive')
app/Filament/Resources/BackupSetResource.php:273:                        Actions\Action::make('forceDelete')
app/Filament/Resources/BackupSetResource.php:320:                        BulkAction::make('bulk_delete')
app/Filament/Resources/BackupSetResource.php:372:                                        'entra_tenant_id' => (string) ($tenant->managed_environment_id ?? $tenant->external_id),
app/Filament/Resources/BackupSetResource.php:392:                                        Actions\Action::make('view_run')
app/Filament/Resources/BackupSetResource.php:394:                                            ->url(OperationRunLinks::view($opRun, $tenant)),
app/Filament/Resources/BackupSetResource.php:404:                        BulkAction::make('bulk_restore')
app/Filament/Resources/BackupSetResource.php:442:                                        'entra_tenant_id' => (string) ($tenant->managed_environment_id ?? $tenant->external_id),
app/Filament/Resources/BackupSetResource.php:462:                                        Actions\Action::make('view_run')
app/Filament/Resources/BackupSetResource.php:464:                                            ->url(OperationRunLinks::view($opRun, $tenant)),
app/Filament/Resources/BackupSetResource.php:474:                        BulkAction::make('bulk_force_delete')
app/Filament/Resources/BackupSetResource.php:527:                                        'entra_tenant_id' => (string) ($tenant->managed_environment_id ?? $tenant->external_id),
app/Filament/Resources/BackupSetResource.php:547:                                        Actions\Action::make('view_run')
app/Filament/Resources/BackupSetResource.php:549:                                            ->url(OperationRunLinks::view($opRun, $tenant)),
app/Filament/Resources/BackupSetResource.php:589:            'index' => Pages\ListBackupSets::route('/'),
app/Filament/Resources/BackupSetResource.php:590:            'create' => Pages\CreateBackupSet::route('/create'),
app/Filament/Resources/BackupSetResource.php:591:            'view' => Pages\ViewBackupSet::route('/{record}'),
app/Filament/Resources/BackupSetResource.php:636:        return Actions\Action::make('primary_drill_down')
app/Filament/Resources/BackupSetResource.php:638:            ->url(fn (BackupSet $record): ?string => static::primaryRelatedEntry($record)?->targetUrl)
app/Filament/Resources/BackupSetResource.php:849:        $assessment = $resolver->assess((int) $record->managed_environment_id);
app/Support/OpsUx/OpsUxBrowserEvents.php:25:        $tenantId = Filament::getTenant()?->getKey();
app/Support/Ui/GovernanceArtifactTruth/ArtifactTruthPresenter.php:284:            relatedArtifactUrl: BaselineSnapshotResource::getUrl('view', ['record' => $snapshot], panel: 'admin'),
app/Support/Ui/GovernanceArtifactTruth/ArtifactTruthPresenter.php:412:            tenantId: $snapshot->managed_environment_id !== null ? (int) $snapshot->managed_environment_id : null,
app/Support/Ui/GovernanceArtifactTruth/ArtifactTruthPresenter.php:443:                ? $this->panelSafeTenantArtifactUrl(fn (): string => EvidenceSnapshotResource::getUrl('view', ['record' => $snapshot], tenant: $snapshot->tenant))
app/Support/Ui/GovernanceArtifactTruth/ArtifactTruthPresenter.php:607:                fn (): string => EvidenceSnapshotResource::getUrl('view', ['record' => $review->evidenceSnapshot], tenant: $review->tenant)
app/Support/Ui/GovernanceArtifactTruth/ArtifactTruthPresenter.php:615:            tenantId: $review->managed_environment_id !== null ? (int) $review->managed_environment_id : null,
app/Support/Ui/GovernanceArtifactTruth/ArtifactTruthPresenter.php:792:                fn (): string => EvidenceSnapshotResource::getUrl('view', ['record' => $pack->evidenceSnapshot], tenant: $pack->tenant)
app/Support/Ui/GovernanceArtifactTruth/ArtifactTruthPresenter.php:802:            tenantId: $pack->managed_environment_id !== null ? (int) $pack->managed_environment_id : null,
app/Support/Ui/GovernanceArtifactTruth/ArtifactTruthPresenter.php:832:                    fn (): string => ReviewPackResource::getUrl('view', ['record' => $pack], tenant: $pack->tenant)
app/Support/Ui/GovernanceArtifactTruth/ArtifactTruthPresenter.php:885:            ->where('managed_environment_id', (int) $report->managed_environment_id)
app/Support/Ui/GovernanceArtifactTruth/ArtifactTruthPresenter.php:900:            tenantId: (int) $report->managed_environment_id,
app/Support/Ui/GovernanceArtifactTruth/ArtifactTruthPresenter.php:958:            tenantId: $decision->managed_environment_id !== null ? (int) $decision->managed_environment_id : null,
app/Support/Ui/GovernanceArtifactTruth/ArtifactTruthPresenter.php:1048:                    tenantId: $run->managed_environment_id !== null ? (int) $run->managed_environment_id : null,
app/Support/Ui/GovernanceArtifactTruth/ArtifactTruthPresenter.php:1096:            tenantId: $run->managed_environment_id !== null ? (int) $run->managed_environment_id : null,
app/Policies/ReviewPackPolicy.php:49:        if ((int) $reviewPack->managed_environment_id !== (int) $tenant->getKey()) {
app/Policies/ReviewPackPolicy.php:91:        if ((int) $reviewPack->managed_environment_id !== (int) $tenant->getKey()) {
app/Policies/FindingPolicy.php:120:        if ((int) $finding->managed_environment_id !== (int) $tenant->getKey()) {
app/Support/OpsUx/AssignmentJobFingerprint.php:35:            'managed_environment_id' => $tenantId,
app/Filament/Pages/Monitoring/AuditLog.php:75:                'stateKey' => 'managed_environment_id',
app/Filament/Pages/Monitoring/AuditLog.php:99:            'clearsOnTenantSwitch' => ['managed_environment_id', 'action', 'actor_label', 'resource_type'],
app/Filament/Pages/Monitoring/AuditLog.php:179:    protected function getHeaderActions(): array
app/Filament/Pages/Monitoring/AuditLog.php:190:                Action::make('operate_hub_back_to_origin_audit_log')
app/Filament/Pages/Monitoring/AuditLog.php:194:                    ->url($navigationContext->backLinkUrl),
app/Filament/Pages/Monitoring/AuditLog.php:199:            Action::make('support_access_history_filter')
app/Filament/Pages/Monitoring/AuditLog.php:203:                ->url($this->auditLogUrl([
app/Filament/Pages/Monitoring/AuditLog.php:207:            Action::make('export_support_access_history')
app/Filament/Pages/Monitoring/AuditLog.php:221:                Action::make('close_selected_audit_event')
app/Filament/Pages/Monitoring/AuditLog.php:225:                    ->url($this->auditLogUrl(['event' => null])),
app/Filament/Pages/Monitoring/AuditLog.php:227:                    ? Action::make('open_selected_audit_target')
app/Filament/Pages/Monitoring/AuditLog.php:231:                        ->url($selectedAuditLink['url'])
app/Filament/Pages/Monitoring/AuditLog.php:255:            ->persistFiltersInSession()
app/Filament/Pages/Monitoring/AuditLog.php:293:                SelectFilter::make('managed_environment_id')
app/Filament/Pages/Monitoring/AuditLog.php:315:                Action::make('inspect')
app/Filament/Pages/Monitoring/AuditLog.php:319:                    ->url(fn (AuditLogModel $record): string => $this->auditLogUrl(['event' => (int) $record->getKey()])),
app/Filament/Pages/Monitoring/AuditLog.php:326:                Action::make('clear_filters')
app/Filament/Pages/Monitoring/AuditLog.php:400:                $query->whereNull('managed_environment_id');
app/Filament/Pages/Monitoring/AuditLog.php:403:                    $query->orWhereIn('managed_environment_id', $authorizedTenantIds);
app/Filament/Pages/Monitoring/AuditLog.php:475:        return route(
app/Filament/Pages/Monitoring/AuditLog.php:527:            $this->tableFilters ?? [],
app/Filament/Pages/Monitoring/AuditLog.php:555:        $tenantFilter = data_get($filters, 'managed_environment_id.value');
app/Filament/Pages/Monitoring/AuditLog.php:557:        if (is_numeric($tenantFilter) && (int) $record->managed_environment_id !== (int) $tenantFilter) {
app/Filament/Resources/FindingExceptionResource.php:111:            || ((int) $record->managed_environment_id === (int) $tenant->getKey() && (int) $record->workspace_id === (int) $tenant->workspace_id);
app/Filament/Resources/FindingExceptionResource.php:143:            ->where('managed_environment_id', (int) $tenant->getKey())
app/Filament/Resources/FindingExceptionResource.php:274:                targetUrl: FindingResource::getUrl('view', ['record' => $record->finding], tenant: $record->tenant),
app/Filament/Resources/FindingExceptionResource.php:304:            ->persistFiltersInSession()
app/Filament/Resources/FindingExceptionResource.php:307:            ->recordUrl(fn (FindingException $record): string => static::getUrl('view', ['record' => $record]))
app/Filament/Resources/FindingExceptionResource.php:381:                Action::make('renew_exception')
app/Filament/Resources/FindingExceptionResource.php:453:                Action::make('revoke_exception')
app/Filament/Resources/FindingExceptionResource.php:496:                Action::make('open_findings')
app/Filament/Resources/FindingExceptionResource.php:500:                    ->url(fn (): string => FindingResource::getUrl('index')),
app/Filament/Resources/FindingExceptionResource.php:507:            'index' => Pages\ListFindingExceptions::route('/'),
app/Filament/Resources/FindingExceptionResource.php:508:            'view' => Pages\ViewFindingException::route('/{record}'),
app/Filament/Resources/FindingExceptionResource.php:683:        return route('admin.finding-exceptions.open-queue', [
app/Support/OpsUx/ActiveRuns.php:21:            ->where('managed_environment_id', $tenantId)
app/Support/OpsUx/ActiveRuns.php:29:            ->where('managed_environment_id', $tenantId)
app/Support/OpsUx/ActiveRuns.php:121:            ->where('managed_environment_id', $tenantId)
app/Policies/EntraGroupPolicy.php:40:        if ((int) $group->managed_environment_id !== (int) $tenant->getKey()) {
app/Filament/Resources/EntraGroupResource.php:97:            ->persistFiltersInSession()
app/Filament/Resources/EntraGroupResource.php:217:            'index' => Pages\ListEntraGroups::route('/'),
app/Filament/Resources/EntraGroupResource.php:218:            'view' => Pages\ViewEntraGroup::route('/{record}'),
app/Filament/Resources/EntraGroupResource.php:233:        return static::getUrl($page, $parameters, panel: $panelId, tenant: $tenant);
app/Policies/BackupSchedulePolicy.php:40:        return (int) $schedule->managed_environment_id === (int) $tenant->getKey()
app/Policies/BackupSchedulePolicy.php:81:        if (! $tenant instanceof ManagedEnvironment || (int) $schedule->managed_environment_id !== (int) $tenant->getKey()) {
app/Filament/Pages/Monitoring/FindingExceptionsQueue.php:80:                'stateKey' => 'tableFilters',
app/Filament/Pages/Monitoring/FindingExceptionsQueue.php:104:            'clearsOnTenantSwitch' => ['tenant', 'managed_environment_id', 'status', 'current_validity_state'],
app/Filament/Pages/Monitoring/FindingExceptionsQueue.php:204:    protected function getHeaderActions(): array
app/Filament/Pages/Monitoring/FindingExceptionsQueue.php:214:            $actions[] = Action::make('return_to_governance_inbox')
app/Filament/Pages/Monitoring/FindingExceptionsQueue.php:218:                ->url($governanceContext->backLinkUrl);
app/Filament/Pages/Monitoring/FindingExceptionsQueue.php:221:        $actions[] = Action::make('clear_filters')
app/Filament/Pages/Monitoring/FindingExceptionsQueue.php:227:                $this->removeTableFilter('managed_environment_id');
app/Filament/Pages/Monitoring/FindingExceptionsQueue.php:234:        $actions[] = Action::make('view_tenant_register')
app/Filament/Pages/Monitoring/FindingExceptionsQueue.php:239:            ->url(function (): ?string {
app/Filament/Pages/Monitoring/FindingExceptionsQueue.php:246:                return FindingExceptionResource::getUrl('index', tenant: $tenant);
app/Filament/Pages/Monitoring/FindingExceptionsQueue.php:250:            Action::make('clear_selected_exception')
app/Filament/Pages/Monitoring/FindingExceptionsQueue.php:254:                ->url(fn (): string => $this->queueUrl(['exception' => null])),
app/Filament/Pages/Monitoring/FindingExceptionsQueue.php:256:            Action::make('open_selected_exception')
app/Filament/Pages/Monitoring/FindingExceptionsQueue.php:261:                ->url(fn (): ?string => $this->selectedExceptionUrl()),
app/Filament/Pages/Monitoring/FindingExceptionsQueue.php:263:            Action::make('open_selected_finding')
app/Filament/Pages/Monitoring/FindingExceptionsQueue.php:268:                ->url(fn (): ?string => $this->selectedFindingUrl()),
app/Filament/Pages/Monitoring/FindingExceptionsQueue.php:272:            Action::make('approve_selected_exception')
app/Filament/Pages/Monitoring/FindingExceptionsQueue.php:313:            Action::make('reject_selected_exception')
app/Filament/Pages/Monitoring/FindingExceptionsQueue.php:368:            ->persistFiltersInSession()
app/Filament/Pages/Monitoring/FindingExceptionsQueue.php:419:                SelectFilter::make('managed_environment_id')
app/Filament/Pages/Monitoring/FindingExceptionsQueue.php:430:                Action::make('inspect_exception')
app/Filament/Pages/Monitoring/FindingExceptionsQueue.php:434:                    ->url(fn (FindingException $record): string => $this->queueUrl(['exception' => (int) $record->getKey()])),
app/Filament/Pages/Monitoring/FindingExceptionsQueue.php:441:                Action::make('clear_filters')
app/Filament/Pages/Monitoring/FindingExceptionsQueue.php:446:                        $this->removeTableFilter('managed_environment_id');
app/Filament/Pages/Monitoring/FindingExceptionsQueue.php:493:            FindingExceptionResource::getUrl('view', ['record' => $record], tenant: $record->tenant),
app/Filament/Pages/Monitoring/FindingExceptionsQueue.php:507:            FindingResource::getUrl('view', ['record' => $record->finding], tenant: $record->tenant),
app/Filament/Pages/Monitoring/FindingExceptionsQueue.php:567:            ->whereIn('managed_environment_id', $tenantIds === [] ? [-1] : $tenantIds);
app/Filament/Pages/Monitoring/FindingExceptionsQueue.php:595:            $this->tableFilters['managed_environment_id']['value'] = (string) $tenant->getKey();
app/Filament/Pages/Monitoring/FindingExceptionsQueue.php:596:            $this->tableDeferredFilters['managed_environment_id']['value'] = (string) $tenant->getKey();
app/Filament/Pages/Monitoring/FindingExceptionsQueue.php:623:            $this->tableFilters ?? [],
app/Filament/Pages/Monitoring/FindingExceptionsQueue.php:633:            || is_string(data_get($this->tableFilters, 'status.value'))
app/Filament/Pages/Monitoring/FindingExceptionsQueue.php:634:            || is_string(data_get($this->tableFilters, 'current_validity_state.value'));
app/Filament/Pages/Monitoring/FindingExceptionsQueue.php:661:        return static::getUrl(
app/Filament/Pages/Monitoring/FindingExceptionsQueue.php:722:            $this->tableFilters ?? [],
app/Filament/Pages/Monitoring/FindingExceptionsQueue.php:743:        $tenantFilter = data_get($filters, 'managed_environment_id.value');
app/Filament/Pages/Monitoring/FindingExceptionsQueue.php:745:        if (is_numeric($tenantFilter) && (int) $record->managed_environment_id !== (int) $tenantFilter) {
app/Support/GovernanceDecisions/GovernanceDecisionRegisterBuilder.php:65:            ->whereIn('managed_environment_id', $visibleTenantIds)
app/Support/GovernanceDecisions/GovernanceDecisionRegisterBuilder.php:281:                    'url' => EvidenceSnapshotResource::getUrl('view', ['record' => $snapshot], panel: 'admin', tenant: $snapshot->tenant),
app/Support/GovernanceDecisions/GovernanceDecisionRegisterBuilder.php:293:                    'url' => StoredReportResource::getUrl('view', ['record' => $report], panel: 'admin', tenant: $report->tenant),
app/Support/GovernanceDecisions/GovernanceDecisionRegisterBuilder.php:328:            ->where('managed_environment_id', (int) $exception->managed_environment_id)
app/Support/GovernanceDecisions/GovernanceDecisionRegisterBuilder.php:344:            ->where('managed_environment_id', (int) $exception->managed_environment_id)
app/Support/GovernanceDecisions/GovernanceDecisionRegisterBuilder.php:385:            && (int) $run->managed_environment_id === (int) $exception->managed_environment_id;
app/Support/GovernanceDecisions/GovernanceDecisionRegisterBuilder.php:396:        return FindingExceptionResource::getUrl('view', ['record' => $exception], panel: 'admin', tenant: $tenant);
app/Filament/Resources/AlertDeliveryResource.php:105:        return Action::make('view_alert_rules')
app/Filament/Resources/AlertDeliveryResource.php:110:            ->url(AlertRuleResource::getUrl(panel: 'admin'));
app/Filament/Resources/AlertDeliveryResource.php:137:                    $q->whereNull('managed_environment_id')
app/Filament/Resources/AlertDeliveryResource.php:149:                                qualifiedEnvironmentColumn: 'alert_deliveries.managed_environment_id',
app/Filament/Resources/AlertDeliveryResource.php:231:            ->persistFiltersInSession()
app/Filament/Resources/AlertDeliveryResource.php:235:                ? static::getUrl('view', ['record' => $record])
app/Filament/Resources/AlertDeliveryResource.php:270:                SelectFilter::make('managed_environment_id')
app/Filament/Resources/AlertDeliveryResource.php:327:            'index' => Pages\ListAlertDeliveries::route('/'),
app/Filament/Resources/AlertDeliveryResource.php:328:            'view' => Pages\ViewAlertDelivery::route('/{record}'),
app/Policies/FindingExceptionPolicy.php:103:        if ((int) $exception->managed_environment_id !== (int) $tenant->getKey()) {
app/Policies/FindingExceptionPolicy.php:123:            $tenantId = app(WorkspaceContext::class)->lastTenantId(request());
app/Support/Operations/QueuedExecutionContext.php:14:     * @param  array{workspace_id:int,managed_environment_id:int|null,provider_connection_id:int|null}  $targetScope
app/Filament/Pages/Monitoring/Operations.php:52:                'stateKey' => 'managed_environment_id',
app/Filament/Pages/Monitoring/Operations.php:62:                'stateKey' => 'tenant_scope',
app/Filament/Pages/Monitoring/Operations.php:92:                'stateKey' => 'tableFilters',
app/Filament/Pages/Monitoring/Operations.php:106:            'clearsOnTenantSwitch' => ['managed_environment_id', 'type', 'initiator_name'],
app/Filament/Pages/Monitoring/Operations.php:117:        'shareableStateKeys' => ['managed_environment_id', 'tenant_scope', 'problemClass', 'activeTab'],
app/Filament/Pages/Monitoring/Operations.php:234:    protected function getHeaderActions(): array
app/Filament/Pages/Monitoring/Operations.php:240:            Action::make('operate_hub_scope_operations')
app/Filament/Pages/Monitoring/Operations.php:249:            $actions[] = Action::make('operate_hub_back_to_origin_operations')
app/Filament/Pages/Monitoring/Operations.php:253:                ->url($navigationContext->backLinkUrl);
app/Filament/Pages/Monitoring/Operations.php:255:            $actions[] = Action::make('operate_hub_back_to_tenant_operations')
app/Filament/Pages/Monitoring/Operations.php:259:                ->url(ManagedEnvironmentLinks::viewUrl($activeTenant));
app/Filament/Pages/Monitoring/Operations.php:263:            $actions[] = Action::make('operate_hub_show_all_tenants')
app/Filament/Pages/Monitoring/Operations.php:271:                    $this->removeTableFilter('managed_environment_id');
app/Filament/Pages/Monitoring/Operations.php:370:                                $query->whereNull('managed_environment_id');
app/Filament/Pages/Monitoring/Operations.php:373:                                    $query->orWhereIn('managed_environment_id', $allowedTenantIds);
app/Filament/Pages/Monitoring/Operations.php:380:                        fn (Builder $query): Builder => $query->where('managed_environment_id', $tenantFilter),
app/Filament/Pages/Monitoring/Operations.php:464:                        $query->whereNull('managed_environment_id');
app/Filament/Pages/Monitoring/Operations.php:467:                            $query->orWhereIn('managed_environment_id', $allowedTenantIds);
app/Filament/Pages/Monitoring/Operations.php:474:                fn (Builder $query): Builder => $query->where('managed_environment_id', $tenantFilter),
app/Filament/Pages/Monitoring/Operations.php:481:            $requestedTenantId = $this->normalizeEntitledTenantFilter(request()->query('managed_environment_id'));
app/Filament/Pages/Monitoring/Operations.php:485:                $this->tableFilters['managed_environment_id']['value'] = $tenantId;
app/Filament/Pages/Monitoring/Operations.php:486:                $this->tableDeferredFilters['managed_environment_id']['value'] = $tenantId;
app/Filament/Pages/Monitoring/Operations.php:507:        return request()->query('tenant_scope') === 'all';
app/Filament/Pages/Monitoring/Operations.php:516:                'tenant_scope' => $this->shouldForceWorkspaceWideTenantScope() ? 'all' : null,
app/Filament/Pages/Monitoring/Operations.php:517:                'managed_environment_id' => $this->shouldForceWorkspaceWideTenantScope() ? null : $this->currentTenantFilterId(),
app/Filament/Pages/Monitoring/Operations.php:524:        return route(
app/Filament/Pages/Monitoring/Operations.php:534:            $this->tableFilters ?? [],
app/Policies/ProviderConnectionPolicy.php:79:        if ((int) $connection->managed_environment_id !== (int) $tenant->getKey()) {
app/Policies/ProviderConnectionPolicy.php:133:        if ((int) $connection->managed_environment_id !== (int) $tenant->getKey()) {
app/Policies/ProviderConnectionPolicy.php:166:        if ((int) $connection->managed_environment_id !== (int) $tenant->getKey()) {
app/Policies/ProviderConnectionPolicy.php:214:            $filamentTenant = Filament::getTenant();
app/Policies/ProviderConnectionPolicy.php:240:        $tenantExternalId = request()->query('managed_environment_id');
app/Policies/ProviderConnectionPolicy.php:243:            $lastTenantId = app(WorkspaceContext::class)->lastTenantId(request());
app/Policies/ProviderConnectionPolicy.php:245:            if (is_int($lastTenantId)) {
app/Policies/ProviderConnectionPolicy.php:247:                    ->whereKey($lastTenantId)
app/Policies/ProviderConnectionPolicy.php:252:            $filamentTenant = Filament::getTenant();
app/Policies/ProviderConnectionPolicy.php:273:        if (is_int($connection->managed_environment_id) || is_numeric($connection->managed_environment_id)) {
app/Policies/ProviderConnectionPolicy.php:274:            return ManagedEnvironment::query()->whereKey((int) $connection->managed_environment_id)->first();
app/Policies/EvidenceSnapshotPolicy.php:38:        if ((int) $snapshot->managed_environment_id !== (int) $tenant->getKey()) {
app/Policies/EvidenceSnapshotPolicy.php:66:        if ((int) $snapshot->managed_environment_id !== (int) $tenant->getKey()) {
app/Filament/Pages/Monitoring/Alerts.php:95:    protected function getHeaderActions(): array
app/Filament/Pages/Monitoring/Alerts.php:106:                Action::make('operate_hub_back_to_origin_alerts')
app/Filament/Pages/Monitoring/Alerts.php:110:                    ->url($navigationContext->backLinkUrl),
app/Filament/Pages/Monitoring/EvidenceOverview.php:49:                'stateKey' => 'managed_environment_id',
app/Filament/Pages/Monitoring/EvidenceOverview.php:69:                'stateKey' => 'tableFilters',
app/Filament/Pages/Monitoring/EvidenceOverview.php:93:            'clearsOnTenantSwitch' => ['managed_environment_id'],
app/Filament/Pages/Monitoring/EvidenceOverview.php:104:        'shareableStateKeys' => ['managed_environment_id', 'search'],
app/Filament/Pages/Monitoring/EvidenceOverview.php:154:        $this->rows = $this->rowsForState($this->tableFilters ?? [], $this->tableSearch)->values()->all();
app/Filament/Pages/Monitoring/EvidenceOverview.php:165:            ->persistFiltersInSession()
app/Filament/Pages/Monitoring/EvidenceOverview.php:184:                SelectFilter::make('managed_environment_id')
app/Filament/Pages/Monitoring/EvidenceOverview.php:217:                Action::make('clear_filters')
app/Filament/Pages/Monitoring/EvidenceOverview.php:229:    protected function getHeaderActions(): array
app/Filament/Pages/Monitoring/EvidenceOverview.php:232:            Action::make('clear_filters')
app/Filament/Pages/Monitoring/EvidenceOverview.php:242:        $this->tableFilters = [
app/Filament/Pages/Monitoring/EvidenceOverview.php:243:            'managed_environment_id' => ['value' => null],
app/Filament/Pages/Monitoring/EvidenceOverview.php:245:        $this->tableDeferredFilters = $this->tableFilters;
app/Filament/Pages/Monitoring/EvidenceOverview.php:247:        $this->rows = $this->rowsForState($this->tableFilters, $this->tableSearch)->values()->all();
app/Filament/Pages/Monitoring/EvidenceOverview.php:249:        session()->put($this->getTableFiltersSessionKey(), $this->tableFilters);
app/Filament/Pages/Monitoring/EvidenceOverview.php:330:        $tenantFilter = $this->normalizeTenantFilter($filters['managed_environment_id']['value'] ?? data_get($this->tableFilters, 'managed_environment_id.value'));
app/Filament/Pages/Monitoring/EvidenceOverview.php:334:            $rows = $rows->where('managed_environment_id', $tenantFilter);
app/Filament/Pages/Monitoring/EvidenceOverview.php:389:            $query->whereIn('managed_environment_id', $tenantIds);
app/Filament/Pages/Monitoring/EvidenceOverview.php:392:        return $this->cachedSnapshots = $query->get()->unique('managed_environment_id')->values();
app/Filament/Pages/Monitoring/EvidenceOverview.php:403:            ->whereIn('managed_environment_id', $snapshots->pluck('managed_environment_id')->map(static fn (mixed $tenantId): int => (int) $tenantId)->all())
app/Filament/Pages/Monitoring/EvidenceOverview.php:409:            ->pluck('managed_environment_id')
app/Filament/Pages/Monitoring/EvidenceOverview.php:422:        $tenantId = (int) $snapshot->managed_environment_id;
app/Filament/Pages/Monitoring/EvidenceOverview.php:430:            'managed_environment_id' => $tenantId,
app/Filament/Pages/Monitoring/EvidenceOverview.php:445:                ? EvidenceSnapshotResource::getUrl('view', ['record' => $snapshot], tenant: $snapshot->tenant)
app/Filament/Pages/Monitoring/EvidenceOverview.php:497:        if (! array_key_exists('managed_environment_id', $query)) {
app/Filament/Pages/Monitoring/EvidenceOverview.php:501:        $tenantFilter = $this->normalizeTenantFilter(request()->query('managed_environment_id'));
app/Filament/Pages/Monitoring/EvidenceOverview.php:507:        $this->tableFilters = [
app/Filament/Pages/Monitoring/EvidenceOverview.php:508:            'managed_environment_id' => ['value' => (string) $tenantFilter],
app/Filament/Pages/Monitoring/EvidenceOverview.php:510:        $this->tableDeferredFilters = $this->tableFilters;
app/Filament/Pages/Monitoring/EvidenceOverview.php:531:        return filled(data_get($this->tableFilters, 'managed_environment_id.value'))
app/Filament/Pages/Monitoring/EvidenceOverview.php:537:        return route(
app/Filament/Resources/PolicyVersionResource.php:279:        $bulkPruneVersions = BulkAction::make('bulk_prune_versions')
app/Filament/Resources/PolicyVersionResource.php:345:                        'entra_tenant_id' => (string) ($tenant->managed_environment_id ?? $tenant->external_id),
app/Filament/Resources/PolicyVersionResource.php:367:                        Actions\Action::make('view_run')
app/Filament/Resources/PolicyVersionResource.php:369:                            ->url(OperationRunLinks::view($opRun, $tenant)),
app/Filament/Resources/PolicyVersionResource.php:380:        $bulkRestoreVersions = BulkAction::make('bulk_restore_versions')
app/Filament/Resources/PolicyVersionResource.php:422:                        'entra_tenant_id' => (string) ($tenant->managed_environment_id ?? $tenant->external_id),
app/Filament/Resources/PolicyVersionResource.php:442:                        Actions\Action::make('view_run')
app/Filament/Resources/PolicyVersionResource.php:444:                            ->url(OperationRunLinks::view($opRun, $tenant)),
app/Filament/Resources/PolicyVersionResource.php:455:        $bulkForceDeleteVersions = BulkAction::make('bulk_force_delete_versions')
app/Filament/Resources/PolicyVersionResource.php:506:                        'entra_tenant_id' => (string) ($tenant->managed_environment_id ?? $tenant->external_id),
app/Filament/Resources/PolicyVersionResource.php:526:                        Actions\Action::make('view_run')
app/Filament/Resources/PolicyVersionResource.php:528:                            ->url(OperationRunLinks::view($opRun, $tenant)),
app/Filament/Resources/PolicyVersionResource.php:542:            ->persistFiltersInSession()
app/Filament/Resources/PolicyVersionResource.php:593:                ? static::getUrl('view', ['record' => $record])
app/Filament/Resources/PolicyVersionResource.php:599:                        $action = Actions\Action::make('restore_via_wizard')
app/Filament/Resources/PolicyVersionResource.php:694:                                if (! $tenant || $record->managed_environment_id !== $tenant->id) {
app/Filament/Resources/PolicyVersionResource.php:715:                                    'managed_environment_id' => $tenant->id,
app/Filament/Resources/PolicyVersionResource.php:773:                                    'managed_environment_id' => $tenant->id,
app/Filament/Resources/PolicyVersionResource.php:786:                                return redirect()->to(RestoreRunResource::getUrl('create', [
app/Filament/Resources/PolicyVersionResource.php:796:                        $action = Actions\Action::make('archive')
app/Filament/Resources/PolicyVersionResource.php:838:                        $action = Actions\Action::make('forceDelete')
app/Filament/Resources/PolicyVersionResource.php:881:                        $action = Actions\Action::make('restore')
app/Filament/Resources/PolicyVersionResource.php:938:                Actions\Action::make('open_backup_sets')
app/Filament/Resources/PolicyVersionResource.php:940:                    ->url(fn (): string => BackupSetResource::getUrl('index', tenant: static::resolveTenantContextForCurrentPanel()))
app/Filament/Resources/PolicyVersionResource.php:1024:        return Actions\Action::make('primary_drill_down')
app/Filament/Resources/PolicyVersionResource.php:1026:            ->url(fn (PolicyVersion $record): ?string => static::primaryRelatedEntry($record)?->targetUrl)
app/Filament/Resources/PolicyVersionResource.php:1057:            'index' => Pages\ListPolicyVersions::route('/'),
app/Filament/Resources/PolicyVersionResource.php:1058:            'view' => Pages\ViewPolicyVersion::route('/{record}'),
app/Support/References/Resolvers/BaselineSnapshotReferenceResolver.php:63:                url: BaselineSnapshotResource::getUrl('view', ['record' => $snapshot], panel: 'admin'),
app/Support/Tenants/TenantPageCategory.php:15:    case TenantScopedEvidence = 'tenant_scoped_evidence';
app/Filament/Pages/CrossEnvironmentComparePage.php:49:    private const string SOURCE_ENVIRONMENT_QUERY_KEY = 'source_environment_id';
app/Filament/Pages/CrossEnvironmentComparePage.php:51:    private const string TARGET_ENVIRONMENT_QUERY_KEY = 'target_environment_id';
app/Filament/Pages/CrossEnvironmentComparePage.php:165:    protected function getHeaderActions(): array
app/Filament/Pages/CrossEnvironmentComparePage.php:172:            $actions[] = Action::make('return_to_origin')
app/Filament/Pages/CrossEnvironmentComparePage.php:176:                ->url($navigationContext->backLinkUrl);
app/Filament/Pages/CrossEnvironmentComparePage.php:182:            $actions[] = Action::make('open_source_environment')
app/Filament/Pages/CrossEnvironmentComparePage.php:186:                ->url(ManagedEnvironmentLinks::viewUrl($sourceEnvironment));
app/Filament/Pages/CrossEnvironmentComparePage.php:192:            $actions[] = Action::make('open_target_environment')
app/Filament/Pages/CrossEnvironmentComparePage.php:196:                ->url(ManagedEnvironmentLinks::viewUrl($targetEnvironment));
app/Filament/Pages/CrossEnvironmentComparePage.php:199:        $preflightAction = Action::make('generatePromotionPreflight')
app/Filament/Pages/CrossEnvironmentComparePage.php:236:        $actions[] = Action::make('executePromotion')
app/Filament/Pages/CrossEnvironmentComparePage.php:378:        return static::getUrl($this->routeParameters([
app/Filament/Pages/CrossEnvironmentComparePage.php:387:        return static::getUrl($this->routeParameters(), panel: 'admin');
app/Filament/Pages/CrossEnvironmentComparePage.php:409:        return static::getUrl($parameters, panel: 'admin');
app/Filament/Pages/CrossEnvironmentComparePage.php:681:            ->whereIn('managed_environment_id', $environmentIds)
app/Support/References/Resolvers/EntraRoleDefinitionReferenceResolver.php:34:            ->where('managed_environment_id', $tenantId)
app/Filament/Resources/ManagedEnvironmentResource.php:201:            Actions\Action::make('admin_consent')
app/Filament/Resources/ManagedEnvironmentResource.php:204:                ->url(fn (ManagedEnvironment $record): string => static::adminConsentUrl($record) ?? '#')
app/Filament/Resources/ManagedEnvironmentResource.php:217:        return Actions\Action::make('open_in_entra')
app/Filament/Resources/ManagedEnvironmentResource.php:220:            ->url(fn (ManagedEnvironment $record): string => static::entraUrl($record) ?? '#')
app/Filament/Resources/ManagedEnvironmentResource.php:228:            Actions\Action::make('memberships')
app/Filament/Resources/ManagedEnvironmentResource.php:231:                ->url(fn (ManagedEnvironment $record): string => ManagedEnvironmentLinks::accessScopesUrl($record)),
app/Filament/Resources/ManagedEnvironmentResource.php:242:            Actions\Action::make('syncTenant')
app/Filament/Resources/ManagedEnvironmentResource.php:260:            Actions\Action::make('verify')
app/Filament/Resources/ManagedEnvironmentResource.php:291:        return Actions\Action::make('markReviewed')
app/Filament/Resources/ManagedEnvironmentResource.php:323:        return Actions\Action::make('markFollowUpNeeded')
app/Filament/Resources/ManagedEnvironmentResource.php:356:            Actions\Action::make('restore')
app/Filament/Resources/ManagedEnvironmentResource.php:382:            Actions\Action::make('archive')
app/Filament/Resources/ManagedEnvironmentResource.php:415:            Actions\Action::make('remove_from_workspace')
app/Filament/Resources/ManagedEnvironmentResource.php:468:            Actions\Action::make('restore_to_workspace')
app/Filament/Resources/ManagedEnvironmentResource.php:592:                    Actions\Action::make('view_run')
app/Filament/Resources/ManagedEnvironmentResource.php:594:                        ->url(OperationRunLinks::view($opRun, $record)),
app/Filament/Resources/ManagedEnvironmentResource.php:611:            context: ['metadata' => ['managed_environment_id' => $record->managed_environment_id]],
app/Filament/Resources/ManagedEnvironmentResource.php:617:                Actions\Action::make('view_run')
app/Filament/Resources/ManagedEnvironmentResource.php:619:                    ->url(OperationRunLinks::view($opRun, $record)),
app/Filament/Resources/ManagedEnvironmentResource.php:731:                Forms\Components\TextInput::make('managed_environment_id')
app/Filament/Resources/ManagedEnvironmentResource.php:792:            ->persistFiltersInSession()
app/Filament/Resources/ManagedEnvironmentResource.php:795:            ->recordUrl(fn (ManagedEnvironment $record): string => static::getUrl('view', ['record' => $record]))
app/Filament/Resources/ManagedEnvironmentResource.php:837:                Tables\Columns\TextColumn::make('managed_environment_id')
app/Filament/Resources/ManagedEnvironmentResource.php:942:                Actions\Action::make('related_onboarding')
app/Filament/Resources/ManagedEnvironmentResource.php:945:                    ->url(fn (ManagedEnvironment $record): string => static::relatedOnboardingDraftUrl($record) ?? route('admin.onboarding'))
app/Filament/Resources/ManagedEnvironmentResource.php:947:                    Actions\Action::make('openTenant')
app/Filament/Resources/ManagedEnvironmentResource.php:951:                        ->url(function (?ManagedEnvironment $record = null, mixed $livewire = null): string {
app/Filament/Resources/ManagedEnvironmentResource.php:973:                    Actions\Action::make('related_onboarding_overflow')
app/Filament/Resources/ManagedEnvironmentResource.php:976:                        ->url(fn (ManagedEnvironment $record): string => static::relatedOnboardingDraftUrl($record) ?? route('admin.onboarding'))
app/Filament/Resources/ManagedEnvironmentResource.php:979:                    Actions\Action::make('compareEnvironments')
app/Filament/Resources/ManagedEnvironmentResource.php:983:                        ->url(function (ManagedEnvironment $record, mixed $livewire): string {
app/Filament/Resources/ManagedEnvironmentResource.php:1001:                        Actions\Action::make('edit')
app/Filament/Resources/ManagedEnvironmentResource.php:1005:                            ->url(fn (ManagedEnvironment $record) => static::getUrl('edit', ['record' => $record]))
app/Filament/Resources/ManagedEnvironmentResource.php:1013:                    Actions\Action::make('markReviewed')
app/Filament/Resources/ManagedEnvironmentResource.php:1045:                    Actions\Action::make('markFollowUpNeeded')
app/Filament/Resources/ManagedEnvironmentResource.php:1081:                        Actions\Action::make('forceDelete')
app/Filament/Resources/ManagedEnvironmentResource.php:1122:                                    context: ['metadata' => ['managed_environment_id' => $tenant->managed_environment_id]]
app/Filament/Resources/ManagedEnvironmentResource.php:1145:                    Actions\BulkAction::make('compareSelected')
app/Filament/Resources/ManagedEnvironmentResource.php:1173:                    Actions\BulkAction::make('syncSelected')
app/Filament/Resources/ManagedEnvironmentResource.php:1263:                                    'entra_tenant_id' => (string) ($tenantContext->managed_environment_id ?? $tenantContext->external_id),
app/Filament/Resources/ManagedEnvironmentResource.php:1283:                                    Actions\Action::make('view_run')
app/Filament/Resources/ManagedEnvironmentResource.php:1285:                                        ->url(OperationRunLinks::view($opRun, $tenantContext)),
app/Filament/Resources/ManagedEnvironmentResource.php:1401:                backLinkUrl: static::getUrl(panel: 'admin', parameters: $normalizedState),
app/Filament/Resources/ManagedEnvironmentResource.php:1859:            tenantIds: $snapshot['tenant_ids'],
app/Filament/Resources/ManagedEnvironmentResource.php:2340:     *     tenant_ids: list<int>,
app/Filament/Resources/ManagedEnvironmentResource.php:2365:     *     tenant_ids: list<int>,
app/Filament/Resources/ManagedEnvironmentResource.php:2379:                'tenant_ids' => [],
app/Filament/Resources/ManagedEnvironmentResource.php:2406:            'tenant_ids' => $tenantIds,
app/Filament/Resources/ManagedEnvironmentResource.php:2478:                        Infolists\Components\TextEntry::make('managed_environment_id')->label('ManagedEnvironment ID')->copyable(),
app/Filament/Resources/ManagedEnvironmentResource.php:2756:        return route('admin.onboarding.draft', ['onboardingDraft' => (int) $draft->getKey()]);
app/Filament/Resources/ManagedEnvironmentResource.php:2772:                targetUrl: static::getUrl('edit', ['record' => $tenant]),
app/Filament/Resources/ManagedEnvironmentResource.php:2856:                targetUrl: static::getUrl('view', ['record' => $tenant]),
app/Filament/Resources/ManagedEnvironmentResource.php:3047:            context: ['metadata' => ['managed_environment_id' => $record->managed_environment_id, 'reason' => $reason]]
app/Filament/Resources/ManagedEnvironmentResource.php:3094:            context: ['metadata' => ['managed_environment_id' => $record->managed_environment_id]]
app/Filament/Resources/ManagedEnvironmentResource.php:3122:            'index' => Pages\ListManagedEnvironments::route('/'),
app/Filament/Resources/ManagedEnvironmentResource.php:3123:            'view' => Pages\ViewManagedEnvironment::route('/{record}'),
app/Filament/Resources/ManagedEnvironmentResource.php:3124:            'edit' => Pages\EditManagedEnvironment::route('/{record}/edit'),
app/Filament/Resources/ManagedEnvironmentResource.php:3125:            'memberships' => Pages\ManageEnvironmentAccessScopes::route('/{record}/memberships'),
app/Filament/Resources/ManagedEnvironmentResource.php:3139:    public static function getUrl(?string $name = null, array $parameters = [], bool $isAbsolute = true, ?string $panel = null, ?Model $tenant = null, bool $shouldGuessMissingParameters = false): string
app/Filament/Resources/ManagedEnvironmentResource.php:3204:        return Actions\Action::make('setup_rbac')
app/Filament/Resources/ManagedEnvironmentResource.php:3321:                            Actions\Action::make('open_rbac_login')
app/Filament/Resources/ManagedEnvironmentResource.php:3323:                                ->url(route('admin.rbac.start', [
app/Filament/Resources/ManagedEnvironmentResource.php:3392:            ->where('managed_environment_id', (int) $tenant->getKey())
app/Filament/Resources/ManagedEnvironmentResource.php:3429:            ->where('managed_environment_id', (int) $tenant->getKey())
app/Filament/Resources/ManagedEnvironmentResource.php:3438:                ->where('managed_environment_id', (int) $tenant->getKey())
app/Filament/Resources/ManagedEnvironmentResource.php:3489:            ->where('managed_environment_id', (int) $tenant->getKey())
app/Filament/Resources/ManagedEnvironmentResource.php:3618:            ->where('managed_environment_id', $tenant->getKey())
app/Filament/Resources/ManagedEnvironmentResource.php:3636:            ->where('managed_environment_id', $tenant->getKey())
app/Filament/Resources/ManagedEnvironmentResource.php:3652:            ->where('managed_environment_id', $tenant->getKey())
app/Filament/Resources/ManagedEnvironmentResource.php:3728:            ->where('managed_environment_id', $tenant->getKey())
app/Filament/Resources/ManagedEnvironmentResource.php:3752:        return Actions\Action::make('sync_role_definitions')
app/Support/Operations/QueuedExecutionLegitimacyDecision.php:11:     * @param  array{workspace_id:int,managed_environment_id:int|null,provider_connection_id:int|null}  $targetScope
app/Support/Operations/QueuedExecutionLegitimacyDecision.php:12:     * @param  array{workspace_scope:string,tenant_scope:string,capability:string,tenant_operability:string,execution_prerequisites:string}  $checks
app/Support/Operations/QueuedExecutionLegitimacyDecision.php:29:     * @param  array{workspace_scope:string,tenant_scope:string,capability:string,tenant_operability:string,execution_prerequisites:string}  $checks
app/Support/Operations/QueuedExecutionLegitimacyDecision.php:46:     * @param  array{workspace_scope:string,tenant_scope:string,capability:string,tenant_operability:string,execution_prerequisites:string}  $checks
app/Support/Operations/QueuedExecutionLegitimacyDecision.php:72:     * @return array{workspace_scope:string,tenant_scope:string,capability:string,tenant_operability:string,execution_prerequisites:string}
app/Support/Operations/QueuedExecutionLegitimacyDecision.php:78:            'tenant_scope' => 'not_applicable',
app/Filament/Resources/AlertDeliveryResource/Pages/ListAlertDeliveries.php:25:    protected function getHeaderActions(): array
app/Filament/Resources/AlertDeliveryResource/Pages/ListAlertDeliveries.php:36:                Action::make('operate_hub_back_to_origin_alert_deliveries')
app/Filament/Resources/AlertDeliveryResource/Pages/ListAlertDeliveries.php:40:                    ->url($navigationContext->backLinkUrl),
app/Support/References/Resolvers/BackupSetReferenceResolver.php:44:            ->where('managed_environment_id', $tenantId)
app/Support/References/Resolvers/BackupSetReferenceResolver.php:61:                url: BackupSetResource::getUrl('view', ['record' => $backupSet], tenant: $backupSet->tenant),
app/Filament/Resources/BaselineProfileResource.php:430:            ->recordUrl(fn (BaselineProfile $record): string => static::getUrl('view', ['record' => $record]))
app/Filament/Resources/BaselineProfileResource.php:504:                    Action::make('edit')
app/Filament/Resources/BaselineProfileResource.php:506:                        ->url(fn (BaselineProfile $record): string => static::getUrl('edit', ['record' => $record]))
app/Filament/Resources/BaselineProfileResource.php:516:                Action::make('create')
app/Filament/Resources/BaselineProfileResource.php:518:                    ->url(fn (): string => static::getUrl('create'))
app/Filament/Resources/BaselineProfileResource.php:534:            'index' => Pages\ListBaselineProfiles::route('/'),
app/Filament/Resources/BaselineProfileResource.php:535:            'create' => Pages\CreateBaselineProfile::route('/create'),
app/Filament/Resources/BaselineProfileResource.php:536:            'view' => Pages\ViewBaselineProfile::route('/{record}'),
app/Filament/Resources/BaselineProfileResource.php:537:            'compare-matrix' => BaselineCompareMatrix::route('/{record}/compare-matrix'),
app/Filament/Resources/BaselineProfileResource.php:538:            'edit' => Pages\EditBaselineProfile::route('/{record}/edit'),
app/Filament/Resources/BaselineProfileResource.php:544:        return static::getUrl('compare-matrix', ['record' => $profile], panel: 'admin');
app/Filament/Resources/BaselineProfileResource.php:720:        $action = Action::make('archive')
app/Filament/Resources/BaselineProfileResource.php:973:            ->pluck('managed_environment_id')
app/Filament/Resources/EvidenceSnapshotResource/Pages/ListEvidenceSnapshots.php:19:    protected function getHeaderActions(): array
app/Filament/Resources/EvidenceSnapshotResource/Pages/ListEvidenceSnapshots.php:23:                Actions\Action::make('create_snapshot')
app/Filament/Resources/BaselineSnapshotResource/Pages/ListBaselineSnapshots.php:39:    protected function getHeaderActions(): array
app/Filament/Pages/Governance/DecisionRegister.php:169:        return static::getUrl(
app/Filament/Pages/Governance/DecisionRegister.php:172:                'managed_environment_id' => is_string($resolvedTenant) && $resolvedTenant !== '' ? $resolvedTenant : null,
app/Filament/Pages/Governance/DecisionRegister.php:277:            ->persistFiltersInSession()
app/Filament/Pages/Governance/DecisionRegister.php:317:                    ->url(fn (FindingException $record): ?string => $this->proofUrl($record))
app/Filament/Pages/Governance/DecisionRegister.php:322:                    ->url(fn (FindingException $record): ?string => $this->operationRunUrl($record))
app/Filament/Pages/Governance/DecisionRegister.php:354:            Action::make('empty_state_scope_action')
app/Filament/Pages/Governance/DecisionRegister.php:356:                ->url($url),
app/Filament/Pages/Governance/DecisionRegister.php:372:            ->whereIn('managed_environment_id', $tenantIds)
app/Filament/Pages/Governance/DecisionRegister.php:483:        $requestedTenant = request()->query('managed_environment_id', request()->query('tenant'));
app/Filament/Pages/Governance/DecisionRegister.php:517:        $requestedTenant = request()->query('managed_environment_id', request()->query('tenant'));
app/Filament/Pages/Governance/DecisionRegister.php:701:            FindingExceptionResource::getUrl('view', ['record' => $record], tenant: $tenant),
app/Filament/Pages/Governance/DecisionRegister.php:741:        $queryString = http_build_query($query);
app/Filament/Pages/Governance/DecisionRegister.php:743:        if ($queryString === '') {
app/Filament/Pages/Governance/DecisionRegister.php:749:        return $url.$separator.$queryString;
app/Support/References/Resolvers/AssignmentTargetReferenceResolver.php:62:                tenantId: is_numeric($context['managed_environment_id'] ?? null) ? (int) $context['managed_environment_id'] : null,
app/Filament/Resources/EvidenceSnapshotResource/Pages/ViewEvidenceSnapshot.php:40:    protected function getHeaderActions(): array
app/Filament/Resources/EvidenceSnapshotResource/Pages/ViewEvidenceSnapshot.php:51:                Actions\Action::make('refresh_evidence')
app/Filament/Resources/EvidenceSnapshotResource/Pages/ViewEvidenceSnapshot.php:73:                Actions\Action::make('expire_snapshot')
app/Filament/Resources/OperationRunResource.php:137:            ->persistFiltersInSession()
app/Filament/Resources/OperationRunResource.php:178:                Tables\Filters\SelectFilter::make('managed_environment_id')
app/Filament/Resources/OperationRunResource.php:523:                    $factory->keyFact('ManagedEnvironment scope', $record->managed_environment_id),
app/Filament/Resources/OperationRunResource.php:1275:            ->where('managed_environment_id', (int) ($record->managed_environment_id ?? 0))
app/Filament/Resources/OperationRunResource.php:1621:                ? RestoreRunResource::getUrl('view', ['record' => $restoreRun], tenant: $tenant)
app/Filament/Resources/OperationRunResource.php:1676:        $entraTenantId = $targetScope['entra_tenant_id'] ?? null;
app/Filament/Resources/PolicyResource/Pages/ViewPolicy.php:42:            Action::make('capture_snapshot')
app/Filament/Resources/PolicyResource/Pages/ViewPolicy.php:100:                            'entra_tenant_id' => (string) ($tenant->managed_environment_id ?? $tenant->external_id),
app/Filament/Resources/PolicyResource/Pages/ViewPolicy.php:129:                                \Filament\Actions\Action::make('view_run')
app/Filament/Resources/PolicyResource/Pages/ViewPolicy.php:131:                                    ->url(OperationRunLinks::view($opRun, $tenant)),
app/Filament/Resources/PolicyResource/Pages/ViewPolicy.php:162:                            \Filament\Actions\Action::make('view_run')
app/Filament/Resources/PolicyResource/Pages/ViewPolicy.php:164:                                ->url(OperationRunLinks::view($opRun, $tenant)),
app/Support/References/Resolvers/BaselineProfileReferenceResolver.php:60:                url: BaselineProfileResource::getUrl('view', ['record' => $profile], panel: 'admin'),
app/Filament/Resources/BaselineSnapshotResource/Pages/ViewBaselineSnapshot.php:87:    protected function getHeaderActions(): array
app/Filament/Resources/BaselineSnapshotResource/Pages/ViewBaselineSnapshot.php:90:            Action::make('primary_related')
app/Filament/Resources/BaselineSnapshotResource/Pages/ViewBaselineSnapshot.php:92:                ->url(fn (): ?string => $this->primaryRelatedEntry()?->targetUrl)
app/Support/References/Resolvers/PolicyReferenceResolver.php:44:            ->where('managed_environment_id', $tenantId)
app/Support/References/Resolvers/PolicyReferenceResolver.php:61:                url: PolicyResource::getUrl('view', ['record' => $policy], tenant: $policy->tenant),
app/Filament/Resources/PolicyResource/Pages/ListPolicies.php:20:    protected function getHeaderActions(): array
app/Filament/Resources/StoredReportResource/Pages/ListStoredReports.php:14:    protected function getHeaderActions(): array
app/Filament/Resources/StoredReportResource/Pages/ViewStoredReport.php:22:    protected function getHeaderActions(): array
app/Filament/Resources/StoredReportResource/Pages/ViewStoredReport.php:25:            Actions\Action::make('open_current_report')
app/Filament/Resources/StoredReportResource/Pages/ViewStoredReport.php:28:                ->url(fn (): ?string => $this->record instanceof StoredReport
app/Filament/Resources/RestoreRunResource/Pages/CreateRestoreRun.php:72:            ->where('managed_environment_id', $tenant->id)
app/Filament/Resources/BaselineSnapshotResource.php:163:            ->persistFiltersInSession()
app/Filament/Resources/BaselineSnapshotResource.php:199:                ? static::getUrl('view', ['record' => $record])
app/Filament/Resources/BaselineSnapshotResource.php:228:        return Action::make('primary_drill_down')
app/Filament/Resources/BaselineSnapshotResource.php:230:            ->url(fn (BaselineSnapshot $record): ?string => static::primaryRelatedEntry($record)?->targetUrl)
app/Filament/Resources/BaselineSnapshotResource.php:244:            'index' => Pages\ListBaselineSnapshots::route('/'),
app/Filament/Resources/BaselineSnapshotResource.php:245:            'view' => Pages\ViewBaselineSnapshot::route('/{record}'),
app/Filament/Pages/Governance/GovernanceInbox.php:183:        return static::getUrl(
app/Filament/Pages/Governance/GovernanceInbox.php:186:                'managed_environment_id' => is_string($resolvedTenant) && $resolvedTenant !== '' ? $resolvedTenant : null,
app/Filament/Pages/Governance/GovernanceInbox.php:370:        $requestedTenant = request()->query('managed_environment_id', request()->query('tenant'));
app/Support/References/Resolvers/OperationRunReferenceResolver.php:63:                contextBadge: $run->managed_environment_id ? 'ManagedEnvironment context' : 'Workspace',
app/Filament/Resources/PolicyResource/RelationManagers/VersionsRelationManager.php:61:        $restoreToIntune = Actions\Action::make('restore_to_intune')
app/Filament/Resources/PolicyResource/RelationManagers/VersionsRelationManager.php:87:                if ($record->managed_environment_id !== $tenant->id) {
app/Filament/Resources/PolicyResource/RelationManagers/VersionsRelationManager.php:119:                return redirect(RestoreRunResource::getUrl('view', ['record' => $run]));
app/Filament/Resources/PolicyResource/RelationManagers/VersionsRelationManager.php:186:            ->recordUrl(fn (PolicyVersion $record): string => PolicyVersionResource::getUrl('view', ['record' => $record]))
app/Filament/Resources/PolicyResource/RelationManagers/VersionsRelationManager.php:208:            ->where('managed_environment_id', (int) $policy->managed_environment_id)
app/Support/WorkspaceIsolation/WorkspaceIsolationViolation.php:13:        return new self(sprintf('%s must include a managed_environment_id.', $modelClass));
app/Support/WorkspaceIsolation/WorkspaceIsolationViolation.php:18:        return new self(sprintf('%s references missing managed_environment_id %d.', $modelClass, $tenantId));
app/Support/WorkspaceIsolation/WorkspaceIsolationViolation.php:23:        return new self(sprintf('%s managed_environment_id %d has no workspace_id mapping.', $modelClass, $tenantId));
app/Support/WorkspaceIsolation/WorkspaceIsolationViolation.php:29:            '%s managed_environment_id %d requires workspace_id %d, received %d.',
app/Support/WorkspaceIsolation/WorkspaceIsolationViolation.php:40:            '%s managed_environment_id is immutable (%d -> %d).',
app/Filament/Resources/RestoreRunResource/Pages/ListRestoreRuns.php:47:    protected function getHeaderActions(): array
app/Filament/Resources/AlertDestinationResource/Pages/EditAlertDestination.php:31:    protected function getHeaderActions(): array
app/Filament/Resources/AlertDestinationResource/Pages/EditAlertDestination.php:40:            Action::make('send_test_message')
app/Filament/Resources/AlertDestinationResource/Pages/EditAlertDestination.php:74:            Action::make('view_last_delivery')
app/Filament/Resources/AlertDestinationResource/Pages/EditAlertDestination.php:77:                ->url(fn (): ?string => $this->buildDeepLinkUrl())
app/Filament/Resources/AlertDestinationResource/Pages/EditAlertDestination.php:149:        $baseUrl = AlertDeliveryResource::getUrl('index');
app/Support/References/Resolvers/PolicyVersionReferenceResolver.php:44:            ->where('managed_environment_id', $tenantId)
app/Support/References/Resolvers/PolicyVersionReferenceResolver.php:68:                url: PolicyVersionResource::getUrl('view', ['record' => $version], tenant: $version->tenant),
app/Filament/Pages/BaselineCompareMatrix.php:339:    protected function getHeaderActions(): array
app/Filament/Pages/BaselineCompareMatrix.php:343:        $compareAssignedTenantsAction = Action::make('compareAssignedTenants')
app/Filament/Pages/BaselineCompareMatrix.php:378:            Action::make('backToBaselineProfile')
app/Filament/Pages/BaselineCompareMatrix.php:381:                ->url(BaselineProfileResource::getUrl('view', ['record' => $profile], panel: 'admin')),
app/Filament/Pages/BaselineCompareMatrix.php:448:        return BaselineCompareLanding::getUrl(
app/Filament/Pages/BaselineCompareMatrix.php:462:        return FindingResource::getUrl(
app/Filament/Pages/BaselineCompareMatrix.php:485:        return static::getUrl($this->routeParameters([
app/Filament/Pages/BaselineCompareMatrix.php:499:        return static::getUrl($this->routeParameters($overrides), panel: 'admin');
app/Filament/Pages/BaselineCompareMatrix.php:819:                    Action::make('open_operations')
app/Filament/Pages/BaselineCompareMatrix.php:821:                        ->url(OperationRunLinks::index(
app/Filament/Resources/AlertDestinationResource/Pages/ListAlertDestinations.php:15:    protected function getHeaderActions(): array
app/Filament/Resources/AlertDestinationResource/Pages/ListAlertDestinations.php:18:            CreateAction::make()
app/Filament/Resources/AlertDestinationResource/Pages/ListAlertDestinations.php:27:            CreateAction::make()
app/Filament/Resources/ReviewPackResource/Pages/ViewReviewPack.php:20:    protected function getHeaderActions(): array
app/Filament/Resources/ReviewPackResource/Pages/ViewReviewPack.php:24:                Actions\Action::make('download')
app/Filament/Resources/ReviewPackResource/Pages/ViewReviewPack.php:29:                    ->url(fn (): string => app(ReviewPackService::class)->generateDownloadUrl($this->record, [
app/Filament/Resources/ReviewPackResource/Pages/ViewReviewPack.php:37:            Actions\Action::make('regenerate')
app/Filament/Resources/ReviewPackResource/Pages/ViewReviewPack.php:82:            Actions\Action::make('download')
app/Filament/Resources/ReviewPackResource/Pages/ViewReviewPack.php:87:                ->url(fn (): string => app(ReviewPackService::class)->generateDownloadUrl($this->record))
app/Filament/Resources/FindingResource.php:144:            return (int) $record->managed_environment_id === (int) $tenant->getKey()
app/Filament/Resources/FindingResource.php:342:                            ->url(fn (Finding $record): ?string => $record->baseline_operation_run_id
app/Filament/Resources/FindingResource.php:349:                            ->url(fn (Finding $record): ?string => $record->current_operation_run_id
app/Filament/Resources/FindingResource.php:730:            ? PolicyVersion::query()->where('managed_environment_id', $tenant->getKey())->find((int) $baselineId)
app/Filament/Resources/FindingResource.php:734:            ? PolicyVersion::query()->where('managed_environment_id', $tenant->getKey())->find((int) $currentId)
app/Filament/Resources/FindingResource.php:770:            ->persistFiltersInSession()
app/Filament/Resources/FindingResource.php:997:            ->recordUrl(static fn (Finding $record): string => static::getUrl('view', ['record' => $record]))
app/Filament/Resources/FindingResource.php:1010:                        BulkAction::make('triage_selected')
app/Filament/Resources/FindingResource.php:1034:                                    if ((int) $record->managed_environment_id !== (int) $tenant->getKey()) {
app/Filament/Resources/FindingResource.php:1079:                        BulkAction::make('assign_selected')
app/Filament/Resources/FindingResource.php:1121:                                    if ((int) $record->managed_environment_id !== (int) $tenant->getKey()) {
app/Filament/Resources/FindingResource.php:1174:                        BulkAction::make('resolve_selected')
app/Filament/Resources/FindingResource.php:1211:                                    if ((int) $record->managed_environment_id !== (int) $tenant->getKey()) {
app/Filament/Resources/FindingResource.php:1253:                        BulkAction::make('close_selected')
app/Filament/Resources/FindingResource.php:1290:                                    if ((int) $record->managed_environment_id !== (int) $tenant->getKey()) {
app/Filament/Resources/FindingResource.php:1378:        return Actions\Action::make('primary_drill_down')
app/Filament/Resources/FindingResource.php:1380:            ->url(fn (Finding $record): ?string => static::primaryRelatedEntry($record)?->targetUrl)
app/Filament/Resources/FindingResource.php:1413:            backLinkUrl: static::getUrl('view', ['record' => $record], tenant: $tenant),
app/Filament/Resources/FindingResource.php:1415:                'tableFilters' => [
app/Filament/Resources/FindingResource.php:1416:                    'managed_environment_id' => ['value' => (string) $tenant->getKey()],
app/Filament/Resources/FindingResource.php:1446:            'index' => Pages\ListFindings::route('/'),
app/Filament/Resources/FindingResource.php:1447:            'view' => Pages\ViewFinding::route('/{record}'),
app/Filament/Resources/FindingResource.php:1472:            Actions\Action::make('triage')
app/Filament/Resources/FindingResource.php:1497:            Actions\Action::make('start_progress')
app/Filament/Resources/FindingResource.php:1521:            Actions\Action::make('assign')
app/Filament/Resources/FindingResource.php:1559:            Actions\Action::make('resolve')
app/Filament/Resources/FindingResource.php:1600:            Actions\Action::make('close')
app/Filament/Resources/FindingResource.php:1639:            Actions\Action::make('request_exception')
app/Filament/Resources/FindingResource.php:1703:            Actions\Action::make('renew_exception')
app/Filament/Resources/FindingResource.php:1772:            Actions\Action::make('revoke_exception')
app/Filament/Resources/FindingResource.php:1802:            Actions\Action::make('reopen')
app/Filament/Resources/FindingResource.php:1855:        if ((int) $record->managed_environment_id !== (int) $tenant->getKey()) {
app/Filament/Resources/FindingResource.php:1907:        if ((int) $record->managed_environment_id !== (int) $tenant->getKey()) {
app/Filament/Resources/FindingResource.php:1993:                Actions\Action::make('view_exception')
app/Filament/Resources/FindingResource.php:1995:                    ->url(static::findingExceptionViewUrl($createdException, $tenant)),
app/Filament/Resources/FindingResource.php:2029:                Actions\Action::make('view_exception')
app/Filament/Resources/FindingResource.php:2031:                    ->url(static::findingExceptionViewUrl($renewedException, $tenant)),
app/Filament/Resources/FindingResource.php:2064:                Actions\Action::make('view_exception')
app/Filament/Resources/FindingResource.php:2066:                    ->url(static::findingExceptionViewUrl($revokedException, $tenant)),
app/Filament/Resources/FindingResource.php:2145:            return FindingExceptionResource::getUrl('view', ['record' => $exception], panel: 'admin');
app/Filament/Resources/FindingResource.php:2148:        return FindingExceptionResource::getUrl('view', ['record' => $exception], tenant: $tenant);
app/Filament/Resources/FindingResource.php:2487:            ->where('managed_environment_id', (int) $tenant->getKey())
app/Filament/Resources/ReviewPackResource/Pages/ListReviewPacks.php:12:    protected function getHeaderActions(): array
app/Filament/Resources/AlertDestinationResource/Pages/ViewAlertDestination.php:35:    protected function getHeaderActions(): array
app/Filament/Resources/AlertDestinationResource/Pages/ViewAlertDestination.php:44:            Action::make('send_test_message')
app/Filament/Resources/AlertDestinationResource/Pages/ViewAlertDestination.php:78:            Action::make('view_last_delivery')
app/Filament/Resources/AlertDestinationResource/Pages/ViewAlertDestination.php:81:                ->url(fn (): ?string => $this->buildDeepLinkUrl())
app/Filament/Resources/AlertDestinationResource/Pages/ViewAlertDestination.php:147:        return AlertDeliveryResource::getUrl(panel: 'admin').'?'.http_build_query([
app/Support/References/Resolvers/EntraGroupReferenceResolver.php:52:            ->where('managed_environment_id', $tenantId)
app/Filament/Resources/RestoreRunResource.php:195:                        $groupCacheQuery = EntraGroup::query()->where('managed_environment_id', $tenant->getKey());
app/Filament/Resources/RestoreRunResource.php:219:                                    Actions\Action::make('select_from_directory_cache_'.str_replace('-', '_', $groupId))
app/Filament/Resources/RestoreRunResource.php:233:                                    Actions\Action::make('open_directory_groups_'.str_replace('-', '_', $groupId))
app/Filament/Resources/RestoreRunResource.php:237:                                        ->url(fn (): string => EntraGroupResource::getUrl('index', tenant: static::resolveTenantContextForCurrentPanel()))
app/Filament/Resources/RestoreRunResource.php:265:        $action = Actions\CreateAction::make()
app/Filament/Resources/RestoreRunResource.php:460:                            Actions\Action::make('select_all_backup_items')
app/Filament/Resources/RestoreRunResource.php:476:                            Actions\Action::make('clear_backup_items')
app/Filament/Resources/RestoreRunResource.php:508:                            $groupCacheQuery = EntraGroup::query()->where('managed_environment_id', $tenant->getKey());
app/Filament/Resources/RestoreRunResource.php:544:                                        Actions\Action::make('select_from_directory_cache_'.str_replace('-', '_', $groupId))
app/Filament/Resources/RestoreRunResource.php:558:                                        Actions\Action::make('open_directory_groups_'.str_replace('-', '_', $groupId))
app/Filament/Resources/RestoreRunResource.php:562:                                            ->url(fn (): string => EntraGroupResource::getUrl('index', tenant: static::resolveTenantContextForCurrentPanel()))
app/Filament/Resources/RestoreRunResource.php:613:                            Actions\Action::make('run_restore_checks')
app/Filament/Resources/RestoreRunResource.php:633:                                    if (! $backupSet || $backupSet->managed_environment_id !== $tenant->id) {
app/Filament/Resources/RestoreRunResource.php:692:                            Actions\Action::make('clear_restore_checks')
app/Filament/Resources/RestoreRunResource.php:732:                            Actions\Action::make('run_restore_preview')
app/Filament/Resources/RestoreRunResource.php:752:                                    if (! $backupSet || $backupSet->managed_environment_id !== $tenant->id) {
app/Filament/Resources/RestoreRunResource.php:805:                            Actions\Action::make('clear_restore_preview')
app/Filament/Resources/RestoreRunResource.php:838:                            $tenantIdentifier = $tenant->managed_environment_id ?? $tenant->external_id;
app/Filament/Resources/RestoreRunResource.php:917:                            $tenantIdentifier = $tenant->managed_environment_id ?? $tenant->external_id;
app/Filament/Resources/RestoreRunResource.php:931:                            $tenantIdentifier = $tenant->managed_environment_id ?? $tenant->external_id;
app/Filament/Resources/RestoreRunResource.php:943:            ->persistFiltersInSession()
app/Filament/Resources/RestoreRunResource.php:1005:            ->recordUrl(fn (RestoreRun $record): string => static::getUrl('view', ['record' => $record]))
app/Filament/Resources/RestoreRunResource.php:1010:                        Actions\Action::make('restore')
app/Filament/Resources/RestoreRunResource.php:1043:                        Actions\Action::make('archive')
app/Filament/Resources/RestoreRunResource.php:1086:                        Actions\Action::make('forceDelete')
app/Filament/Resources/RestoreRunResource.php:1125:                        BulkAction::make('bulk_delete')
app/Filament/Resources/RestoreRunResource.php:1176:                                        'entra_tenant_id' => (string) ($tenant->managed_environment_id ?? $tenant->external_id),
app/Filament/Resources/RestoreRunResource.php:1196:                                        Actions\Action::make('view_run')
app/Filament/Resources/RestoreRunResource.php:1198:                                            ->url(OperationRunLinks::view($opRun, $tenant)),
app/Filament/Resources/RestoreRunResource.php:1208:                        BulkAction::make('bulk_restore')
app/Filament/Resources/RestoreRunResource.php:1246:                                        'entra_tenant_id' => (string) ($tenant->managed_environment_id ?? $tenant->external_id),
app/Filament/Resources/RestoreRunResource.php:1277:                                        Actions\Action::make('view_run')
app/Filament/Resources/RestoreRunResource.php:1279:                                            ->url(OperationRunLinks::view($opRun, $tenant)),
app/Filament/Resources/RestoreRunResource.php:1289:                        BulkAction::make('bulk_force_delete')
app/Filament/Resources/RestoreRunResource.php:1336:                                        'entra_tenant_id' => (string) ($tenant->managed_environment_id ?? $tenant->external_id),
app/Filament/Resources/RestoreRunResource.php:1367:                                        Actions\Action::make('view_run')
app/Filament/Resources/RestoreRunResource.php:1369:                                            ->url(OperationRunLinks::view($opRun, $tenant)),
app/Filament/Resources/RestoreRunResource.php:1429:            'index' => Pages\ListRestoreRuns::route('/'),
app/Filament/Resources/RestoreRunResource.php:1430:            'create' => Pages\CreateRestoreRun::route('/create'),
app/Filament/Resources/RestoreRunResource.php:1431:            'view' => Pages\ViewRestoreRun::route('/{record}'),
app/Filament/Resources/RestoreRunResource.php:1472:                ->whereHas('backupSet', fn ($query) => $query->where('managed_environment_id', $tenant->getKey()))
app/Filament/Resources/RestoreRunResource.php:1547:            ->whereHas('backupSet', fn ($query) => $query->where('managed_environment_id', $tenant->getKey()))
app/Filament/Resources/RestoreRunResource.php:1601:            ->where('managed_environment_id', $tenantId)
app/Filament/Resources/RestoreRunResource.php:1646:            ->where('managed_environment_id', (int) $tenant->getKey())
app/Filament/Resources/RestoreRunResource.php:1716:        if ($backupSet->managed_environment_id !== $tenant->id) {
app/Filament/Resources/RestoreRunResource.php:1759:        $tenantIdentifier = $tenant->managed_environment_id ?? $tenant->external_id;
app/Filament/Resources/RestoreRunResource.php:2032:                'managed_environment_id' => $tenant->id,
app/Filament/Resources/RestoreRunResource.php:2105:                        'entra_tenant_id' => $tenant->graphTenantId(),
app/Filament/Resources/RestoreRunResource.php:2536:            Actions\Action::make('rerun')
app/Filament/Resources/RestoreRunResource.php:2604:                        $tenantIdentifier = $tenant->managed_environment_id ?? $tenant->external_id;
app/Filament/Resources/AlertDestinationResource.php:158:                    ->url()
app/Filament/Resources/AlertDestinationResource.php:174:                ? static::getUrl('edit', ['record' => $record])
app/Filament/Resources/AlertDestinationResource.php:175:                : static::getUrl('view', ['record' => $record]))
app/Filament/Resources/AlertDestinationResource.php:193:                    Action::make('toggle_enabled')
app/Filament/Resources/AlertDestinationResource.php:224:                    Action::make('delete')
app/Filament/Resources/AlertDestinationResource.php:252:                \Filament\Actions\CreateAction::make()
app/Filament/Resources/AlertDestinationResource.php:264:            'index' => Pages\ListAlertDestinations::route('/'),
app/Filament/Resources/AlertDestinationResource.php:265:            'create' => Pages\CreateAlertDestination::route('/create'),
app/Filament/Resources/AlertDestinationResource.php:266:            'view' => Pages\ViewAlertDestination::route('/{record}'),
app/Filament/Resources/AlertDestinationResource.php:267:            'edit' => Pages\EditAlertDestination::route('/{record}/edit'),
app/Filament/Pages/EnvironmentRequiredPermissions.php:98:            ->persistFiltersInSession()
app/Filament/Pages/EnvironmentRequiredPermissions.php:169:                Action::make('clear_filters')
app/Filament/Pages/EnvironmentRequiredPermissions.php:188:        $this->tableFilters = [
app/Filament/Pages/EnvironmentRequiredPermissions.php:193:        $this->tableDeferredFilters = $this->tableFilters;
app/Filament/Pages/EnvironmentRequiredPermissions.php:198:        session()->put($this->getTableFiltersSessionKey(), $this->tableFilters);
app/Filament/Pages/EnvironmentRequiredPermissions.php:212:        return route('admin.onboarding');
app/Filament/Pages/EnvironmentRequiredPermissions.php:238:        $routeTenant = request()->route('environment') ?? request()->route('tenant');
app/Filament/Pages/EnvironmentRequiredPermissions.php:337:            'status' => $filters['status']['value'] ?? data_get($this->tableFilters, 'status.value'),
app/Filament/Pages/EnvironmentRequiredPermissions.php:338:            'type' => $filters['type']['value'] ?? data_get($this->tableFilters, 'type.value'),
app/Filament/Pages/EnvironmentRequiredPermissions.php:339:            'features' => $filters['features']['values'] ?? data_get($this->tableFilters, 'features.values', []),
app/Filament/Pages/EnvironmentRequiredPermissions.php:524:        $this->tableFilters = [
app/Filament/Pages/EnvironmentRequiredPermissions.php:529:        $this->tableDeferredFilters = $this->tableFilters;
app/Filament/Resources/EntraGroupResource/Pages/ViewEntraGroup.php:39:        if ((int) $record->managed_environment_id !== (int) $tenant->getKey()) {
app/Filament/Resources/PolicyResource.php:124:            Actions\Action::make($name)
app/Filament/Resources/PolicyResource.php:162:                                Actions\Action::make('view_run')
app/Filament/Resources/PolicyResource.php:164:                                    ->url(OperationRunLinks::view($opRun, $tenant)),
app/Filament/Resources/PolicyResource.php:177:                            Actions\Action::make('view_run')
app/Filament/Resources/PolicyResource.php:179:                                ->url(OperationRunLinks::view($opRun, $tenant)),
app/Filament/Resources/PolicyResource.php:366:            ->persistFiltersInSession()
app/Filament/Resources/PolicyResource.php:369:            ->recordUrl(fn (Policy $record): string => static::getUrl('view', ['record' => $record]))
app/Filament/Resources/PolicyResource.php:520:                        Actions\Action::make('export')
app/Filament/Resources/PolicyResource.php:568:                                        'entra_tenant_id' => (string) ($tenant->managed_environment_id ?? $tenant->external_id),
app/Filament/Resources/PolicyResource.php:590:                                        Actions\Action::make('view_run')
app/Filament/Resources/PolicyResource.php:592:                                            ->url(OperationRunLinks::view($opRun, $tenant)),
app/Filament/Resources/PolicyResource.php:603:                        Actions\Action::make('sync')
app/Filament/Resources/PolicyResource.php:637:                                            Actions\Action::make('view_run')
app/Filament/Resources/PolicyResource.php:639:                                                ->url(OperationRunLinks::view($opRun, $tenant)),
app/Filament/Resources/PolicyResource.php:650:                                        Actions\Action::make('view_run')
app/Filament/Resources/PolicyResource.php:652:                                            ->url(OperationRunLinks::view($opRun, $tenant)),
app/Filament/Resources/PolicyResource.php:662:                        Actions\Action::make('restore')
app/Filament/Resources/PolicyResource.php:683:                        Actions\Action::make('ignore')
app/Filament/Resources/PolicyResource.php:710:                        BulkAction::make('bulk_export')
app/Filament/Resources/PolicyResource.php:759:                                        'entra_tenant_id' => (string) ($tenant->managed_environment_id ?? $tenant->external_id),
app/Filament/Resources/PolicyResource.php:793:                                        Actions\Action::make('view_run')
app/Filament/Resources/PolicyResource.php:795:                                            ->url(OperationRunLinks::view($opRun, $tenant)),
app/Filament/Resources/PolicyResource.php:804:                        BulkAction::make('bulk_sync')
app/Filament/Resources/PolicyResource.php:851:                                            Actions\Action::make('view_run')
app/Filament/Resources/PolicyResource.php:853:                                                ->url(OperationRunLinks::view($opRun, $tenant)),
app/Filament/Resources/PolicyResource.php:864:                                        Actions\Action::make('view_run')
app/Filament/Resources/PolicyResource.php:866:                                            ->url(OperationRunLinks::view($opRun, $tenant)),
app/Filament/Resources/PolicyResource.php:875:                        BulkAction::make('bulk_restore')
app/Filament/Resources/PolicyResource.php:912:                                        'entra_tenant_id' => (string) ($tenant->managed_environment_id ?? $tenant->external_id),
app/Filament/Resources/PolicyResource.php:945:                                        Actions\Action::make('view_run')
app/Filament/Resources/PolicyResource.php:947:                                            ->url(OperationRunLinks::view($opRun, $tenant)),
app/Filament/Resources/PolicyResource.php:956:                        BulkAction::make('bulk_delete')
app/Filament/Resources/PolicyResource.php:1004:                                        'entra_tenant_id' => (string) ($tenant->managed_environment_id ?? $tenant->external_id),
app/Filament/Resources/PolicyResource.php:1030:                                            \Filament\Actions\Action::make('view_run')
app/Filament/Resources/PolicyResource.php:1032:                                                ->url($runUrl),
app/Filament/Resources/PolicyResource.php:1042:                                        \Filament\Actions\Action::make('view_run')
app/Filament/Resources/PolicyResource.php:1044:                                            ->url($runUrl),
app/Filament/Resources/PolicyResource.php:1093:            'index' => Pages\ListPolicies::route('/'),
app/Filament/Resources/PolicyResource.php:1094:            'view' => Pages\ViewPolicy::route('/{record}'),
app/Filament/Resources/AlertRuleResource.php:165:                        Select::make('tenant_scope_mode')
app/Filament/Resources/AlertRuleResource.php:180:                            ->visible(fn (Get $get): bool => $get('tenant_scope_mode') === AlertRule::TENANT_SCOPE_ALLOWLIST)
app/Filament/Resources/AlertRuleResource.php:225:                ? static::getUrl('edit', ['record' => $record])
app/Filament/Resources/AlertRuleResource.php:250:                    Action::make('toggle_enabled')
app/Filament/Resources/AlertRuleResource.php:282:                    Action::make('delete')
app/Filament/Resources/AlertRuleResource.php:317:            'index' => Pages\ListAlertRules::route('/'),
app/Filament/Resources/AlertRuleResource.php:318:            'create' => Pages\CreateAlertRule::route('/create'),
app/Filament/Resources/AlertRuleResource.php:319:            'edit' => Pages\EditAlertRule::route('/{record}/edit'),
app/Filament/Resources/AlertRuleResource.php:332:        if (($data['tenant_scope_mode'] ?? AlertRule::TENANT_SCOPE_ALL) !== AlertRule::TENANT_SCOPE_ALLOWLIST) {
app/Filament/Resources/ManagedEnvironmentResource/Pages/ViewManagedEnvironment.php:54:    protected function getHeaderActions(): array
app/Filament/Resources/ManagedEnvironmentResource/Pages/ViewManagedEnvironment.php:72:                    Actions\Action::make('refresh_rbac')
app/Filament/Resources/ManagedEnvironmentResource/Pages/ViewManagedEnvironment.php:96:                                    'managed_environment_id' => (int) $record->getKey(),
app/Filament/Resources/ManagedEnvironmentResource/Pages/ViewManagedEnvironment.php:109:                                        Actions\Action::make('view_run')
app/Filament/Resources/ManagedEnvironmentResource/Pages/ViewManagedEnvironment.php:111:                                            ->url($runUrl),
app/Filament/Resources/ManagedEnvironmentResource/Pages/ViewManagedEnvironment.php:128:                                    Actions\Action::make('view_run')
app/Filament/Resources/ManagedEnvironmentResource/Pages/ViewManagedEnvironment.php:130:                                        ->url($runUrl),
app/Support/Workspaces/WorkspaceContext.php:21:    public const LAST_TENANT_IDS_SESSION_KEY = 'workspace_last_tenant_ids';
app/Support/Workspaces/WorkspaceContext.php:144:    public function lastTenantId(?Request $request = null): ?int
app/Support/Workspaces/WorkspaceContext.php:193:        $rememberedTenantId = $this->lastTenantId($request);
app/Filament/Resources/EntraGroupResource/Pages/ListEntraGroups.php:41:    protected function getHeaderActions(): array
app/Filament/Resources/EntraGroupResource/Pages/ListEntraGroups.php:46:            Action::make('view_operations')
app/Filament/Resources/EntraGroupResource/Pages/ListEntraGroups.php:49:                ->url(fn (): string => OperationRunLinks::index($tenant))
app/Filament/Resources/EntraGroupResource/Pages/ListEntraGroups.php:52:                Action::make('sync_groups')
app/Filament/Pages/Findings/MyFindingsInbox.php:98:    protected function getHeaderActions(): array
app/Filament/Pages/Findings/MyFindingsInbox.php:105:            $actions[] = Action::make('return_to_governance_inbox')
app/Filament/Pages/Findings/MyFindingsInbox.php:109:                ->url($governanceContext->backLinkUrl);
app/Filament/Pages/Findings/MyFindingsInbox.php:112:        $actions[] = Action::make('clear_tenant_filter')
app/Filament/Pages/Findings/MyFindingsInbox.php:127:            ->persistFiltersInSession()
app/Filament/Pages/Findings/MyFindingsInbox.php:156:                SelectFilter::make('managed_environment_id')
app/Filament/Pages/Findings/MyFindingsInbox.php:283:                'action_url' => FindingResource::getUrl('index', tenant: $activeTenant),
app/Filament/Pages/Findings/MyFindingsInbox.php:294:            'action_url' => route('filament.admin.pages.choose-environment'),
app/Filament/Pages/Findings/MyFindingsInbox.php:305:        $this->removeTableFilter('managed_environment_id');
app/Filament/Pages/Findings/MyFindingsInbox.php:412:            ->whereIn('managed_environment_id', $tenantIds === [] ? [-1] : $tenantIds)
app/Filament/Pages/Findings/MyFindingsInbox.php:430:            $query->where('managed_environment_id', $tenantId);
app/Filament/Pages/Findings/MyFindingsInbox.php:475:            $this->tableFilters['managed_environment_id']['value'] = (string) $tenant->getKey();
app/Filament/Pages/Findings/MyFindingsInbox.php:476:            $this->tableDeferredFilters['managed_environment_id']['value'] = (string) $tenant->getKey();
app/Filament/Pages/Findings/MyFindingsInbox.php:484:        $configuredTenantFilter = data_get($this->currentQueueFiltersState(), 'managed_environment_id.value');
app/Filament/Pages/Findings/MyFindingsInbox.php:494:        $this->removeTableFilter('managed_environment_id');
app/Filament/Pages/Findings/MyFindingsInbox.php:506:            $this->tableFilters ?? [],
app/Filament/Pages/Findings/MyFindingsInbox.php:520:        $tenantFilter = data_get($filters, 'managed_environment_id.value');
app/Filament/Pages/Findings/MyFindingsInbox.php:638:        $url = FindingResource::getUrl('view', ['record' => $record], tenant: $tenant);
app/Filament/Pages/Findings/MyFindingsInbox.php:667:        return static::getUrl(
app/Filament/Pages/Findings/MyFindingsInbox.php:681:        $action = Action::make((string) $emptyState['action_name'])
app/Filament/Pages/Findings/MyFindingsInbox.php:693:            $action->url((string) $emptyState['action_url']),
app/Support/ProductTelemetry/ProductTelemetryRecorder.php:34:            'managed_environment_id' => $tenantId,
app/Support/Workspaces/WorkspaceIntendedUrl.php:47:        $queryString = $request->getQueryString();
app/Support/Workspaces/WorkspaceIntendedUrl.php:48:        $pathWithQuery = $queryString ? "{$path}?{$queryString}" : $path;
app/Filament/Resources/ManagedEnvironmentResource/Pages/ListManagedEnvironments.php:26:    protected function getHeaderActions(): array
app/Filament/Resources/ManagedEnvironmentResource/Pages/ListManagedEnvironments.php:69:        return Actions\Action::make('add_tenant')
app/Filament/Resources/ManagedEnvironmentResource/Pages/ListManagedEnvironments.php:72:            ->url(route('admin.onboarding'));
app/Filament/Resources/ManagedEnvironmentResource/Pages/ListManagedEnvironments.php:77:        return Actions\Action::make('clear_triage_filters')
app/Filament/Resources/ManagedEnvironmentResource/Pages/ListManagedEnvironments.php:101:            data_forget($this->tableFilters, $filterName);
app/Filament/Resources/ManagedEnvironmentResource/Pages/ListManagedEnvironments.php:106:            $this->tableFilters['backup_posture']['values'] = $backupPostures;
app/Filament/Resources/ManagedEnvironmentResource/Pages/ListManagedEnvironments.php:111:            $this->tableFilters['recovery_evidence']['values'] = $recoveryEvidence;
app/Filament/Resources/ManagedEnvironmentResource/Pages/ListManagedEnvironments.php:116:            $this->tableFilters['review_state']['values'] = $reviewStates;
app/Filament/Resources/ManagedEnvironmentResource/Pages/ListManagedEnvironments.php:121:            $this->tableFilters['triage_sort']['value'] = $triageSort;
app/Filament/Resources/ManagedEnvironmentResource/Pages/ListManagedEnvironments.php:142:            'backup_posture' => ManagedEnvironmentResource::sanitizeBackupPostures(data_get($this->tableFilters, 'backup_posture.values', [])),
app/Filament/Resources/ManagedEnvironmentResource/Pages/ListManagedEnvironments.php:143:            'recovery_evidence' => ManagedEnvironmentResource::sanitizeRecoveryEvidenceStates(data_get($this->tableFilters, 'recovery_evidence.values', [])),
app/Filament/Resources/ManagedEnvironmentResource/Pages/ListManagedEnvironments.php:144:            'review_state' => ManagedEnvironmentResource::sanitizeReviewStates(data_get($this->tableFilters, 'review_state.values', [])),
app/Filament/Resources/ManagedEnvironmentResource/Pages/ListManagedEnvironments.php:145:            'triage_sort' => ManagedEnvironmentResource::sanitizeTriageSort(data_get($this->tableFilters, 'triage_sort.value')),
app/Filament/Resources/EvidenceSnapshotResource.php:123:            || ((int) $record->managed_environment_id === (int) $tenant->getKey() && (int) $record->workspace_id === (int) $tenant->workspace_id);
app/Filament/Resources/EvidenceSnapshotResource.php:185:                        ->url(fn (EvidenceSnapshot $record): ?string => $record->operation_run_id ? OperationRunLinks::tenantlessView((int) $record->operation_run_id) : null)
app/Filament/Resources/EvidenceSnapshotResource.php:289:            $packUrl = ReviewPackResource::getUrl('view', ['record' => $pack], tenant: $pack->tenant);
app/Filament/Resources/EvidenceSnapshotResource.php:359:            ->recordUrl(fn (EvidenceSnapshot $record): string => static::getUrl('view', ['record' => $record]))
app/Filament/Resources/EvidenceSnapshotResource.php:393:                        Actions\Action::make('expire')
app/Filament/Resources/EvidenceSnapshotResource.php:438:                    Actions\Action::make('create_first_snapshot')
app/Filament/Resources/EvidenceSnapshotResource.php:452:            'index' => Pages\ListEvidenceSnapshots::route('/'),
app/Filament/Resources/EvidenceSnapshotResource.php:865:                    Actions\Action::make('view_snapshot')
app/Filament/Resources/EvidenceSnapshotResource.php:867:                        ->url(static::getUrl('view', ['record' => $snapshot], tenant: $tenant)),
app/Filament/Resources/EvidenceSnapshotResource.php:879:                Actions\Action::make('view_run')
app/Filament/Resources/EvidenceSnapshotResource.php:881:                    ->url($snapshot->operation_run_id ? OperationRunLinks::tenantlessView((int) $snapshot->operation_run_id) : static::getUrl('view', ['record' => $snapshot], tenant: $tenant)),
app/Filament/Resources/ProviderConnectionResource/Pages/EditProviderConnection.php:57:        $tenantIdFromQuery = request()->query('managed_environment_id');
app/Filament/Resources/ProviderConnectionResource/Pages/EditProviderConnection.php:65:        $tenant = request()->route('tenant');
app/Filament/Resources/ProviderConnectionResource/Pages/EditProviderConnection.php:86:            scopeIdentifier: (string) ($data['entra_tenant_id'] ?? ''),
app/Filament/Resources/ProviderConnectionResource/Pages/EditProviderConnection.php:89:                'microsoft_tenant_id' => (string) ($data['entra_tenant_id'] ?? ''),
app/Filament/Resources/ProviderConnectionResource/Pages/EditProviderConnection.php:95:                'entra_tenant_id' => $targetScope['message'],
app/Filament/Resources/ProviderConnectionResource/Pages/EditProviderConnection.php:171:    protected function getHeaderActions(): array
app/Filament/Resources/ProviderConnectionResource/Pages/EditProviderConnection.php:176:            Actions\DeleteAction::make()
app/Filament/Resources/ProviderConnectionResource/Pages/EditProviderConnection.php:181:                    Action::make('view_last_check_run')
app/Filament/Resources/ProviderConnectionResource/Pages/EditProviderConnection.php:187:                                ->where('managed_environment_id', $tenant->getKey())
app/Filament/Resources/ProviderConnectionResource/Pages/EditProviderConnection.php:191:                        ->url(function (ProviderConnection $record): ?string {
app/Filament/Resources/ProviderConnectionResource/Pages/EditProviderConnection.php:199:                                ->where('managed_environment_id', $tenant->getKey())
app/Filament/Resources/ProviderConnectionResource/Pages/EditProviderConnection.php:307:        $tenant = request()->route('tenant');
app/Filament/Resources/ManagedEnvironmentResource/Pages/ManageEnvironmentAccessScopes.php:28:    protected function getHeaderActions(): array
app/Filament/Resources/ManagedEnvironmentResource/Pages/ManageEnvironmentAccessScopes.php:31:            parent::getHeaderActions(),
app/Filament/Resources/ManagedEnvironmentResource/Pages/ManageEnvironmentAccessScopes.php:37:            Action::make('back_to_overview')
app/Filament/Resources/ManagedEnvironmentResource/Pages/ManageEnvironmentAccessScopes.php:40:                ->url(fn (): string => ManagedEnvironmentLinks::viewUrl($this->getRecord())),
app/Filament/Resources/Workspaces/Pages/ListWorkspaces.php:12:    protected function getHeaderActions(): array
app/Support/Workspaces/WorkspaceRedirectResolver.php:74:            return ChooseWorkspace::getUrl();
app/Support/Workspaces/WorkspaceRedirectResolver.php:113:        $tenantIdentifier = $query['tenant'] ?? $query['managed_environment_id'] ?? null;
app/Filament/Resources/ProviderConnectionResource/Pages/ListProviderConnections.php:35:    protected function getHeaderActions(): array
app/Filament/Resources/ProviderConnectionResource/Pages/ListProviderConnections.php:41:            Actions\CreateAction::make()
app/Filament/Resources/ProviderConnectionResource/Pages/ListProviderConnections.php:43:                ->url(function (): string {
app/Filament/Resources/ProviderConnectionResource/Pages/ListProviderConnections.php:47:                        return ProviderConnectionResource::getUrl('create');
app/Filament/Resources/ProviderConnectionResource/Pages/ListProviderConnections.php:50:                    return ProviderConnectionResource::getUrl('create', [
app/Filament/Resources/ProviderConnectionResource/Pages/ListProviderConnections.php:51:                        'managed_environment_id' => $tenantExternalId,
app/Filament/Resources/ProviderConnectionResource/Pages/ListProviderConnections.php:129:        return Actions\CreateAction::make()
app/Filament/Resources/ProviderConnectionResource/Pages/ListProviderConnections.php:131:            ->url(function (): string {
app/Filament/Resources/ProviderConnectionResource/Pages/ListProviderConnections.php:135:                    return ProviderConnectionResource::getUrl('create');
app/Filament/Resources/ProviderConnectionResource/Pages/ListProviderConnections.php:138:                return ProviderConnectionResource::getUrl('create', [
app/Filament/Resources/ProviderConnectionResource/Pages/ListProviderConnections.php:139:                    'managed_environment_id' => $tenantExternalId,
app/Filament/Pages/Findings/FindingsIntakeQueue.php:106:    protected function getHeaderActions(): array
app/Filament/Pages/Findings/FindingsIntakeQueue.php:113:            $actions[] = Action::make('return_to_governance_inbox')
app/Filament/Pages/Findings/FindingsIntakeQueue.php:117:                ->url($governanceContext->backLinkUrl);
app/Filament/Pages/Findings/FindingsIntakeQueue.php:120:        $actions[] = Action::make('clear_tenant_filter')
app/Filament/Pages/Findings/FindingsIntakeQueue.php:135:            ->persistFiltersInSession()
app/Filament/Pages/Findings/FindingsIntakeQueue.php:169:                SelectFilter::make('managed_environment_id')
app/Filament/Pages/Findings/FindingsIntakeQueue.php:270:            'action_url' => MyFindingsInbox::getUrl(panel: 'admin'),
app/Filament/Pages/Findings/FindingsIntakeQueue.php:281:        $this->removeTableFilter('managed_environment_id');
app/Filament/Pages/Findings/FindingsIntakeQueue.php:316:            Action::make('claim')
app/Filament/Pages/Findings/FindingsIntakeQueue.php:354:                                Action::make('open_my_findings')
app/Filament/Pages/Findings/FindingsIntakeQueue.php:356:                                    ->url(MyFindingsInbox::getUrl(panel: 'admin')),
app/Filament/Pages/Findings/FindingsIntakeQueue.php:357:                                Action::make('open_finding')
app/Filament/Pages/Findings/FindingsIntakeQueue.php:359:                                    ->url($this->findingDetailUrl($claimedFinding)),
app/Filament/Pages/Findings/FindingsIntakeQueue.php:462:            ->whereIn('managed_environment_id', $tenantIds === [] ? [-1] : $tenantIds)
app/Filament/Pages/Findings/FindingsIntakeQueue.php:481:            $query->where('managed_environment_id', $tenantId);
app/Filament/Pages/Findings/FindingsIntakeQueue.php:535:            $this->tableFilters['managed_environment_id']['value'] = (string) $tenant->getKey();
app/Filament/Pages/Findings/FindingsIntakeQueue.php:536:            $this->tableDeferredFilters['managed_environment_id']['value'] = (string) $tenant->getKey();
app/Filament/Pages/Findings/FindingsIntakeQueue.php:544:        $configuredTenantFilter = data_get($this->currentQueueFiltersState(), 'managed_environment_id.value');
app/Filament/Pages/Findings/FindingsIntakeQueue.php:554:        $this->removeTableFilter('managed_environment_id');
app/Filament/Pages/Findings/FindingsIntakeQueue.php:566:            $this->tableFilters ?? [],
app/Filament/Pages/Findings/FindingsIntakeQueue.php:572:        $tenantFilter = data_get($this->currentQueueFiltersState(), 'managed_environment_id.value');
app/Filament/Pages/Findings/FindingsIntakeQueue.php:696:        $url = FindingResource::getUrl('view', ['record' => $record], tenant: $tenant);
app/Filament/Pages/Findings/FindingsIntakeQueue.php:730:        return static::getUrl(
app/Filament/Pages/Findings/FindingsIntakeQueue.php:768:        $action = Action::make((string) $emptyState['action_name'])
app/Filament/Pages/Findings/FindingsIntakeQueue.php:780:            $action->url((string) $emptyState['action_url']),
app/Filament/Resources/ManagedEnvironmentResource/Pages/EditManagedEnvironment.php:15:    protected function getHeaderActions(): array
app/Filament/Resources/InventoryItemResource/Pages/ListInventoryItems.php:66:    protected function getHeaderActions(): array
app/Filament/Resources/InventoryItemResource/Pages/ListInventoryItems.php:70:                Action::make('run_inventory_sync')
app/Filament/Resources/InventoryItemResource/Pages/ListInventoryItems.php:82:                                fn (Select $component): HintAction => HintAction::make('select_all_policy_types')
app/Filament/Resources/InventoryItemResource/Pages/ListInventoryItems.php:89:                                fn (Select $component): HintAction => HintAction::make('clear_policy_types')
app/Filament/Resources/InventoryItemResource/Pages/ListInventoryItems.php:131:                        Hidden::make('managed_environment_id')
app/Filament/Resources/InventoryItemResource/Pages/ListInventoryItems.php:156:                        $requestedTenantId = $data['managed_environment_id'] ?? null;
app/Filament/Resources/InventoryItemResource/Pages/ListInventoryItems.php:191:                                    'entra_tenant_id' => $tenant->graphTenantId(),
app/Filament/Resources/InventoryItemResource/Pages/ListInventoryItems.php:200:                                    Action::make('view_run')
app/Filament/Resources/InventoryItemResource/Pages/ListInventoryItems.php:202:                                        ->url(OperationRunLinks::view($opRun, $tenant)),
app/Filament/Resources/InventoryItemResource/Pages/ListInventoryItems.php:237:                                Action::make('view_run')
app/Filament/Resources/InventoryItemResource/Pages/ListInventoryItems.php:239:                                    ->url(OperationRunLinks::view($opRun, $tenant)),
app/Filament/Resources/Workspaces/Pages/ViewWorkspace.php:16:    protected function getHeaderActions(): array
app/Filament/Resources/Workspaces/Pages/ViewWorkspace.php:20:                Actions\EditAction::make()
app/Filament/Resources/InventoryItemResource.php:145:            return (int) $record->managed_environment_id === (int) $tenant->getKey();
app/Filament/Resources/InventoryItemResource.php:219:                            ->url(function (InventoryItem $record): ?string {
app/Filament/Resources/InventoryItemResource.php:286:            ->persistFiltersInSession()
app/Filament/Resources/InventoryItemResource.php:390:                ? static::getUrl('view', ['record' => $record])
app/Filament/Resources/InventoryItemResource.php:419:            'index' => Pages\ListInventoryItems::route('/'),
app/Filament/Resources/InventoryItemResource.php:420:            'view' => Pages\ViewInventoryItem::route('/{record}'),
app/Support/Workspaces/WorkspaceOverviewBuilder.php:138:            'action_url' => $calmness['next_action']['url'] ?? ChooseEnvironment::getUrl(panel: 'admin'),
app/Support/Workspaces/WorkspaceOverviewBuilder.php:270:            'cta_url' => MyFindingsInbox::getUrl(panel: 'admin'),
app/Support/Workspaces/WorkspaceOverviewBuilder.php:299:            'cta_url' => FindingsHygieneReport::getUrl(panel: 'admin'),
app/Support/Workspaces/WorkspaceOverviewBuilder.php:375:            ->selectRaw('managed_environment_id, count(*) as aggregate_count')
app/Support/Workspaces/WorkspaceOverviewBuilder.php:376:            ->groupBy('managed_environment_id')
app/Support/Workspaces/WorkspaceOverviewBuilder.php:377:            ->pluck('aggregate_count', 'managed_environment_id')
app/Support/Workspaces/WorkspaceOverviewBuilder.php:387:            ->selectRaw('managed_environment_id, count(*) as aggregate_count')
app/Support/Workspaces/WorkspaceOverviewBuilder.php:388:            ->groupBy('managed_environment_id')
app/Support/Workspaces/WorkspaceOverviewBuilder.php:389:            ->pluck('aggregate_count', 'managed_environment_id')
app/Support/Workspaces/WorkspaceOverviewBuilder.php:399:            ->selectRaw('managed_environment_id, count(*) as aggregate_count')
app/Support/Workspaces/WorkspaceOverviewBuilder.php:400:            ->groupBy('managed_environment_id')
app/Support/Workspaces/WorkspaceOverviewBuilder.php:401:            ->pluck('aggregate_count', 'managed_environment_id')
app/Support/Workspaces/WorkspaceOverviewBuilder.php:413:                ->selectRaw('managed_environment_id, count(*) as aggregate_count')
app/Support/Workspaces/WorkspaceOverviewBuilder.php:414:                ->groupBy('managed_environment_id')
app/Support/Workspaces/WorkspaceOverviewBuilder.php:415:                ->pluck('aggregate_count', 'managed_environment_id')
app/Support/Workspaces/WorkspaceOverviewBuilder.php:951:            'managed_environment_id' => (int) $tenant->getKey(),
app/Support/Workspaces/WorkspaceOverviewBuilder.php:1422:                $query->whereNull('managed_environment_id');
app/Support/Workspaces/WorkspaceOverviewBuilder.php:1425:                    $query->orWhereIn('managed_environment_id', $accessibleTenantIds);
app/Support/Workspaces/WorkspaceOverviewBuilder.php:1437:            ->whereIn('managed_environment_id', $accessibleTenantIds === [] ? [0] : $accessibleTenantIds);
app/Support/Workspaces/WorkspaceOverviewBuilder.php:1455:                'url' => ChooseEnvironment::getUrl(panel: 'admin'),
app/Support/Workspaces/WorkspaceOverviewBuilder.php:1491:                'url' => route('filament.admin.resources.workspaces.index'),
app/Support/Workspaces/WorkspaceOverviewBuilder.php:1535:            url: ChooseEnvironment::getUrl(panel: 'admin'),
app/Support/Workspaces/WorkspaceOverviewBuilder.php:1652:                url: FindingResource::getUrl('index', $filters, tenant: $tenant),
app/Support/Workspaces/WorkspaceOverviewBuilder.php:1686:            url: BaselineCompareLanding::getUrl(tenant: $tenant),
app/Support/Workspaces/WorkspaceOverviewBuilder.php:1708:                'managed_environment_id' => $tenant?->getKey(),
app/Support/Workspaces/WorkspaceOverviewBuilder.php:1752:        return $this->appendQuery(route('filament.admin.alerts'), $navigationContext->toQuery());
app/Support/Workspaces/WorkspaceOverviewBuilder.php:1820:            backLinkUrl: route('admin.home'),
app/Support/Workspaces/WorkspaceOverviewBuilder.php:1852:        return route('filament.admin.pages.choose-workspace').'?choose=1';
app/Filament/Resources/ProviderConnectionResource/Pages/CreateProviderConnection.php:37:            scopeIdentifier: (string) ($data['entra_tenant_id'] ?? ''),
app/Filament/Resources/ProviderConnectionResource/Pages/CreateProviderConnection.php:40:                'microsoft_tenant_id' => (string) ($data['entra_tenant_id'] ?? ''),
app/Filament/Resources/ProviderConnectionResource/Pages/CreateProviderConnection.php:46:                'entra_tenant_id' => $targetScope['message'],
app/Filament/Resources/ProviderConnectionResource/Pages/CreateProviderConnection.php:52:            'managed_environment_id' => $tenant->getKey(),
app/Filament/Resources/ProviderConnectionResource/Pages/CreateProviderConnection.php:54:            'entra_tenant_id' => $data['entra_tenant_id'],
app/Filament/Resources/Workspaces/WorkspaceResource.php:148:        return Actions\CreateAction::make()
app/Filament/Resources/Workspaces/WorkspaceResource.php:161:            ->recordUrl(fn (Workspace $record): string => static::getUrl('view', ['record' => $record]))
app/Filament/Resources/Workspaces/WorkspaceResource.php:184:                        Actions\EditAction::make()
app/Filament/Resources/Workspaces/WorkspaceResource.php:233:            'index' => Pages\ListWorkspaces::route('/'),
app/Filament/Resources/Workspaces/WorkspaceResource.php:234:            'create' => Pages\CreateWorkspace::route('/create'),
app/Filament/Resources/Workspaces/WorkspaceResource.php:235:            'view' => Pages\ViewWorkspace::route('/{record}'),
app/Filament/Resources/Workspaces/WorkspaceResource.php:236:            'edit' => Pages\EditWorkspace::route('/{record}/edit'),
app/Filament/Resources/ManagedEnvironmentResource/RelationManagers/ManagedEnvironmentMembershipsRelationManager.php:96:                    Action::make('add_member')
app/Filament/Resources/ManagedEnvironmentResource/RelationManagers/ManagedEnvironmentMembershipsRelationManager.php:153:                    Action::make('remove')
app/Filament/Resources/ManagedEnvironmentResource/RelationManagers/ManagedEnvironmentMembershipsRelationManager.php:210:            ->whereDoesntHave('tenantMemberships', fn (Builder $query): Builder => $query->where('managed_environment_id', (int) $tenant->getKey()))
app/Filament/Pages/Findings/FindingsHygieneReport.php:92:    protected function getHeaderActions(): array
app/Filament/Pages/Findings/FindingsHygieneReport.php:95:            Action::make('clear_tenant_filter')
app/Filament/Pages/Findings/FindingsHygieneReport.php:109:            ->persistFiltersInSession()
app/Filament/Pages/Findings/FindingsHygieneReport.php:141:                SelectFilter::make('managed_environment_id')
app/Filament/Pages/Findings/FindingsHygieneReport.php:293:        $this->removeTableFilter('managed_environment_id');
app/Filament/Pages/Findings/FindingsHygieneReport.php:416:            $this->tableFilters['managed_environment_id']['value'] = (string) $tenant->getKey();
app/Filament/Pages/Findings/FindingsHygieneReport.php:417:            $this->tableDeferredFilters['managed_environment_id']['value'] = (string) $tenant->getKey();
app/Filament/Pages/Findings/FindingsHygieneReport.php:425:        $configuredTenantFilter = data_get($this->currentFiltersState(), 'managed_environment_id.value');
app/Filament/Pages/Findings/FindingsHygieneReport.php:435:        $this->removeTableFilter('managed_environment_id');
app/Filament/Pages/Findings/FindingsHygieneReport.php:447:            $this->tableFilters ?? [],
app/Filament/Pages/Findings/FindingsHygieneReport.php:453:        $tenantFilter = data_get($this->currentFiltersState(), 'managed_environment_id.value');
app/Filament/Pages/Findings/FindingsHygieneReport.php:568:        $url = FindingResource::getUrl('view', ['record' => $record], tenant: $tenant);
app/Filament/Pages/Findings/FindingsHygieneReport.php:593:        return static::getUrl(
app/Filament/Pages/Findings/FindingsHygieneReport.php:635:            Action::make((string) $emptyState['action_name'])
app/Livewire/BackupSetPolicyPickerTable.php:63:        $tenantId = $backupSet?->managed_environment_id ?? ManagedEnvironment::currentOrFail()->getKey();
app/Livewire/BackupSetPolicyPickerTable.php:69:            ->queryStringIdentifier('backupSetPolicyPicker'.Str::studly((string) $this->backupSetId))
app/Livewire/BackupSetPolicyPickerTable.php:72:                    ->where('managed_environment_id', $tenantId)
app/Livewire/BackupSetPolicyPickerTable.php:145:                        ->where('managed_environment_id', $tenantId)
app/Livewire/BackupSetPolicyPickerTable.php:217:                BulkAction::make('add_selected_to_backup_set')
app/Livewire/BackupSetPolicyPickerTable.php:244:                            ->where('managed_environment_id', $tenant->getKey())
app/Livewire/BackupSetPolicyPickerTable.php:276:                        if ((int) $tenant->getKey() !== (int) $backupSet->managed_environment_id) {
app/Livewire/BackupSetPolicyPickerTable.php:337:                                'entra_tenant_id' => (string) ($tenant->managed_environment_id ?? $tenant->external_id),
app/Livewire/BackupSetPolicyPickerTable.php:367:                                    \Filament\Actions\Action::make('view_run')
app/Livewire/BackupSetPolicyPickerTable.php:369:                                        ->url(OperationRunLinks::view($opRun, $tenant)),
app/Livewire/BackupSetPolicyPickerTable.php:377:                                \Filament\Actions\Action::make('view_run')
app/Livewire/BackupSetPolicyPickerTable.php:379:                                    ->url(OperationRunLinks::view($opRun, $tenant)),
app/Filament/Resources/ProviderConnectionResource/Pages/ViewProviderConnection.php:18:    protected function getHeaderActions(): array
app/Filament/Resources/ProviderConnectionResource/Pages/ViewProviderConnection.php:24:                Actions\Action::make('grant_admin_consent')
app/Filament/Resources/ProviderConnectionResource/Pages/ViewProviderConnection.php:27:                    ->url(function () use ($tenant): ?string {
app/Livewire/InventoryItemDependencyEdgesTable.php:44:            ->queryStringIdentifier('inventoryItemDependencyEdges'.Str::studly((string) $this->inventoryItemId))
app/Livewire/InventoryItemDependencyEdgesTable.php:93:                    ->url(fn (array $record): ?string => is_string($record['target_url'] ?? null) ? $record['target_url'] : null)
app/Livewire/InventoryItemDependencyEdgesTable.php:250:        $tenant = Filament::getTenant();
app/Livewire/InventoryItemDependencyEdgesTable.php:273:        return (int) $inventoryItem->managed_environment_id === (int) $tenant->getKey()
app/Filament/Resources/PolicyVersionResource/Pages/ListPolicyVersions.php:24:    protected function getHeaderActions(): array
app/Filament/Pages/BreakGlassRecovery.php:31:    protected function getHeaderActions(): array
app/Filament/Resources/Workspaces/RelationManagers/WorkspaceMembershipsRelationManager.php:69:                    Action::make('add_member')
app/Filament/Resources/Workspaces/RelationManagers/WorkspaceMembershipsRelationManager.php:142:                    Action::make('change_role')
app/Filament/Resources/Workspaces/RelationManagers/WorkspaceMembershipsRelationManager.php:196:                        Action::make('remove')
app/Livewire/BulkOperationProgress.php:40:        $tenant = Filament::getTenant();
app/Livewire/BulkOperationProgress.php:68:            $tenant = Filament::getTenant();
app/Livewire/BulkOperationProgress.php:106:            'tenant' => Filament::getTenant(),
app/Livewire/PolicyVersionAssignmentsWidget.php:117:                    'managed_environment_id' => $tenant?->getKey(),
app/Filament/Resources/ReviewPackResource.php:111:            return (int) $record->managed_environment_id === (int) $tenant->getKey();
app/Filament/Resources/ReviewPackResource.php:206:                            ->url(fn (ReviewPack $record): ?string => $record->environmentReview && $record->tenant
app/Filament/Resources/ReviewPackResource.php:213:                            ->url(fn (ReviewPack $record): ?string => $record->tenant instanceof ManagedEnvironment
app/Filament/Resources/ReviewPackResource.php:227:                            ->url(function (ReviewPack $record): ?string {
app/Filament/Resources/ReviewPackResource.php:260:                            ->url(fn (ReviewPack $record): ?string => static::evidenceSnapshotUrl($record)),
app/Filament/Resources/ReviewPackResource.php:284:            ->recordUrl(fn (ReviewPack $record): string => static::getUrl('view', ['record' => $record]))
app/Filament/Resources/ReviewPackResource.php:337:                Actions\Action::make('download')
app/Filament/Resources/ReviewPackResource.php:342:                    ->url(function (ReviewPack $record): string {
app/Filament/Resources/ReviewPackResource.php:348:                        Actions\Action::make('expire')
app/Filament/Resources/ReviewPackResource.php:385:            Actions\Action::make($name)
app/Filament/Resources/ReviewPackResource.php:433:            ->where('managed_environment_id', (int) $tenant->getKey());
app/Filament/Resources/ReviewPackResource.php:439:            'index' => Pages\ListReviewPacks::route('/'),
app/Filament/Resources/ReviewPackResource.php:440:            'view' => Pages\ViewReviewPack::route('/{record}'),
app/Filament/Resources/ReviewPackResource.php:455:        $url = TenantEvidenceSnapshotResource::getUrl('view', ['record' => $record->evidenceSnapshot], tenant: $record->tenant);
app/Filament/Resources/ReviewPackResource.php:569:                    Actions\Action::make('view_pack')
app/Filament/Resources/ReviewPackResource.php:571:                        ->url(static::getUrl('view', ['record' => $reviewPack], tenant: $tenant)),
app/Livewire/BaselineCompareEvidenceGapTable.php:42:            ->queryStringIdentifier('baselineCompareEvidenceGap'.Str::studly($this->context))
app/Livewire/SettingsCatalogSettingsTable.php:34:            ->queryStringIdentifier('settingsCatalog'.Str::studly($this->context))
app/Livewire/SettingsCatalogSettingsTable.php:137:                Action::make('details')
app/Filament/Resources/PolicyVersionResource/Pages/ViewPolicyVersion.php:26:    protected function getHeaderActions(): array
app/Filament/Resources/PolicyVersionResource/Pages/ViewPolicyVersion.php:29:            Action::make('primary_related')
app/Filament/Resources/PolicyVersionResource/Pages/ViewPolicyVersion.php:31:                ->url(fn (): ?string => $this->primaryRelatedEntry()?->targetUrl)
app/Livewire/EntraGroupCachePickerTable.php:33:            $query->where('managed_environment_id', $tenantId);
app/Livewire/EntraGroupCachePickerTable.php:42:            ->queryStringIdentifier('entraGroupCachePicker')
app/Livewire/EntraGroupCachePickerTable.php:138:                Action::make('select')
app/Livewire/EntraGroupCachePickerTable.php:149:                Action::make('open_groups')
app/Livewire/EntraGroupCachePickerTable.php:152:                    ->url(fn (): string => EntraGroupResource::getUrl('index', tenant: ManagedEnvironment::current())),
app/Livewire/EntraGroupCachePickerTable.php:153:                Action::make('open_sync_runs')
app/Livewire/EntraGroupCachePickerTable.php:156:                    ->url(fn (): string => OperationRunLinks::index(ManagedEnvironment::current())),
app/Filament/Resources/FindingExceptionResource/Pages/ListFindingExceptions.php:60:    protected function getHeaderActions(): array
app/Filament/Resources/FindingExceptionResource/Pages/ListFindingExceptions.php:63:            Action::make('open_findings')
app/Filament/Resources/FindingExceptionResource/Pages/ListFindingExceptions.php:67:                ->url(FindingResource::getUrl('index')),
app/Filament/Resources/FindingExceptionResource/Pages/ListFindingExceptions.php:68:            Action::make('open_approval_queue')
app/Filament/Resources/FindingExceptionResource/Pages/ListFindingExceptions.php:73:                ->url(fn (): ?string => FindingExceptionResource::approvalQueueUrl()),
app/Filament/Pages/Operations/TenantlessOperationRunViewer.php:107:    protected function getHeaderActions(): array
app/Filament/Pages/Operations/TenantlessOperationRunViewer.php:112:        $runTenantId = isset($this->run) ? (int) ($this->run->managed_environment_id ?? 0) : 0;
app/Filament/Pages/Operations/TenantlessOperationRunViewer.php:115:            Action::make('operate_hub_scope_run_detail')
app/Filament/Pages/Operations/TenantlessOperationRunViewer.php:122:            $actions[] = Action::make('operate_hub_back_to_origin_run_detail')
app/Filament/Pages/Operations/TenantlessOperationRunViewer.php:125:                ->url($navigationContext->backLinkUrl);
app/Filament/Pages/Operations/TenantlessOperationRunViewer.php:127:            $actions[] = Action::make('operate_hub_back_to_tenant_run_detail')
app/Filament/Pages/Operations/TenantlessOperationRunViewer.php:130:                ->url(ManagedEnvironmentLinks::viewUrl($activeTenant));
app/Filament/Pages/Operations/TenantlessOperationRunViewer.php:132:            $actions[] = Action::make('operate_hub_back_to_operations')
app/Filament/Pages/Operations/TenantlessOperationRunViewer.php:135:                ->url(fn (): string => OperationRunLinks::index());
app/Filament/Pages/Operations/TenantlessOperationRunViewer.php:139:            $actions[] = Action::make('operate_hub_show_all_operations')
app/Filament/Pages/Operations/TenantlessOperationRunViewer.php:142:                ->url(fn (): string => OperationRunLinks::index());
app/Filament/Pages/Operations/TenantlessOperationRunViewer.php:145:        $actions[] = Action::make('refresh')
app/Filament/Pages/Operations/TenantlessOperationRunViewer.php:149:            ->url(fn (): string => isset($this->run)
app/Filament/Pages/Operations/TenantlessOperationRunViewer.php:162:            $relatedActions[] = Action::make(Str::slug((string) $label, '_'))
app/Filament/Pages/Operations/TenantlessOperationRunViewer.php:164:                ->url((string) $url)
app/Filament/Pages/Operations/TenantlessOperationRunViewer.php:205:        $runTenantId = isset($this->run) ? (int) ($this->run->managed_environment_id ?? 0) : 0;
app/Filament/Pages/Operations/TenantlessOperationRunViewer.php:241:        $action = Action::make('openSupportDiagnostics')
app/Filament/Pages/Operations/TenantlessOperationRunViewer.php:272:        $action = Action::make('requestSupport')
app/Filament/Pages/Operations/TenantlessOperationRunViewer.php:317:                    ->url()
app/Filament/Pages/Operations/TenantlessOperationRunViewer.php:359:                            Action::make('openExternalTicket')
app/Filament/Pages/Operations/TenantlessOperationRunViewer.php:361:                                ->url((string) $supportRequest->external_ticket_url, shouldOpenInNewTab: true),
app/Filament/Pages/Operations/TenantlessOperationRunViewer.php:801:        return Action::make('resumeCapture')
app/Filament/Pages/Operations/TenantlessOperationRunViewer.php:852:                $viewAction = Action::make('view_run')
app/Filament/Pages/Operations/TenantlessOperationRunViewer.php:854:                    ->url(OperationRunLinks::tenantlessView($run));
app/Filament/Resources/EnvironmentReviewResource/Pages/ListEnvironmentReviews.php:14:    protected function getHeaderActions(): array
app/Filament/Resources/EnvironmentReviewResource.php:153:        if ((int) $record->managed_environment_id !== (int) $tenant->getKey()) {
app/Filament/Resources/EnvironmentReviewResource.php:222:                        ->url(fn (EnvironmentReview $record): ?string => $record->evidenceSnapshot
app/Filament/Resources/EnvironmentReviewResource.php:223:                            ? EvidenceSnapshotResource::getUrl('view', ['record' => $record->evidenceSnapshot], tenant: $record->tenant)
app/Filament/Resources/EnvironmentReviewResource.php:228:                        ->url(fn (EnvironmentReview $record): ?string => $record->currentExportReviewPack
app/Filament/Resources/EnvironmentReviewResource.php:229:                            ? ReviewPackResource::getUrl('view', ['record' => $record->currentExportReviewPack], tenant: $record->tenant)
app/Filament/Resources/EnvironmentReviewResource.php:297:            Actions\Action::make('export_executive_pack')
app/Filament/Resources/EnvironmentReviewResource.php:317:            ->persistFiltersInSession()
app/Filament/Resources/EnvironmentReviewResource.php:378:            'index' => Pages\ListEnvironmentReviews::route('/'),
app/Filament/Resources/EnvironmentReviewResource.php:379:            'view' => Pages\ViewEnvironmentReview::route('/{record}'),
app/Filament/Resources/EnvironmentReviewResource.php:393:            Actions\Action::make($name)
app/Filament/Resources/EnvironmentReviewResource.php:439:                ->where('managed_environment_id', (int) $tenant->getKey())
app/Filament/Resources/EnvironmentReviewResource.php:465:                    Actions\Action::make('view_review')
app/Filament/Resources/EnvironmentReviewResource.php:467:                        ->url(static::tenantScopedUrl('view', ['record' => $review], $tenant)),
app/Filament/Resources/EnvironmentReviewResource.php:479:                Actions\Action::make('view_run')
app/Filament/Resources/EnvironmentReviewResource.php:481:                    ->url(OperationRunLinks::tenantlessView((int) $review->operation_run_id)),
app/Filament/Resources/EnvironmentReviewResource.php:599:                    Actions\Action::make('view_pack')
app/Filament/Resources/EnvironmentReviewResource.php:601:                        ->url(ReviewPackResource::getUrl('view', ['record' => $pack], tenant: $review->tenant)),
app/Filament/Resources/EnvironmentReviewResource.php:624:        return static::getUrl($page, $parameters, panel: $panelId, tenant: $tenant);
app/Filament/Resources/EnvironmentReviewResource.php:639:            ->where('managed_environment_id', (int) $tenant->getKey())
app/Filament/Resources/EnvironmentReviewResource.php:875:                'url' => ReviewPackResource::getUrl('view', ['record' => $record->currentExportReviewPack], tenant: $record->tenant),
app/Filament/Resources/EnvironmentReviewResource.php:893:                ? EvidenceSnapshotResource::getUrl('view', ['record' => $record->evidenceSnapshot], tenant: $record->tenant)
app/Filament/Resources/EnvironmentReviewResource.php:928:                $evidenceUrl = EvidenceSnapshotResource::getUrl('view', ['record' => $review->evidenceSnapshot], tenant: $tenant);
app/Filament/Resources/FindingExceptionResource/Pages/ViewFindingException.php:37:    protected function getHeaderActions(): array
app/Filament/Resources/FindingExceptionResource/Pages/ViewFindingException.php:46:            $actions[] = Action::make('return_to_decision_register')
app/Filament/Resources/FindingExceptionResource/Pages/ViewFindingException.php:50:                ->url($navigationContext->backLinkUrl);
app/Filament/Resources/FindingExceptionResource/Pages/ViewFindingException.php:54:            Action::make('renew_exception')
app/Filament/Resources/FindingExceptionResource/Pages/ViewFindingException.php:134:            Action::make('revoke_exception')
app/Filament/Resources/StoredReportResource.php:102:        if ((int) $record->managed_environment_id !== (int) $tenant->getKey() || (int) $record->workspace_id !== (int) $tenant->workspace_id) {
app/Filament/Resources/StoredReportResource.php:325:            ->recordUrl(fn (StoredReport $record): string => static::getUrl('view', ['record' => $record]))
app/Filament/Resources/StoredReportResource.php:383:                Actions\Action::make('open_tenant_overview')
app/Filament/Resources/StoredReportResource.php:386:                    ->url(fn (): string => static::tenantOverviewUrl()),
app/Filament/Resources/StoredReportResource.php:393:            'index' => Pages\ListStoredReports::route('/'),
app/Filament/Resources/StoredReportResource.php:394:            'view' => Pages\ViewStoredReport::route('/{record}'),
app/Filament/Resources/StoredReportResource.php:606:            ->where('managed_environment_id', (int) $report->managed_environment_id)
app/Filament/Resources/StoredReportResource.php:630:        return static::getUrl('view', ['record' => $current], tenant: $tenant);
app/Filament/Resources/StoredReportResource.php:639:                ->whereColumn('newer_stored_reports.managed_environment_id', 'stored_reports.managed_environment_id')
app/Filament/Resources/BaselineProfileResource/Pages/ListBaselineProfiles.php:15:    protected function getHeaderActions(): array
app/Filament/Resources/BaselineProfileResource/Pages/ListBaselineProfiles.php:18:            CreateAction::make()
app/Filament/Resources/BaselineProfileResource/Pages/ListBaselineProfiles.php:28:            CreateAction::make()
app/Filament/Resources/BackupSetResource/Pages/ListBackupSets.php:30:    protected function getHeaderActions(): array
app/Filament/Resources/ProviderConnectionResource.php:138:        $routeTenant = request()->route('tenant');
app/Filament/Resources/ProviderConnectionResource.php:170:            if (! $tenant instanceof ManagedEnvironment && is_numeric($record->managed_environment_id)) {
app/Filament/Resources/ProviderConnectionResource.php:171:                $tenant = ManagedEnvironment::query()->whereKey((int) $record->managed_environment_id)->first();
app/Filament/Resources/ProviderConnectionResource.php:184:        $queryTenant = request()->query('managed_environment_id');
app/Filament/Resources/ProviderConnectionResource.php:196:        $contextTenantId = app(WorkspaceContext::class)->lastTenantId(request());
app/Filament/Resources/ProviderConnectionResource.php:281:            $tenantExternalId = $queryParams['managed_environment_id'] ?? null;
app/Filament/Resources/ProviderConnectionResource.php:304:        $record = request()->route('record');
app/Filament/Resources/ProviderConnectionResource.php:349:            qualifiedEnvironmentColumn: 'provider_connections.managed_environment_id',
app/Filament/Resources/ProviderConnectionResource.php:592:                    'scope_identifier' => (string) $record->entra_tenant_id,
app/Filament/Resources/ProviderConnectionResource.php:593:                    'scope_display_name' => (string) ($record->tenant?->name ?? $record->display_name ?? $record->entra_tenant_id),
app/Filament/Resources/ProviderConnectionResource.php:616:                        TextInput::make('entra_tenant_id')
app/Filament/Resources/ProviderConnectionResource.php:799:            ->persistFiltersInSession()
app/Filament/Resources/ProviderConnectionResource.php:802:            ->recordUrl(fn (ProviderConnection $record): string => static::getUrl('view', ['record' => $record]))
app/Filament/Resources/ProviderConnectionResource.php:815:                    ->url(function (ProviderConnection $record): ?string {
app/Filament/Resources/ProviderConnectionResource.php:832:                Tables\Columns\TextColumn::make('entra_tenant_id')->label('Microsoft tenant ID')->copyable()->toggleable(isToggledHiddenByDefault: true),
app/Filament/Resources/ProviderConnectionResource.php:1004:            Actions\Action::make('edit')
app/Filament/Resources/ProviderConnectionResource.php:1007:                ->url(fn (ProviderConnection $record): string => static::getUrl('edit', ['record' => $record], tenant: static::resolveTenantForRecord($record)))
app/Filament/Resources/ProviderConnectionResource.php:1016:            Actions\Action::make('check_connection')
app/Filament/Resources/ProviderConnectionResource.php:1033:            Actions\Action::make('inventory_sync')
app/Filament/Resources/ProviderConnectionResource.php:1064:            Actions\Action::make('compliance_snapshot')
app/Filament/Resources/ProviderConnectionResource.php:1095:            Actions\Action::make('set_default')
app/Filament/Resources/ProviderConnectionResource.php:1142:        $action = Actions\Action::make('enable_dedicated_override')
app/Filament/Resources/ProviderConnectionResource.php:1214:        $action = Actions\Action::make('rotate_dedicated_credential')
app/Filament/Resources/ProviderConnectionResource.php:1267:        $action = Actions\Action::make('delete_dedicated_credential')
app/Filament/Resources/ProviderConnectionResource.php:1301:        $action = Actions\Action::make('revert_to_platform')
app/Filament/Resources/ProviderConnectionResource.php:1358:            Actions\Action::make('enable_connection')
app/Filament/Resources/ProviderConnectionResource.php:1433:            Actions\Action::make('disable_connection')
app/Filament/Resources/ProviderConnectionResource.php:1519:                Actions\Action::make('manage_connections')
app/Filament/Resources/ProviderConnectionResource.php:1521:                    ->url(static::getUrl('index', tenant: $tenant)),
app/Filament/Resources/ProviderConnectionResource.php:1626:            'index' => Pages\ListProviderConnections::route('/'),
app/Filament/Resources/ProviderConnectionResource.php:1627:            'create' => Pages\CreateProviderConnection::route('/create'),
app/Filament/Resources/ProviderConnectionResource.php:1628:            'view' => Pages\ViewProviderConnection::route('/{record}'),
app/Filament/Resources/ProviderConnectionResource.php:1629:            'edit' => Pages\EditProviderConnection::route('/{record}/edit'),
app/Filament/Resources/ProviderConnectionResource.php:1657:    public static function getUrl(?string $name = null, array $parameters = [], bool $isAbsolute = true, ?string $panel = null, ?Model $tenant = null, bool $shouldGuessMissingParameters = false): string
app/Filament/Resources/ProviderConnectionResource.php:1683:        if (! array_key_exists('managed_environment_id', $parameters) && is_string($tenantExternalId) && $tenantExternalId !== '') {
app/Filament/Resources/ProviderConnectionResource.php:1684:            $parameters['managed_environment_id'] = $tenantExternalId;
app/Filament/Resources/ProviderConnectionResource.php:1687:        return parent::getUrl($name, $parameters, $isAbsolute, $panel, null, $shouldGuessMissingParameters);
app/Filament/Resources/AlertRuleResource/Pages/ListAlertRules.php:15:    protected function getHeaderActions(): array
app/Filament/Resources/AlertRuleResource/Pages/ListAlertRules.php:18:            CreateAction::make()
app/Filament/Resources/AlertRuleResource/Pages/ListAlertRules.php:27:            CreateAction::make()
app/Filament/Resources/BackupScheduleResource/Pages/ListBackupSchedules.php:42:    protected function getHeaderActions(): array
app/Filament/Resources/EnvironmentReviewResource/Pages/ViewEnvironmentReview.php:55:        if ((int) $record->managed_environment_id !== (int) $tenant->getKey()) {
app/Filament/Resources/EnvironmentReviewResource/Pages/ViewEnvironmentReview.php:68:    protected function getHeaderActions(): array
app/Filament/Resources/EnvironmentReviewResource/Pages/ViewEnvironmentReview.php:181:            Actions\Action::make('refresh_review')
app/Filament/Resources/EnvironmentReviewResource/Pages/ViewEnvironmentReview.php:216:            Actions\Action::make('publish_review')
app/Filament/Resources/EnvironmentReviewResource/Pages/ViewEnvironmentReview.php:262:            Actions\Action::make('export_executive_pack')
app/Filament/Resources/EnvironmentReviewResource/Pages/ViewEnvironmentReview.php:286:            Actions\Action::make('create_next_review')
app/Filament/Resources/EnvironmentReviewResource/Pages/ViewEnvironmentReview.php:318:            Actions\Action::make('archive_review')
app/Filament/Resources/EnvironmentReviewResource/Pages/ViewEnvironmentReview.php:357:        return Actions\Action::make('download_current_review_pack')
app/Filament/Resources/EnvironmentReviewResource/Pages/ViewEnvironmentReview.php:363:            ->url(fn (): ?string => $this->currentReviewPackDownloadUrl())
app/Filament/Resources/BaselineProfileResource/Pages/EditBaselineProfile.php:93:        return $this->getResource()::getUrl('view', ['record' => $this->getRecord()]);
app/Filament/Resources/FindingResource/Pages/ListFindings.php:101:    protected function getHeaderActions(): array
app/Filament/Resources/FindingResource/Pages/ListFindings.php:106:            Actions\Action::make('triage_all_matching')
app/Filament/Resources/FindingResource/Pages/ListFindings.php:296:            data_forget($this->tableFilters, $filterName);
app/Filament/Resources/FindingResource/Pages/ListFindings.php:301:            data_forget($this->tableFilters, "{$filterName}.isActive");
app/Filament/Resources/FindingResource/Pages/ListFindings.php:310:            $this->tableFilters['status']['value'] = $requestedStatus;
app/Filament/Resources/FindingResource/Pages/ListFindings.php:315:            $this->tableFilters['finding_type']['value'] = $requestedFindingType;
app/Filament/Resources/FindingResource/Pages/ListFindings.php:320:            $this->tableFilters['governance_validity']['value'] = $requestedGovernanceValidity;
app/Filament/Resources/FindingResource/Pages/ListFindings.php:327:            $this->tableFilters['high_severity']['isActive'] = true;
app/Filament/Resources/FindingResource/Pages/ViewFinding.php:25:    protected function getHeaderActions(): array
app/Filament/Resources/FindingResource/Pages/ViewFinding.php:31:            $actions[] = Actions\Action::make('back_to_origin')
app/Filament/Resources/FindingResource/Pages/ViewFinding.php:34:                ->url($navigationContext->backLinkUrl);
app/Filament/Resources/FindingResource/Pages/ViewFinding.php:38:            Actions\Action::make('primary_related')
app/Filament/Resources/FindingResource/Pages/ViewFinding.php:41:                ->url(fn (): ?string => app(RelatedNavigationResolver::class)
app/Filament/Resources/FindingResource/Pages/ViewFinding.php:46:            Actions\Action::make('open_approval_queue')
app/Filament/Resources/FindingResource/Pages/ViewFinding.php:56:                ->url(function (): ?string {
app/Filament/Resources/BackupSetResource/Pages/ViewBackupSet.php:33:    protected function getHeaderActions(): array
app/Filament/Resources/BackupSetResource/Pages/ViewBackupSet.php:36:            Action::make('primary_related')
app/Filament/Resources/BackupSetResource/Pages/ViewBackupSet.php:39:                ->url(fn (): ?string => app(RelatedNavigationResolver::class)
app/Filament/Resources/BackupSetResource/Pages/ViewBackupSet.php:62:        $action = Action::make('restore')
app/Filament/Resources/BackupSetResource/Pages/ViewBackupSet.php:91:                $this->redirect(BackupSetResource::getUrl('view', ['record' => $record], tenant: static::resolveTenantContextForCurrentPanel()), navigate: true);
app/Filament/Resources/BackupSetResource/Pages/ViewBackupSet.php:104:        $action = Action::make('archive')
app/Filament/Resources/BackupSetResource/Pages/ViewBackupSet.php:132:                $this->redirect(BackupSetResource::getUrl('index', tenant: static::resolveTenantContextForCurrentPanel()), navigate: true);
app/Filament/Resources/BackupSetResource/Pages/ViewBackupSet.php:145:        $action = Action::make('forceDelete')
app/Filament/Resources/BackupSetResource/Pages/ViewBackupSet.php:184:                $this->redirect(BackupSetResource::getUrl('index', tenant: static::resolveTenantContextForCurrentPanel()), navigate: true);
app/Filament/Resources/BackupScheduleResource/RelationManagers/BackupScheduleOperationRunsRelationManager.php:40:            ->modifyQueryUsing(fn (Builder $query) => $query->where('managed_environment_id', ManagedEnvironment::currentOrFail()->getKey()))
app/Filament/Resources/BackupScheduleResource/RelationManagers/BackupScheduleOperationRunsRelationManager.php:109:            ->where('managed_environment_id', ManagedEnvironment::currentOrFail()->getKey())
app/Filament/Pages/EnvironmentDashboard.php:64:        $tenant = Filament::getTenant();
app/Filament/Pages/EnvironmentDashboard.php:92:    public static function getUrl(array $parameters = [], bool $isAbsolute = true, ?string $panel = null, ?Model $tenant = null, bool $shouldGuessMissingParameters = false): string
app/Filament/Pages/EnvironmentDashboard.php:144:    protected function getHeaderActions(): array
app/Filament/Pages/EnvironmentDashboard.php:256:        $tenant = Filament::getTenant();
app/Filament/Pages/EnvironmentDashboard.php:263:        return Action::make('primaryFollowUp')
app/Filament/Pages/EnvironmentDashboard.php:267:            ->url(GovernanceInbox::getUrl(panel: 'admin').'?'.http_build_query([
app/Filament/Pages/EnvironmentDashboard.php:268:                'managed_environment_id' => (int) $tenant->getKey(),
app/Filament/Pages/EnvironmentDashboard.php:289:        $action = Action::make($name)
app/Filament/Pages/EnvironmentDashboard.php:295:            $action->url($url);
app/Filament/Pages/EnvironmentDashboard.php:313:        $tenant = Filament::getTenant();
app/Filament/Pages/EnvironmentDashboard.php:342:        $action = Action::make('requestSupport')
app/Filament/Pages/EnvironmentDashboard.php:383:                    ->url()
app/Filament/Pages/EnvironmentDashboard.php:426:                            Action::make('openExternalTicket')
app/Filament/Pages/EnvironmentDashboard.php:428:                                ->url((string) $supportRequest->external_ticket_url, shouldOpenInNewTab: true),
app/Filament/Pages/EnvironmentDashboard.php:441:        $action = Action::make('openSupportDiagnostics')
app/Filament/Pages/EnvironmentDashboard.php:534:        $tenant = Filament::getTenant();
app/Filament/Pages/EnvironmentDashboard.php:555:        $tenant = Filament::getTenant();
app/Filament/Pages/ChooseEnvironment.php:95:            $this->redirect(route('filament.admin.pages.choose-workspace'));
app/Filament/Pages/ChooseEnvironment.php:143:        if (Schema::hasColumn('users', 'last_tenant_id')) {
app/Filament/Pages/ChooseEnvironment.php:144:            $user->forceFill(['last_tenant_id' => $tenant->getKey()])->save();
app/Filament/Pages/ChooseEnvironment.php:154:            ['user_id' => $user->getKey(), 'managed_environment_id' => $tenant->getKey()],
app/Filament/Pages/Workspaces/ManagedEnvironmentOnboardingWizard.php:168:    protected function getHeaderActions(): array
app/Filament/Pages/Workspaces/ManagedEnvironmentOnboardingWizard.php:175:            $actions[] = Action::make('back_to_workspace')
app/Filament/Pages/Workspaces/ManagedEnvironmentOnboardingWizard.php:178:                ->url(route('admin.home'));
app/Filament/Pages/Workspaces/ManagedEnvironmentOnboardingWizard.php:182:            $actions[] = Action::make('back_to_onboarding_landing')
app/Filament/Pages/Workspaces/ManagedEnvironmentOnboardingWizard.php:185:                ->url(route('admin.onboarding'));
app/Filament/Pages/Workspaces/ManagedEnvironmentOnboardingWizard.php:189:            $actions[] = Action::make('view_linked_environment')
app/Filament/Pages/Workspaces/ManagedEnvironmentOnboardingWizard.php:192:                ->url($tenant instanceof ManagedEnvironment ? ManagedEnvironmentLinks::viewUrl($tenant) : null);
app/Filament/Pages/Workspaces/ManagedEnvironmentOnboardingWizard.php:196:            $actions[] = Action::make('cancel_onboarding_draft')
app/Filament/Pages/Workspaces/ManagedEnvironmentOnboardingWizard.php:207:            $actions[] = Action::make('delete_onboarding_draft_header')
app/Filament/Pages/Workspaces/ManagedEnvironmentOnboardingWizard.php:329:                                    TextInput::make('entra_tenant_id')
app/Filament/Pages/Workspaces/ManagedEnvironmentOnboardingWizard.php:359:                            $entraTenantId = (string) ($this->data['entra_tenant_id'] ?? '');
app/Filament/Pages/Workspaces/ManagedEnvironmentOnboardingWizard.php:367:                                    'entra_tenant_id' => $entraTenantId,
app/Filament/Pages/Workspaces/ManagedEnvironmentOnboardingWizard.php:406:                                            Action::make('edit_selected_connection')
app/Filament/Pages/Workspaces/ManagedEnvironmentOnboardingWizard.php:435:                                                    TextInput::make('entra_tenant_id')
app/Filament/Pages/Workspaces/ManagedEnvironmentOnboardingWizard.php:477:                                        ->default(fn (): string => $this->currentManagedEnvironmentRecord()?->managed_environment_id ?? '')
app/Filament/Pages/Workspaces/ManagedEnvironmentOnboardingWizard.php:567:                                        Action::make('wizardStartVerification')
app/Filament/Pages/Workspaces/ManagedEnvironmentOnboardingWizard.php:575:                                        Action::make('wizardRefreshVerification')
app/Filament/Pages/Workspaces/ManagedEnvironmentOnboardingWizard.php:612:                                        Action::make('wizardStartBootstrap')
app/Filament/Pages/Workspaces/ManagedEnvironmentOnboardingWizard.php:702:                                        Action::make('wizardCompleteOnboarding')
app/Filament/Pages/Workspaces/ManagedEnvironmentOnboardingWizard.php:737:                $this->redirect(route('admin.onboarding.draft', ['onboardingDraft' => $draft]));
app/Filament/Pages/Workspaces/ManagedEnvironmentOnboardingWizard.php:907:                Action::make('start_new_onboarding_draft')
app/Filament/Pages/Workspaces/ManagedEnvironmentOnboardingWizard.php:944:                        Action::make('resume_draft_'.$draft->getKey())
app/Filament/Pages/Workspaces/ManagedEnvironmentOnboardingWizard.php:947:                        Action::make('view_draft_'.$draft->getKey())
app/Filament/Pages/Workspaces/ManagedEnvironmentOnboardingWizard.php:1101:            $actions[] = Action::make($keyPrefix.'_supporting_operation_'.$index)
app/Filament/Pages/Workspaces/ManagedEnvironmentOnboardingWizard.php:1104:                ->url($url);
app/Filament/Pages/Workspaces/ManagedEnvironmentOnboardingWizard.php:1108:            $actions[] = Action::make($keyPrefix.'_required_permissions_assist')
app/Filament/Pages/Workspaces/ManagedEnvironmentOnboardingWizard.php:1111:            ->url($requiredPermissionsUrl);
app/Filament/Pages/Workspaces/ManagedEnvironmentOnboardingWizard.php:1188:                Action::make($keyPrefix.'_review_permissions')
app/Filament/Pages/Workspaces/ManagedEnvironmentOnboardingWizard.php:1191:                    ->url($url),
app/Filament/Pages/Workspaces/ManagedEnvironmentOnboardingWizard.php:1430:                Action::make($keyPrefix.'_primary_next_action')
app/Filament/Pages/Workspaces/ManagedEnvironmentOnboardingWizard.php:1433:                    ->url($url)
app/Filament/Pages/Workspaces/ManagedEnvironmentOnboardingWizard.php:1450:        if ($providerConnectionId === null || $draft->managed_environment_id === null) {
app/Filament/Pages/Workspaces/ManagedEnvironmentOnboardingWizard.php:1457:            ->where('managed_environment_id', (int) $draft->managed_environment_id)
app/Filament/Pages/Workspaces/ManagedEnvironmentOnboardingWizard.php:1931:        if ($draft->managed_environment_id !== null) {
app/Filament/Pages/Workspaces/ManagedEnvironmentOnboardingWizard.php:1936:        $entraTenantId = $state['entra_tenant_id'] ?? $draft->entra_tenant_id;
app/Filament/Pages/Workspaces/ManagedEnvironmentOnboardingWizard.php:1998:                Action::make('back_to_workspace_summary')
app/Filament/Pages/Workspaces/ManagedEnvironmentOnboardingWizard.php:2001:                    ->url(route('admin.home')),
app/Filament/Pages/Workspaces/ManagedEnvironmentOnboardingWizard.php:2002:                Action::make('return_to_onboarding_landing')
app/Filament/Pages/Workspaces/ManagedEnvironmentOnboardingWizard.php:2005:                    ->url(route('admin.onboarding')),
app/Filament/Pages/Workspaces/ManagedEnvironmentOnboardingWizard.php:2006:                Action::make('delete_onboarding_draft')
app/Filament/Pages/Workspaces/ManagedEnvironmentOnboardingWizard.php:2050:                        'tenant_db_id' => $draft->managed_environment_id !== null ? (int) $draft->managed_environment_id : null,
app/Filament/Pages/Workspaces/ManagedEnvironmentOnboardingWizard.php:2060:        $this->redirect(route('admin.onboarding.draft', ['onboardingDraft' => $draft]));
app/Filament/Pages/Workspaces/ManagedEnvironmentOnboardingWizard.php:2124:                    'tenant_db_id' => $this->onboardingSession->managed_environment_id !== null ? (int) $this->onboardingSession->managed_environment_id : null,
app/Filament/Pages/Workspaces/ManagedEnvironmentOnboardingWizard.php:2157:        $this->redirect(route('admin.onboarding.draft', ['onboardingDraft' => $this->onboardingSession]));
app/Filament/Pages/Workspaces/ManagedEnvironmentOnboardingWizard.php:2198:        $tenantId = $draft->managed_environment_id !== null ? (int) $draft->managed_environment_id : null;
app/Filament/Pages/Workspaces/ManagedEnvironmentOnboardingWizard.php:2229:        $this->redirect(route('admin.onboarding'));
app/Filament/Pages/Workspaces/ManagedEnvironmentOnboardingWizard.php:2298:        $entraTenantId = $state['entra_tenant_id'] ?? $draft->entra_tenant_id;
app/Filament/Pages/Workspaces/ManagedEnvironmentOnboardingWizard.php:2387:        if ($draft instanceof ManagedEnvironmentOnboardingSession && $draft->managed_environment_id !== null) {
app/Filament/Pages/Workspaces/ManagedEnvironmentOnboardingWizard.php:2388:            $this->managedEnvironmentId = (int) $draft->managed_environment_id;
app/Filament/Pages/Workspaces/ManagedEnvironmentOnboardingWizard.php:2597:            $this->data['entra_tenant_id'] ??= (string) $tenant->managed_environment_id;
app/Filament/Pages/Workspaces/ManagedEnvironmentOnboardingWizard.php:2598:            $this->data['new_connection']['target_scope_id'] ??= (string) $tenant->managed_environment_id;
app/Filament/Pages/Workspaces/ManagedEnvironmentOnboardingWizard.php:2614:            if (isset($state['entra_tenant_id']) && is_string($state['entra_tenant_id']) && trim($state['entra_tenant_id']) !== '') {
app/Filament/Pages/Workspaces/ManagedEnvironmentOnboardingWizard.php:2615:                $this->data['entra_tenant_id'] ??= trim($state['entra_tenant_id']);
app/Filament/Pages/Workspaces/ManagedEnvironmentOnboardingWizard.php:2684:            ->where('managed_environment_id', $tenant->getKey())
app/Filament/Pages/Workspaces/ManagedEnvironmentOnboardingWizard.php:2722:                    'scope_identifier' => (string) $connection->entra_tenant_id,
app/Filament/Pages/Workspaces/ManagedEnvironmentOnboardingWizard.php:2723:                    'scope_display_name' => (string) ($connection->tenant?->name ?? $connection->display_name ?? $connection->entra_tenant_id),
app/Filament/Pages/Workspaces/ManagedEnvironmentOnboardingWizard.php:2945:            ->where('managed_environment_id', (int) $run->managed_environment_id)
app/Filament/Pages/Workspaces/ManagedEnvironmentOnboardingWizard.php:3065:        return Action::make('wizardVerificationRequiredPermissionsAssist')
app/Filament/Pages/Workspaces/ManagedEnvironmentOnboardingWizard.php:3084:        return Action::make('wizardVerificationTechnicalDetails')
app/Filament/Pages/Workspaces/ManagedEnvironmentOnboardingWizard.php:3104:        return Action::make('acknowledgeVerificationCheck')
app/Filament/Pages/Workspaces/ManagedEnvironmentOnboardingWizard.php:3307:                    'tenant_db_id' => $this->onboardingSession->managed_environment_id !== null ? (int) $this->onboardingSession->managed_environment_id : null,
app/Filament/Pages/Workspaces/ManagedEnvironmentOnboardingWizard.php:3410:            ->where('managed_environment_memberships.managed_environment_id', (int) $tenant->getKey())
app/Filament/Pages/Workspaces/ManagedEnvironmentOnboardingWizard.php:3418:     * @param  array{entra_tenant_id: string, environment: string, name: string, primary_domain?: string, notes?: string}  $data
app/Filament/Pages/Workspaces/ManagedEnvironmentOnboardingWizard.php:3430:        $entraTenantId = (string) ($data['entra_tenant_id'] ?? '');
app/Filament/Pages/Workspaces/ManagedEnvironmentOnboardingWizard.php:3504:                        // Race-safe global uniqueness: if another workspace created the managed_environment_id first,
app/Filament/Pages/Workspaces/ManagedEnvironmentOnboardingWizard.php:3539:                        $draft->managed_environment_id = (int) $tenant->getKey();
app/Filament/Pages/Workspaces/ManagedEnvironmentOnboardingWizard.php:3542:                            'entra_tenant_id' => $entraTenantId,
app/Filament/Pages/Workspaces/ManagedEnvironmentOnboardingWizard.php:3578:                            'entra_tenant_id' => $entraTenantId,
app/Filament/Pages/Workspaces/ManagedEnvironmentOnboardingWizard.php:3614:            $this->redirect(route('admin.onboarding.draft', ['onboardingDraft' => $this->onboardingSession]));
app/Filament/Pages/Workspaces/ManagedEnvironmentOnboardingWizard.php:3633:            ->where('managed_environment_id', (int) $tenant->getKey())
app/Filament/Pages/Workspaces/ManagedEnvironmentOnboardingWizard.php:3737:            scopeIdentifier: (string) $tenant->managed_environment_id,
app/Filament/Pages/Workspaces/ManagedEnvironmentOnboardingWizard.php:3740:                'microsoft_tenant_id' => (string) $tenant->managed_environment_id,
app/Filament/Pages/Workspaces/ManagedEnvironmentOnboardingWizard.php:3764:                ->where('managed_environment_id', (int) $tenant->getKey())
app/Filament/Pages/Workspaces/ManagedEnvironmentOnboardingWizard.php:3766:                ->where('entra_tenant_id', (string) $tenant->managed_environment_id)
app/Filament/Pages/Workspaces/ManagedEnvironmentOnboardingWizard.php:3772:                    'managed_environment_id' => (int) $tenant->getKey(),
app/Filament/Pages/Workspaces/ManagedEnvironmentOnboardingWizard.php:3774:                    'entra_tenant_id' => (string) $tenant->managed_environment_id,
app/Filament/Pages/Workspaces/ManagedEnvironmentOnboardingWizard.php:5428:     * @return array{display_name: string, entra_tenant_id: string, uses_dedicated_override: bool, client_id: string}
app/Filament/Pages/Workspaces/ManagedEnvironmentOnboardingWizard.php:5447:            ->where('managed_environment_id', (int) $this->managedEnvironment->getKey())
app/Filament/Pages/Workspaces/ManagedEnvironmentOnboardingWizard.php:5460:            'entra_tenant_id' => (string) $connection->entra_tenant_id,
app/Filament/Pages/Workspaces/ManagedEnvironmentOnboardingWizard.php:5486:            ->where('managed_environment_id', (int) $this->managedEnvironment->getKey())
app/Filament/Pages/Workspaces/ManagedEnvironmentOnboardingWizard.php:5678:            ->where('managed_environment_id', (int) $tenant->getKey())
app/Filament/Pages/Workspaces/ManagedEnvironmentOnboardingWizard.php:5689:            ->where('managed_environment_id', (int) $tenant->getKey())
app/Filament/Pages/Workspaces/ManagedEnvironmentOnboardingWizard.php:5715:            ->where('managed_environment_id', (int) $tenant->getKey())
app/Filament/Pages/Workspaces/ManagedEnvironmentOnboardingWizard.php:5733:            $tenantId = is_numeric($this->onboardingSession->managed_environment_id) ? (int) $this->onboardingSession->managed_environment_id : null;
app/Filament/Pages/Workspaces/ManagedEnvironmentOnboardingWizard.php:5743:            ->where('managed_environment_id', $tenantId)
app/Filament/Resources/BackupSetResource/RelationManagers/BackupItemsRelationManager.php:85:        $refreshTable = Actions\Action::make('refreshTable')
app/Filament/Resources/BackupSetResource/RelationManagers/BackupItemsRelationManager.php:92:        $addPolicies = Actions\Action::make('addPolicies')
app/Filament/Resources/BackupSetResource/RelationManagers/BackupItemsRelationManager.php:112:        $removeItem = Actions\Action::make('remove')
app/Filament/Resources/BackupSetResource/RelationManagers/BackupItemsRelationManager.php:130:                if ((int) $tenant->getKey() !== (int) $backupSet->managed_environment_id) {
app/Filament/Resources/BackupSetResource/RelationManagers/BackupItemsRelationManager.php:153:                            Actions\Action::make('view_run')
app/Filament/Resources/BackupSetResource/RelationManagers/BackupItemsRelationManager.php:155:                                ->url(OperationRunLinks::view($opRun, $tenant)),
app/Filament/Resources/BackupSetResource/RelationManagers/BackupItemsRelationManager.php:174:                        Actions\Action::make('view_run')
app/Filament/Resources/BackupSetResource/RelationManagers/BackupItemsRelationManager.php:176:                            ->url(OperationRunLinks::view($opRun, $tenant)),
app/Filament/Resources/BackupSetResource/RelationManagers/BackupItemsRelationManager.php:186:        $bulkRemove = Actions\BulkAction::make('bulk_remove')
app/Filament/Resources/BackupSetResource/RelationManagers/BackupItemsRelationManager.php:209:                if ((int) $tenant->getKey() !== (int) $backupSet->managed_environment_id) {
app/Filament/Resources/BackupSetResource/RelationManagers/BackupItemsRelationManager.php:236:                            Actions\Action::make('view_run')
app/Filament/Resources/BackupSetResource/RelationManagers/BackupItemsRelationManager.php:238:                                ->url(OperationRunLinks::view($opRun, $tenant)),
app/Filament/Resources/BackupSetResource/RelationManagers/BackupItemsRelationManager.php:257:                        Actions\Action::make('view_run')
app/Filament/Resources/BackupSetResource/RelationManagers/BackupItemsRelationManager.php:259:                            ->url(OperationRunLinks::view($opRun, $tenant)),
app/Filament/Resources/BackupSetResource/RelationManagers/BackupItemsRelationManager.php:273:            ->persistFiltersInSession()
app/Filament/Resources/BackupSetResource/RelationManagers/BackupItemsRelationManager.php:480:            ->where('managed_environment_id', (int) $backupSet->managed_environment_id)
app/Filament/Resources/BackupSetResource/RelationManagers/BackupItemsRelationManager.php:495:            return PolicyVersionResource::getUrl('view', ['record' => $resolvedRecord->policy_version_id], tenant: $tenant);
app/Filament/Resources/BackupSetResource/RelationManagers/BackupItemsRelationManager.php:502:        return PolicyResource::getUrl('view', ['record' => $resolvedRecord->policy_id], tenant: $tenant);
app/Filament/Resources/BackupSetResource/RelationManagers/BackupItemsRelationManager.php:519:            ->where('managed_environment_id', (int) $backupSet->managed_environment_id)
app/Filament/Resources/BackupSetResource/RelationManagers/BackupItemsRelationManager.php:548:            ->where('managed_environment_id', (int) $backupSet->managed_environment_id)
app/Filament/Resources/BaselineProfileResource/Pages/ViewBaselineProfile.php:37:    protected function getHeaderActions(): array
app/Filament/Resources/BaselineProfileResource/Pages/ViewBaselineProfile.php:44:                EditAction::make()
app/Filament/Resources/BaselineProfileResource/Pages/ViewBaselineProfile.php:70:        $action = Action::make('capture')
app/Filament/Resources/BaselineProfileResource/Pages/ViewBaselineProfile.php:79:                Select::make('source_environment_id')
app/Filament/Resources/BaselineProfileResource/Pages/ViewBaselineProfile.php:94:                $sourceTenant = ManagedEnvironment::query()->find((int) $data['source_environment_id']);
app/Filament/Resources/BaselineProfileResource/Pages/ViewBaselineProfile.php:136:                $viewAction = Action::make('view_run')
app/Filament/Resources/BaselineProfileResource/Pages/ViewBaselineProfile.php:138:                    ->url(OperationRunLinks::view($run, $sourceTenant));
app/Filament/Resources/BaselineProfileResource/Pages/ViewBaselineProfile.php:181:        return Action::make('compareNow')
app/Filament/Resources/BaselineProfileResource/Pages/ViewBaselineProfile.php:190:                Select::make('target_environment_id')
app/Filament/Resources/BaselineProfileResource/Pages/ViewBaselineProfile.php:207:                $targetTenant = ManagedEnvironment::query()->find((int) $data['target_environment_id']);
app/Filament/Resources/BaselineProfileResource/Pages/ViewBaselineProfile.php:220:                    ->where('managed_environment_id', (int) $targetTenant->getKey())
app/Filament/Resources/BaselineProfileResource/Pages/ViewBaselineProfile.php:289:                $viewAction = Action::make('view_run')
app/Filament/Resources/BaselineProfileResource/Pages/ViewBaselineProfile.php:291:                    ->url(OperationRunLinks::view($run, $targetTenant));
app/Filament/Resources/BaselineProfileResource/Pages/ViewBaselineProfile.php:313:        $action = Action::make('compareAssignedTenants')
app/Filament/Resources/BaselineProfileResource/Pages/ViewBaselineProfile.php:350:                            Action::make('open_operations')
app/Filament/Resources/BaselineProfileResource/Pages/ViewBaselineProfile.php:352:                                ->url(OperationRunLinks::index(allTenants: true)),
app/Filament/Resources/BaselineProfileResource/Pages/ViewBaselineProfile.php:411:            ->pluck('managed_environment_id')
app/Filament/Resources/BaselineProfileResource/Pages/ViewBaselineProfile.php:513:            ->pluck('managed_environment_id')
app/Filament/Pages/EnvironmentDiagnostics.php:61:    protected function getHeaderActions(): array
app/Filament/Pages/EnvironmentDiagnostics.php:65:                Action::make('bootstrapOwner')
app/Filament/Pages/EnvironmentDiagnostics.php:77:                Action::make('mergeDuplicateMemberships')
app/Filament/Resources/BaselineProfileResource/RelationManagers/BaselineTenantAssignmentsRelationManager.php:80:        return Action::make('assign')
app/Filament/Resources/BaselineProfileResource/RelationManagers/BaselineTenantAssignmentsRelationManager.php:85:                Select::make('managed_environment_id')
app/Filament/Resources/BaselineProfileResource/RelationManagers/BaselineTenantAssignmentsRelationManager.php:106:                $tenantId = (int) $data['managed_environment_id'];
app/Filament/Resources/BaselineProfileResource/RelationManagers/BaselineTenantAssignmentsRelationManager.php:110:                    ->where('managed_environment_id', $tenantId)
app/Filament/Resources/BaselineProfileResource/RelationManagers/BaselineTenantAssignmentsRelationManager.php:129:                    'managed_environment_id' => $tenantId,
app/Filament/Resources/BaselineProfileResource/RelationManagers/BaselineTenantAssignmentsRelationManager.php:147:        return Action::make('remove')
app/Filament/Resources/BaselineProfileResource/RelationManagers/BaselineTenantAssignmentsRelationManager.php:223:            ->get(['managed_environment_id', 'baseline_profile_id'])
app/Filament/Resources/BaselineProfileResource/RelationManagers/BaselineTenantAssignmentsRelationManager.php:228:                    (int) $assignment->managed_environment_id => [
app/Filament/Resources/BaselineProfileResource/RelationManagers/BaselineTenantAssignmentsRelationManager.php:285:        $tenant = ManagedEnvironment::query()->find($assignment->managed_environment_id);
app/Filament/Resources/BaselineProfileResource/RelationManagers/BaselineTenantAssignmentsRelationManager.php:295:                'managed_environment_id' => (int) $assignment->managed_environment_id,
app/Filament/Pages/Tenancy/RegisterTenant.php:72:                Forms\Components\TextInput::make('managed_environment_id')
app/Filament/Pages/Settings/WorkspaceSettings.php:164:    protected function getHeaderActions(): array
app/Filament/Pages/Settings/WorkspaceSettings.php:167:            Action::make('save')
app/Filament/Pages/Settings/WorkspaceSettings.php:768:            Action::make('approve_support_access')
app/Filament/Pages/Settings/WorkspaceSettings.php:778:            Action::make('deny_support_access')
app/Filament/Pages/Settings/WorkspaceSettings.php:898:        return Action::make('reset_'.$field)
app/Filament/Pages/WorkspaceOverview.php:84:            ->url(fn (): string => route('admin.home'))
app/Filament/Pages/Workspaces/ManagedEnvironmentsLanding.php:95:        $this->redirect(route('admin.workspace.managed-environments.index', ['workspace' => $this->workspace]));
app/Filament/Pages/BaselineCompareLanding.php:399:    protected function getHeaderActions(): array
app/Filament/Pages/BaselineCompareLanding.php:405:            $actions[] = Action::make('backToOrigin')
app/Filament/Pages/BaselineCompareLanding.php:408:                ->url($navigationContext->backLinkUrl);
app/Filament/Pages/BaselineCompareLanding.php:434:        $action = Action::make('compareNow')
app/Filament/Pages/BaselineCompareLanding.php:502:                        Action::make('view_run')
app/Filament/Pages/BaselineCompareLanding.php:504:                            ->url(OperationRunLinks::view($run, $tenant, $this->navigationContext())),
app/Filament/Pages/BaselineCompareLanding.php:523:        return FindingResource::getUrl('index', tenant: $tenant);
app/Filament/Pages/NoAccess.php:46:    protected function getHeaderActions(): array
app/Filament/Pages/NoAccess.php:49:            Action::make('createWorkspace')
app/Filament/Pages/NoAccess.php:96:        $this->redirect(ChooseEnvironment::getUrl());
app/Filament/Pages/ChooseWorkspace.php:43:    protected function getHeaderActions(): array
app/Filament/System/Widgets/ControlTowerTopOffenders.php:38:            ->selectRaw('workspace_id, managed_environment_id, type, COUNT(*) AS failed_count')
app/Filament/System/Widgets/ControlTowerTopOffenders.php:42:            ->groupBy('workspace_id', 'managed_environment_id', 'type')
app/Filament/System/Widgets/ControlTowerTopOffenders.php:56:            ->pluck('managed_environment_id')
app/Filament/System/Widgets/ControlTowerTopOffenders.php:77:                $tenantId = is_numeric($record->managed_environment_id) ? (int) $record->managed_environment_id : null;
app/Filament/Support/VerificationReportViewer.php:78:            ->where('managed_environment_id', (int) $run->managed_environment_id)
app/Filament/System/Widgets/ControlTowerKpis.php:55:                ->url(SystemOperationRunLinks::index()),
app/Filament/System/Widgets/ControlTowerKpis.php:58:                ->url(SystemOperationRunLinks::index()),
app/Filament/System/Widgets/ControlTowerKpis.php:61:                ->url(SystemOperationRunLinks::index()),
app/Filament/System/Widgets/ControlTowerKpis.php:64:                ->url(SystemOperationRunLinks::index()),
app/Filament/System/Pages/Ops/Runs.php:74:    protected function getHeaderActions(): array
app/Filament/System/Pages/Ops/Runs.php:77:            Action::make('go_to_runbooks')
app/Filament/System/Pages/Ops/Runs.php:79:                ->url(Runbooks::getUrl(panel: 'system')),
app/Filament/System/Pages/Ops/Runs.php:157:                Action::make('go_to_runbooks_empty')
app/Filament/System/Pages/Ops/Runs.php:159:                    ->url(Runbooks::getUrl(panel: 'system'))
app/Filament/System/Pages/RepairWorkspaceOwners.php:176:    protected function getHeaderActions(): array
app/Filament/System/Pages/RepairWorkspaceOwners.php:181:            Action::make('assign_owner')
app/Filament/System/Pages/Dashboard.php:39:    public static function getUrl(array $parameters = [], bool $isAbsolute = true, ?string $panel = null, ?Model $tenant = null, bool $shouldGuessMissingParameters = false): string
app/Filament/System/Pages/Dashboard.php:41:        return parent::getUrl($parameters, $isAbsolute, $panel ?? 'system', $tenant, $shouldGuessMissingParameters);
app/Filament/System/Pages/Dashboard.php:106:    protected function getHeaderActions(): array
app/Filament/System/Pages/Dashboard.php:116:            Action::make('set_window')
app/Filament/System/Pages/Dashboard.php:132:                    $this->redirect(static::getUrl([
app/Filament/System/Pages/Dashboard.php:137:            Action::make('enter_break_glass')
app/Filament/System/Pages/Dashboard.php:171:            Action::make('exit_break_glass')
app/Filament/System/Pages/Ops/Controls.php:72:    protected function getHeaderActions(): array
app/Filament/System/Pages/Ops/Controls.php:219:        return Action::make('pause_'.$this->actionSlug($controlKey))
app/Filament/System/Pages/Ops/Controls.php:279:        return Action::make('resume_'.$this->actionSlug($controlKey))
app/Filament/System/Pages/Ops/Controls.php:327:        return Action::make('view_history_'.$this->actionSlug($controlKey))
app/Filament/System/Pages/Ops/ViewRun.php:57:    protected function getHeaderActions(): array
app/Filament/System/Pages/Ops/ViewRun.php:64:            Action::make('show_all_operations')
app/Filament/System/Pages/Ops/ViewRun.php:66:                ->url(SystemOperationRunLinks::index()),
app/Filament/System/Pages/Ops/ViewRun.php:67:            Action::make('go_to_runbooks')
app/Filament/System/Pages/Ops/ViewRun.php:69:                ->url(Runbooks::getUrl(panel: 'system')),
app/Filament/System/Pages/Ops/ViewRun.php:70:            Action::make('retry')
app/Filament/System/Pages/Ops/ViewRun.php:83:                            \Filament\Actions\Action::make('view_run')
app/Filament/System/Pages/Ops/ViewRun.php:85:                                ->url(SystemOperationRunLinks::view($retryRun)),
app/Filament/System/Pages/Ops/ViewRun.php:89:            Action::make('cancel')
app/Filament/System/Pages/Ops/ViewRun.php:113:            Action::make('mark_investigated')
app/Filament/System/Pages/Directory/ViewTenant.php:55:            ->where('managed_environment_id', (int) $this->tenant->getKey())
app/Filament/System/Pages/Directory/ViewTenant.php:77:            ->where('managed_environment_id', (int) $this->tenant->getKey())
app/Filament/System/Pages/Directory/ViewTenant.php:89:            ->where('managed_environment_id', (int) $this->tenant->getKey())
app/Filament/System/Pages/Ops/Stuck.php:90:    protected function getHeaderActions(): array
app/Filament/System/Pages/Ops/Stuck.php:93:            Action::make('show_all_operations')
app/Filament/System/Pages/Ops/Stuck.php:95:                ->url(SystemOperationRunLinks::index()),
app/Filament/System/Pages/Ops/Stuck.php:159:                Action::make('show_all_operations_empty')
app/Filament/System/Pages/Ops/Stuck.php:161:                    ->url(SystemOperationRunLinks::index())
app/Filament/System/Pages/Directory/ViewWorkspace.php:124:    protected function getHeaderActions(): array
app/Filament/System/Pages/Directory/ViewWorkspace.php:127:            Action::make('close_workspace')
app/Filament/System/Pages/Directory/ViewWorkspace.php:160:            Action::make('reopen_workspace')
app/Filament/System/Pages/Directory/ViewWorkspace.php:193:            Action::make('request_support_access')
app/Filament/System/Pages/Directory/ViewWorkspace.php:263:            Action::make('end_support_access')
app/Filament/System/Pages/Directory/ViewWorkspace.php:298:            Action::make('update_subscription_truth')
app/Filament/System/Pages/Directory/ViewWorkspace.php:409:            Action::make('change_commercial_state')
app/Filament/System/Pages/Ops/Failures.php:91:    protected function getHeaderActions(): array
app/Filament/System/Pages/Ops/Failures.php:94:            Action::make('show_all_operations')
app/Filament/System/Pages/Ops/Failures.php:96:                ->url(SystemOperationRunLinks::index()),
app/Filament/System/Pages/Ops/Failures.php:175:                Action::make('show_all_operations_empty')
app/Filament/System/Pages/Ops/Failures.php:177:                    ->url(SystemOperationRunLinks::index())
