diff --git a/tests/OptionsTest.php b/tests/OptionsTest.php index 127d6955..250b5d06 100644 --- a/tests/OptionsTest.php +++ b/tests/OptionsTest.php @@ -44,6 +44,22 @@ public function testThemes(): void } } + /** + * Test that all themes appear in the documentation (docs/themes.md) + */ + public function testThemesInDocumentation(): void + { + $themes = include "src/themes.php"; + $docContent = file_get_contents("docs/themes.md"); + foreach (array_keys($themes) as $theme) { + $this->assertStringContainsString( + "`$theme`", + $docContent, + "The theme '$theme' is missing from the documentation (docs/themes.md).", + ); + } + } + /** * Test fallback to default theme */