Automated PR provided by Codex via Gitea API. Co-authored-by: Ahmed Darrazi <ahmed.darrazi@live.de> Reviewed-on: #482
30 lines
757 B
PHP
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);
|
|
}
|
|
});
|