Include setOnActivity in the test
This commit is contained in:
parent
628fe79d3e
commit
6c8f0e6cc0
1 changed files with 4 additions and 0 deletions
|
@ -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")));
|
||||
|
|
Loading…
Reference in a new issue