TenantAtlas/apps/platform/tests/Feature/TenantConfiguration/Spec415NoLegacyNoUiActivationTest.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

29 lines
1.1 KiB
PHP

<?php
declare(strict_types=1);
use App\Support\TenantConfiguration\CaptureOutcome;
use Illuminate\Support\Facades\Schema;
it('keeps Spec 415 inactive for UI and excludes legacy ownership and outcome vocabulary', function (): void {
expect(Schema::hasColumn('tenant_configuration_resources', 'tenant_id'))->toBeFalse()
->and(Schema::hasColumn('tenant_configuration_resource_evidence', 'tenant_id'))->toBeFalse();
$changedUiFiles = collect(glob(base_path('app/Filament/**/*'), GLOB_BRACE))
->merge(glob(base_path('resources/views/**/*'), GLOB_BRACE))
->filter(static fn (string $path): bool => is_file($path) && str_contains(file_get_contents($path) ?: '', 'tenant_configuration.capture'));
expect($changedUiFiles->all())->toBe([]);
foreach ([
'policy_record_missing',
'foundation_not_policy_backed',
'meta_fallback',
'ambiguous_match',
'raw_gap_count',
'primary_gap_count',
] as $legacyOutcome) {
expect(CaptureOutcome::values())->not->toContain($legacyOutcome);
}
});