Add related help titles and fix umlauts
Some checks failed
linter / quality (push) Has been cancelled
tests / ci (push) Has been cancelled
tests / ui (push) Has been cancelled

This commit is contained in:
Codex Agent
2026-01-23 10:05:29 +01:00
parent df5e8204fa
commit 0db0ddf3c4
5 changed files with 72 additions and 7 deletions

View File

@@ -20,5 +20,15 @@ class HelpSyncServiceTest extends TestCase
$this->assertNotEmpty($result);
Storage::disk('local')->assertExists('help/guest/en/articles.json');
Storage::disk('local')->assertExists('help/guest/de/articles.json');
Storage::disk('local')->assertExists('help/admin/en/articles.json');
$articles = json_decode(Storage::disk('local')->get('help/admin/en/articles.json'), true);
$this->assertIsArray($articles);
$controlRoom = collect($articles)->firstWhere('slug', 'control-room-moderation');
$this->assertNotNull($controlRoom);
$related = collect($controlRoom['related'] ?? [])->firstWhere('slug', 'event-prep-checklist');
$this->assertSame('Event Preparation Checklist', $related['title'] ?? null);
}
}