From 744a90aa916ad8ea6dc14b0851ee0a809221a6dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20H=C3=A4fliger?= Date: Thu, 10 Sep 2026 08:04:59 +0000 Subject: [PATCH] Entwurf: tests/DokumentationsstrukturTest.php --- tests/DokumentationsstrukturTest.php | 35 ++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 tests/DokumentationsstrukturTest.php diff --git a/tests/DokumentationsstrukturTest.php b/tests/DokumentationsstrukturTest.php new file mode 100644 index 0000000..541884e --- /dev/null +++ b/tests/DokumentationsstrukturTest.php @@ -0,0 +1,35 @@ + */ + public function modulReadmes(): array + { + return [ + 'Abrechnungsmanager', + 'Virtuelle-Batterie', + 'CC100-Hardware', + 'Energiediagramm', + 'VGT-Schnittstelle', + 'Shelly-Modul', + ]; + } + + /** @dataProvider modulReadmes */ + public function testJederModulentwurfHatEinReadme(string $modul): void + { + $pfad = __DIR__ . '/../docs/module/' . $modul . '/README.md'; + self::assertFileExists($pfad); + + $inhalt = file_get_contents($pfad); + self::assertNotFalse($inhalt); + self::assertStringContainsString('Status: Diskussionsentwurf', $inhalt); + self::assertStringContainsString('Properties', $inhalt); + } +}