summaryrefslogtreecommitdiffstats
path: root/tests/dummyresourcetest.cpp
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2015-12-06 19:02:20 +0100
committerChristian Mollekopf <chrigi_1@fastmail.fm>2015-12-06 19:02:20 +0100
commitcb657315068a57a05300d0f25dba3b27db9f57cb (patch)
tree75b45e421df0be6b2307c74663d1dc1de30d2b1b /tests/dummyresourcetest.cpp
parent303a3cf5ba48dd9857a1fb9600cedd604c71de8d (diff)
downloadsink-cb657315068a57a05300d0f25dba3b27db9f57cb.tar.gz
sink-cb657315068a57a05300d0f25dba3b27db9f57cb.zip
Use Akonadi2::Store::ChildrenFetchedRole
Diffstat (limited to 'tests/dummyresourcetest.cpp')
-rw-r--r--tests/dummyresourcetest.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/dummyresourcetest.cpp b/tests/dummyresourcetest.cpp
index b8711a2..0e1f382 100644
--- a/tests/dummyresourcetest.cpp
+++ b/tests/dummyresourcetest.cpp
@@ -239,7 +239,7 @@ private Q_SLOTS:
239 //Test remove 239 //Test remove
240 { 240 {
241 auto model = Akonadi2::Store::loadModel<Akonadi2::ApplicationDomain::Event>(query); 241 auto model = Akonadi2::Store::loadModel<Akonadi2::ApplicationDomain::Event>(query);
242 //TODO ensure the initial query is done 242 QTRY_VERIFY(model->data(QModelIndex(), Akonadi2::Store::ChildrenFetchedRole).toBool());
243 QTRY_COMPARE(model->rowCount(QModelIndex()), 0); 243 QTRY_COMPARE(model->rowCount(QModelIndex()), 0);
244 } 244 }
245 } 245 }
@@ -255,7 +255,7 @@ private Q_SLOTS:
255 query.propertyFilter.insert("uid", "testuid"); 255 query.propertyFilter.insert("uid", "testuid");
256 256
257 auto model = Akonadi2::Store::loadModel<Akonadi2::ApplicationDomain::Event>(query); 257 auto model = Akonadi2::Store::loadModel<Akonadi2::ApplicationDomain::Event>(query);
258 //TODO ensure the initial query is done 258 QTRY_VERIFY(model->data(QModelIndex(), Akonadi2::Store::ChildrenFetchedRole).toBool());
259 259
260 Akonadi2::ApplicationDomain::Event event("org.kde.dummy.instance1"); 260 Akonadi2::ApplicationDomain::Event event("org.kde.dummy.instance1");
261 event.setProperty("uid", "testuid"); 261 event.setProperty("uid", "testuid");