TenantAtlas/apps/platform/tests/Feature/TenantConfiguration/Spec420M365NoTenantIdTest.php
Ahmed Darrazi 9405058433
Some checks failed
PR Fast Feedback / fast-feedback (pull_request) Failing after 5m46s
feat: complete m365 generic evidence coverage pack
2026-06-27 13:00:22 +02:00

29 lines
1.2 KiB
PHP

<?php
declare(strict_types=1);
use Illuminate\Support\Facades\Schema;
it('Spec420 keeps Coverage v2 ownership on workspace and managed environment, not tenant_id', function (): void {
foreach ([
'tenant_configuration_resources',
'tenant_configuration_resource_evidence',
'tenant_configuration_resource_types',
'tenant_configuration_supported_scopes',
] as $table) {
expect(Schema::getColumnListing($table))->not->toContain('tenant_id');
}
$source = collect([
app_path('Services/TenantConfiguration/CoverageSourceContractResolver.php'),
app_path('Services/TenantConfiguration/GenericContentEvidenceCaptureService.php'),
app_path('Services/TenantConfiguration/CoverageResourceUpserter.php'),
app_path('Services/TenantConfiguration/CoverageEvidenceWriter.php'),
app_path('Services/TenantConfiguration/StartTenantConfigurationCapture.php'),
app_path('Jobs/TenantConfiguration/CaptureTenantConfigurationEvidenceJob.php'),
])->map(fn (string $file): string => file_get_contents($file) ?: '')
->implode("\n");
expect($source)->not->toContain('tenant_id');
});