From 55cd1b08181bbb294535a616ac811fed8e08715a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wojciech=20Fr=C4=85cz?= Date: Thu, 28 Mar 2024 19:08:52 +0100 Subject: [PATCH] Adjust HVAC tests to new schedule restrictions --- .../Tests/Integration/Model/HvacIntegrationTest.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/SuplaBundle/Tests/Integration/Model/HvacIntegrationTest.php b/src/SuplaBundle/Tests/Integration/Model/HvacIntegrationTest.php index 61df1e4b1..856fafa3c 100644 --- a/src/SuplaBundle/Tests/Integration/Model/HvacIntegrationTest.php +++ b/src/SuplaBundle/Tests/Integration/Model/HvacIntegrationTest.php @@ -626,8 +626,7 @@ public function testCreatingNewScheduleForHvac() { $client = $this->createAuthenticatedClient(); $client->apiRequest(Request::METHOD_POST, '/api/schedules', [ 'channelId' => $this->hvacChannel->getId(), - 'actionId' => ChannelFunctionAction::HVAC_SET_TEMPERATURE, - 'actionParam' => ['temperature' => 22.5], + 'actionId' => ChannelFunctionAction::HVAC_SWITCH_TO_PROGRAM_MODE, 'mode' => ScheduleMode::ONCE, 'timeExpression' => '2 2 * * *', ]); @@ -636,8 +635,7 @@ public function testCreatingNewScheduleForHvac() { $this->assertGreaterThan(0, $scheduleFromResponse['id']); $config = $scheduleFromResponse['config'][0]; $this->assertEquals('2 2 * * *', $config['crontab']); - $this->assertEquals(ChannelFunctionAction::HVAC_SET_TEMPERATURE, $config['action']['id']); - $this->assertEquals(['temperature' => 22.5], $config['action']['param']); + $this->assertEquals(ChannelFunctionAction::HVAC_SWITCH_TO_PROGRAM_MODE, $config['action']['id']); } /** @dataProvider stateExamples */