diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-05-01 16:22:55 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-05-01 16:22:55 +0200 |
commit | 096d14f20f4dc39d20d35d605ca755b66bd48cf9 (patch) | |
tree | 4b28dd3b310ebcfa9cefa1b41992eeefa5456764 /tests/maildirresourcetest.cpp | |
parent | c1475df297975b403d991f69ef9436cd576c1e46 (diff) | |
download | sink-096d14f20f4dc39d20d35d605ca755b66bd48cf9.tar.gz sink-096d14f20f4dc39d20d35d605ca755b66bd48cf9.zip |
Account filter for resources and contains comparator in query
Diffstat (limited to 'tests/maildirresourcetest.cpp')
-rw-r--r-- | tests/maildirresourcetest.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/maildirresourcetest.cpp b/tests/maildirresourcetest.cpp index b5c1c3c..9b014e3 100644 --- a/tests/maildirresourcetest.cpp +++ b/tests/maildirresourcetest.cpp | |||
@@ -265,7 +265,7 @@ private slots: | |||
265 | 265 | ||
266 | Sink::Query folderQuery; | 266 | Sink::Query folderQuery; |
267 | folderQuery.resources << "org.kde.maildir.instance1"; | 267 | folderQuery.resources << "org.kde.maildir.instance1"; |
268 | folderQuery.propertyFilter.insert("name", "testCreateFolder"); | 268 | folderQuery += Sink::Query::PropertyFilter("name", "testCreateFolder"); |
269 | auto model = Sink::Store::loadModel<Sink::ApplicationDomain::Folder>(folderQuery); | 269 | auto model = Sink::Store::loadModel<Sink::ApplicationDomain::Folder>(folderQuery); |
270 | QTRY_VERIFY(model->data(QModelIndex(), Sink::Store::ChildrenFetchedRole).toBool()); | 270 | QTRY_VERIFY(model->data(QModelIndex(), Sink::Store::ChildrenFetchedRole).toBool()); |
271 | QCOMPARE(model->rowCount(QModelIndex()), 1); | 271 | QCOMPARE(model->rowCount(QModelIndex()), 1); |