Files
Enelix-Utils/tests/DokumentationsstrukturTest.php
T
2026-09-10 08:04:59 +00:00

36 lines
932 B
PHP

<?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);
}
}