Some checks failed
PR Fast Feedback / fast-feedback (pull_request) Failing after 51s
## Summary - decommission the legacy findings lifecycle backfill substrate across command, job, service, and UI layers - remove related platform capabilities, operation catalog entries, and action surface exemptions - add regression and removal verification tests to ensure runtime integrity and surface absence - include spec, plan, tasks, and data-model artifacts for the removal slice ## Scope - active spec: specs/253-remove-findings-backfill-runtime-surfaces - target branch: dev ## Validation - integrated regression and removal verification tests for console, findings, and system ops surfaces - audit log and capability trace verification for the removal path Co-authored-by: Ahmed Darrazi <ahmed.darrazi@live.de> Reviewed-on: #294
24 lines
872 B
PHP
24 lines
872 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
use Illuminate\Support\Facades\App;
|
|
use Illuminate\Support\Facades\Lang;
|
|
|
|
it('falls back to English for missing German translation lines', function (): void {
|
|
Lang::addLines(['localization.fallback_probe' => 'English fallback probe'], 'en');
|
|
|
|
App::setFallbackLocale('en');
|
|
App::setLocale('de');
|
|
|
|
expect(__('localization.fallback_probe'))->toBe('English fallback probe');
|
|
});
|
|
|
|
it('does not expose raw translation keys for supported first-wave catalogs', function (): void {
|
|
App::setLocale('de');
|
|
|
|
expect(__('localization.auth.sign_in_microsoft'))->not->toBe('localization.auth.sign_in_microsoft')
|
|
->and(__('baseline-compare.button_view_findings'))->not->toBe('baseline-compare.button_view_findings')
|
|
->and(__('findings.rbac.restore_unsupported'))->not->toBe('findings.rbac.restore_unsupported');
|
|
});
|