TenantAtlas/apps/platform/tests/Unit/Support/TenantConfiguration/Spec415CoverageCaptureOutcomeTest.php
ahmido ca0f54614d feat: add generic content-backed coverage capture (#482)
Automated PR provided by Codex via Gitea API.

Co-authored-by: Ahmed Darrazi <ahmed.darrazi@live.de>
Reviewed-on: #482
2026-06-25 19:55:52 +00: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);
}
});