This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user