зеркало из https://github.com/nextcloud/desktop.git
Extend Capabilities tests.
Signed-off-by: Camila Ayres <hello@camilasan.com>
This commit is contained in:
Родитель
ee032827a1
Коммит
e4b70c4037
|
@ -282,6 +282,20 @@ private slots:
|
|||
|
||||
QCOMPARE(filesLockAvailable, true);
|
||||
}
|
||||
|
||||
void testSupport_hasValidSubscription_returnTrue()
|
||||
{
|
||||
QVariantMap supportMap;
|
||||
supportMap["hasValidSubscription"] = "true";
|
||||
|
||||
QVariantMap capabilitiesMap;
|
||||
capabilitiesMap["support"] = supportMap;
|
||||
|
||||
const auto &capabilities = OCC::Capabilities(capabilitiesMap);
|
||||
const auto serverHasValidSubscription = capabilities.serverHasValidSubscription();
|
||||
|
||||
QCOMPARE(serverHasValidSubscription, true);
|
||||
}
|
||||
};
|
||||
|
||||
QTEST_GUILESS_MAIN(TestCapabilities)
|
||||
|
|
Загрузка…
Ссылка в новой задаче