diff options
Diffstat (limited to 'tests/querytest.cpp')
-rw-r--r-- | tests/querytest.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/querytest.cpp b/tests/querytest.cpp index 6348316..db17026 100644 --- a/tests/querytest.cpp +++ b/tests/querytest.cpp | |||
@@ -164,8 +164,8 @@ private slots: | |||
164 | 164 | ||
165 | // Test | 165 | // Test |
166 | Sink::Query query; | 166 | Sink::Query query; |
167 | query.resources << "sink.dummy.instance1"; | 167 | query.filter(SinkResource("sink.dummy.instance1")); |
168 | query.ids << id; | 168 | query.filter(id); |
169 | auto model = Sink::Store::loadModel<Mail>(query); | 169 | auto model = Sink::Store::loadModel<Mail>(query); |
170 | QTRY_VERIFY(model->data(QModelIndex(), Sink::Store::ChildrenFetchedRole).toBool()); | 170 | QTRY_VERIFY(model->data(QModelIndex(), Sink::Store::ChildrenFetchedRole).toBool()); |
171 | QCOMPARE(model->rowCount(), 1); | 171 | QCOMPARE(model->rowCount(), 1); |