This commit is contained in:
@@ -83,6 +83,30 @@ final class BatterieModulstrukturTest extends TestCase
|
||||
}
|
||||
}
|
||||
|
||||
public function testNachladebegrenzungIstImFormularKonfigurierbar(): void
|
||||
{
|
||||
$modul = (string) file_get_contents(self::MODULPFAD . 'module.php');
|
||||
$formular = (string) file_get_contents(self::MODULPFAD . 'form.json');
|
||||
|
||||
self::assertStringContainsString(
|
||||
"RegisterPropertyBoolean('NachladenMitMaximalleistung', true)",
|
||||
$modul
|
||||
);
|
||||
self::assertStringContainsString(
|
||||
"RegisterPropertyInteger('MaximaleNachladeleistung', 0)",
|
||||
$modul
|
||||
);
|
||||
self::assertStringContainsString(
|
||||
"'FormNachladenMitMaximalleistung'",
|
||||
$formular
|
||||
);
|
||||
self::assertStringContainsString(
|
||||
'"name": "MaximaleNachladeleistung"',
|
||||
$formular
|
||||
);
|
||||
self::assertStringContainsString('"suffix": " W"', $formular);
|
||||
}
|
||||
|
||||
public function testLoggingDiagnoseUndAktionsbuttonsSindVorhanden(): void
|
||||
{
|
||||
$modul = (string) file_get_contents(self::MODULPFAD . 'module.php');
|
||||
|
||||
Reference in New Issue
Block a user