mirror of https://github.com/nymea/nymea.git
add states call
parent
ae507acc70
commit
ec2abdcd98
|
|
@ -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<Device*> devices = GuhCore::instance()->findConfiguredDevices(mockDeviceClassId);
|
||||
|
|
|
|||
Loading…
Reference in New Issue