Include setOnActivity in the test

This commit is contained in:
David Edmundson 2016-08-12 12:39:54 +01:00
parent 628fe79d3e
commit 6c8f0e6cc0

View file

@ -130,6 +130,10 @@ void ActivitiesTest::testSetOnActivitiesValidates()
QVERIFY(!Activities::self()->all().contains(QStringLiteral("bar")));
//setting the client to an invalid activities should result in the client being on all activities
client->setOnActivity(QStringLiteral("foo"), true);
QVERIFY(client->isOnAllActivities());
QVERIFY(!client->activities().contains(QLatin1String("foo")));
client->setOnActivities(QStringList{QStringLiteral("foo"), QStringLiteral("bar")});
QVERIFY(client->isOnAllActivities());
QVERIFY(!client->activities().contains(QLatin1String("foo")));