From ec2abdcd98611070844aced34b81efdacb1c9df2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20St=C3=BCrz?= Date: Thu, 10 Dec 2015 15:04:36 +0100 Subject: [PATCH] add states call --- tests/auto/states/teststates.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/tests/auto/states/teststates.cpp b/tests/auto/states/teststates.cpp index e3e633d7..681451c9 100644 --- a/tests/auto/states/teststates.cpp +++ b/tests/auto/states/teststates.cpp @@ -39,11 +39,20 @@ class TestStates: public GuhTestBase Q_OBJECT private slots: + void getStateTypes(); + void getStateValue_data(); void getStateValue(); - }; +void TestStates::getStateTypes() +{ + QVariantMap params; + params.insert("deviceId", m_mockDeviceId); + QVariant response = injectAndWait("Devices.GetStateValues", params); + verifyDeviceError(response); +} + void TestStates::getStateValue_data() { QList devices = GuhCore::instance()->findConfiguredDevices(mockDeviceClassId);