Add related help titles and fix umlauts
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user