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

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);
}
});