TenantAtlas/apps/platform/tests/Feature/TenantConfiguration/Spec427ExchangeTeamsNoTenantIdTest.php
ahmido bfb52b84d6 feat: implement spec 427 source contract enablement (#494)
Automated PR for spec 427 Exchange Teams verified source contract enablement.

Co-authored-by: Ahmed Darrazi <ahmed.darrazi@live.de>
Reviewed-on: #494
2026-07-03 23:12:45 +00:00

28 lines
1.1 KiB
PHP

<?php
declare(strict_types=1);
use Illuminate\Support\Facades\Schema;
it('Spec427 does not introduce tenant_id platform ownership for Exchange and Teams contract state', function (): void {
foreach (['tenant_configuration_resources', 'tenant_configuration_resource_evidence', 'tenant_configuration_resource_types'] as $table) {
expect(Schema::getColumnListing($table))
->not->toContain('tenant_id')
->not->toContain('provider_tenant_id')
->not->toContain('entra_tenant_id');
}
$content = collect([
app_path('Services/TenantConfiguration/CoverageSourceContractDecision.php'),
app_path('Services/TenantConfiguration/CoverageSourceContractResolver.php'),
app_path('Services/TenantConfiguration/CoverageIdentityStrategyRegistry.php'),
app_path('Services/TenantConfiguration/GenericContentEvidenceCaptureService.php'),
])->map(fn (string $file): string => file_get_contents($file) ?: '')
->implode("\n");
expect($content)
->not->toContain('tenant_id')
->not->toContain('provider_tenant_id')
->not->toContain('entra_tenant_id');
});