Commit 6c8f0e6c authored by David Edmundson's avatar David Edmundson
Browse files

Include setOnActivity in the test

parent 628fe79d
......@@ -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")));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment