diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-10-05 00:09:30 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-10-05 00:09:30 +0200 |
commit | e470f65cad943f8a3065c6f5f6287adcc704627e (patch) | |
tree | 3bc3531b0f32b67d09cdc281f5f53bdf1d819bd7 /tests/querytest.cpp | |
parent | 3ae3ef9676bd7fdcb45064f9a1b397c90478b4b7 (diff) | |
download | sink-e470f65cad943f8a3065c6f5f6287adcc704627e.tar.gz sink-e470f65cad943f8a3065c6f5f6287adcc704627e.zip |
Specify base set as part of the filter stages in the query.
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); |