TenantAtlas/apps/platform/tests/Unit/Support/TenantConfiguration/Spec415CoverageCaptureOutcomeTest.php
Ahmed Darrazi 736e61c73e
Some checks failed
PR Fast Feedback / fast-feedback (pull_request) Failing after 1m37s
feat: add generic content-backed coverage capture
2026-06-25 21:55:27 +02:00

30 lines
757 B
PHP

<?php
declare(strict_types=1);
use App\Support\TenantConfiguration\CaptureOutcome;
it('allows only the Spec 415 capture outcomes and excludes legacy gap vocabulary', function (): void {
$allowed = CaptureOutcome::values();
expect($allowed)->toBe([
'captured',
'capture_blocked_missing_contract',
'capture_blocked_permission',
'capture_blocked_beta',
'capture_blocked_unsupported',
'capture_failed',
]);
foreach ([
'policy_record_missing',
'foundation_not_policy_backed',
'meta_fallback',
'ambiguous_match',
'raw_gap_count',
'primary_gap_count',
] as $legacyOutcome) {
expect($allowed)->not->toContain($legacyOutcome);
}
});