Automated PR for spec 426 exchange teams core evidence identity readiness. Includes service changes and coverage/requirement/spec updates from commit fb4dc20c.
Co-authored-by: Ahmed Darrazi <ahmed.darrazi@live.de>
Reviewed-on: #493
30 lines
1.1 KiB
PHP
30 lines
1.1 KiB
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
use Illuminate\Support\Facades\Schema;
|
|
|
|
it('Spec426 keeps Exchange and Teams evidence scoped by workspace and managed environment without tenant_id columns', 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');
|
|
}
|
|
|
|
$runtimeFiles = [
|
|
app_path('Services/TenantConfiguration/CoverageSourceContractResolver.php'),
|
|
app_path('Services/TenantConfiguration/CoverageIdentityStrategyRegistry.php'),
|
|
app_path('Services/TenantConfiguration/GenericContentEvidenceCaptureService.php'),
|
|
];
|
|
|
|
$content = collect($runtimeFiles)
|
|
->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');
|
|
});
|