28 lines
1.3 KiB
PHP
28 lines
1.3 KiB
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
use App\Services\TenantConfiguration\EntraCertifiedComparePackEvaluator;
|
|
use Tests\Support\TenantConfiguration\Spec425Fixtures as Spec425;
|
|
|
|
it('Spec425 does not activate customer-facing claims or customer output paths', function (): void {
|
|
Spec425::syncDefaults();
|
|
|
|
$runtimeFiles = [
|
|
app_path('Services/TenantConfiguration/EntraCertifiedComparePackEvaluator.php'),
|
|
app_path('Services/TenantConfiguration/EntraCertifiedComparePackResult.php'),
|
|
app_path('Services/TenantConfiguration/SupportedScopeResolver.php'),
|
|
app_path('Services/TenantConfiguration/ClaimGuard.php'),
|
|
];
|
|
$runtime = implode("\n", array_map(static fn (string $path): string => file_get_contents($path) ?: '', $runtimeFiles));
|
|
$scope = collect(\App\Services\TenantConfiguration\SupportedScopeResolver::defaultDefinitions())
|
|
->firstWhere('scope_key', EntraCertifiedComparePackEvaluator::SCOPE_KEY);
|
|
|
|
expect($scope['customer_claims_allowed'])->toBeFalse()
|
|
->and($scope['metadata']['claim_surface'])->toBe('internal_operator_only')
|
|
->and($runtime)->not->toContain('ReviewPack')
|
|
->and($runtime)->not->toContain('ManagementReport')
|
|
->and($runtime)->not->toContain('CustomerOutputGate')
|
|
->and($runtime)->not->toContain('customer-ready');
|
|
});
|