Skip to content

Commit 206b815

Browse files
committed
Extend capabilities test to include desktopEnterpriseChannel check.
Signed-off-by: Camila Ayres <[email protected]>
1 parent bf23b94 commit 206b815

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

test/testcapabilities.cpp

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,21 @@ private slots:
296296

297297
QCOMPARE(serverHasValidSubscription, true);
298298
}
299+
300+
void testSupport_desktopEnterpriseChannel_returnString()
301+
{
302+
QVariantMap supportMap;
303+
const auto defaultChannel = "stable";
304+
supportMap["desktopEnterpriseChannel"] = defaultChannel;
305+
306+
QVariantMap capabilitiesMap;
307+
capabilitiesMap["support"] = supportMap;
308+
309+
const auto &capabilities = OCC::Capabilities(capabilitiesMap);
310+
const auto enterpriseChannel = capabilities.desktopEnterpriseChannel();
311+
312+
QCOMPARE(enterpriseChannel, defaultChannel);
313+
}
299314
};
300315

301316
QTEST_GUILESS_MAIN(TestCapabilities)

0 commit comments

Comments
 (0)