fix(ladestation): Solarpause nicht als Ladeende erkennen
This commit is contained in:
@@ -61,6 +61,22 @@ return static function (TestContext $test): void {
|
||||
);
|
||||
}
|
||||
|
||||
$solarPause = $test->createInstance(
|
||||
'{0D94913C-0F31-4C29-A685-6EB4AE58E55D}',
|
||||
'Ladestation Solarpause',
|
||||
[
|
||||
'Geraetetyp' => 1,
|
||||
'Geraeteadresse' => '192.0.2.12',
|
||||
'MaximalerLadestrom' => 16,
|
||||
'Ladefreigabe' => true,
|
||||
'Solarladen' => true,
|
||||
'EinstellungenInVisu' => true,
|
||||
'DiagnosevariablenAnzeigen' => true,
|
||||
'Testmodus' => true,
|
||||
'Testantwort' => $goEAntwort(2, 0),
|
||||
]
|
||||
);
|
||||
|
||||
$managerId = $test->createInstance(
|
||||
'{6F771B18-59D4-4C8A-B951-3B2FE9F6A2C4}',
|
||||
'Hilfsmanager Ladestation',
|
||||
@@ -120,6 +136,21 @@ return static function (TestContext $test): void {
|
||||
}
|
||||
});
|
||||
|
||||
$test->runCase('Solarpause wird nicht als Ladeende erkannt', static function (
|
||||
TestContext $test
|
||||
) use ($solarPause): void {
|
||||
IPS_RequestAction($solarPause, 'Solarladen', true);
|
||||
|
||||
$test->assertSame(
|
||||
false,
|
||||
GetValue($test->objectByIdent('FahrzeugGeladen', $solarPause))
|
||||
);
|
||||
$test->assertSame(
|
||||
2,
|
||||
GetValue($test->objectByIdent('Fahrzeugstatus', $solarPause))
|
||||
);
|
||||
});
|
||||
|
||||
$test->runCase('Solar- und Peakbetrieb liefern die Enelix-1-Angebote', static function (
|
||||
TestContext $test
|
||||
) use ($stationen, $anforderungSenden): void {
|
||||
|
||||
Reference in New Issue
Block a user