Entwurf: tests/DokumentationsstrukturTest.php
Tests / test (push) Canceled after 0s

This commit is contained in:
dh
2026-09-10 08:04:59 +00:00
parent 19e0a7b229
commit 744a90aa91
+35
View File
@@ -0,0 +1,35 @@
<?php
declare(strict_types=1);
namespace Belevo\EnelixUtils\Tests;
use PHPUnit\Framework\TestCase;
final class DokumentationsstrukturTest extends TestCase
{
/** @return list<string> */
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);
}
}