This commit is contained in:
@@ -225,4 +225,18 @@ return static function (TestContext $test): void {
|
||||
) === false);
|
||||
$test->assertInstanceStatus($verbraucherId);
|
||||
});
|
||||
|
||||
$test->runCase('Deaktivierung verwirft eine positive Vorgabe vollstaendig', static function (
|
||||
TestContext $test
|
||||
) use ($verbraucherId, $anforderungSenden): void {
|
||||
IPS_SetProperty($verbraucherId, 'Mindestlaufzeit', 0);
|
||||
IPS_SetProperty($verbraucherId, 'Mindesteinschaltdauer', 0);
|
||||
IPS_SetProperty($verbraucherId, 'Mindestausschaltdauer', 0);
|
||||
IPS_ApplyChanges($verbraucherId);
|
||||
$anforderungSenden(1200);
|
||||
$test->assertSame(1200, GetValue($test->objectByIdent('Sollleistung', $verbraucherId)));
|
||||
IPS_RequestAction($verbraucherId, 'Aktiv', false);
|
||||
$test->assertSame(false, GetValue($test->objectByIdent('SollwertGueltig', $verbraucherId)));
|
||||
$test->assertSame(0, GetValue($test->objectByIdent('Sollleistung', $verbraucherId)));
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user