This commit is contained in:
@@ -24,6 +24,38 @@ return static function (TestContext $test): void {
|
||||
);
|
||||
});
|
||||
|
||||
$test->runCase('SignalR-Abbruch synchronisiert den Gatewaystatus', static function (
|
||||
TestContext $test
|
||||
) use ($gateway): void {
|
||||
IPS_RequestAction(
|
||||
$gateway,
|
||||
'TestSignalRFrame',
|
||||
json_encode(['type' => 7], JSON_THROW_ON_ERROR)
|
||||
);
|
||||
|
||||
$test->assertInstanceStatus($gateway, 203);
|
||||
$test->assertSame(
|
||||
false,
|
||||
GetValue($test->objectByIdent('Connected', $gateway))
|
||||
);
|
||||
$test->assertSame(
|
||||
'Easee-Ereignisverbindung wurde beendet.',
|
||||
GetValue($test->objectByIdent('LastError', $gateway))
|
||||
);
|
||||
|
||||
IPS_RequestAction($gateway, 'TestSignalRFrame', '{}');
|
||||
|
||||
$test->assertInstanceStatus($gateway);
|
||||
$test->assertSame(
|
||||
true,
|
||||
GetValue($test->objectByIdent('Connected', $gateway))
|
||||
);
|
||||
$test->assertSame(
|
||||
'',
|
||||
GetValue($test->objectByIdent('LastError', $gateway))
|
||||
);
|
||||
});
|
||||
|
||||
$test->runCase('Abonnement liefert injizierten API-Zustand', static function (
|
||||
TestContext $test
|
||||
) use ($gateway): void {
|
||||
|
||||
@@ -184,6 +184,32 @@ return static function (TestContext $test): void {
|
||||
$test->assertInstanceStatus($station);
|
||||
});
|
||||
|
||||
$test->runCase('SignalR-Abbruch erreicht die Ladestation', static function (
|
||||
TestContext $test
|
||||
) use ($gateway, $station): void {
|
||||
IPS_RequestAction(
|
||||
$gateway,
|
||||
'TestSignalRFrame',
|
||||
json_encode(['type' => 7], JSON_THROW_ON_ERROR)
|
||||
);
|
||||
|
||||
$test->assertInstanceStatus($gateway, 203);
|
||||
$test->assertInstanceStatus($station, 202);
|
||||
$test->assertSame(
|
||||
false,
|
||||
GetValue($test->objectByIdent('GatewayVerbunden', $station))
|
||||
);
|
||||
|
||||
IPS_RequestAction($gateway, 'TestSignalRFrame', '{}');
|
||||
|
||||
$test->assertInstanceStatus($gateway);
|
||||
$test->assertInstanceStatus($station);
|
||||
$test->assertSame(
|
||||
true,
|
||||
GetValue($test->objectByIdent('GatewayVerbunden', $station))
|
||||
);
|
||||
});
|
||||
|
||||
$test->runCase('Gateway-Ausfall verwirft Fahrzeug- und Phasenstatus', static function (
|
||||
TestContext $test
|
||||
) use ($gateway, $station): void {
|
||||
|
||||
Reference in New Issue
Block a user