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
32 lines
1.1 KiB
PHP
32 lines
1.1 KiB
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
use App\Models\AuditLog;
|
|
use App\Services\Localization\LocaleResolver;
|
|
use App\Services\Settings\SettingsWriter;
|
|
use App\Support\Audit\AuditActionId;
|
|
use Illuminate\Support\Facades\App;
|
|
|
|
it('keeps audit action identifiers and machine values invariant while UI locale is German', function (): void {
|
|
[$workspace, $user] = localizationWorkspaceMember();
|
|
|
|
App::setLocale('de');
|
|
|
|
app(SettingsWriter::class)->updateWorkspaceSetting(
|
|
actor: $user,
|
|
workspace: $workspace,
|
|
domain: LocaleResolver::SETTING_DOMAIN,
|
|
key: LocaleResolver::SETTING_DEFAULT_LOCALE,
|
|
value: 'de',
|
|
);
|
|
|
|
$audit = AuditLog::query()->latest('id')->first();
|
|
|
|
expect($audit)->not->toBeNull()
|
|
->and($audit->action)->toBe(AuditActionId::WorkspaceSettingUpdated->value)
|
|
->and(data_get($audit->metadata, 'domain'))->toBe(LocaleResolver::SETTING_DOMAIN)
|
|
->and(data_get($audit->metadata, 'key'))->toBe(LocaleResolver::SETTING_DEFAULT_LOCALE)
|
|
->and(data_get($audit->metadata, 'after_value'))->toBe('de');
|
|
});
|