summaryrefslogtreecommitdiffstats
path: root/tests/teststore.cpp
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2018-01-11 14:39:57 +0100
committerChristian Mollekopf <chrigi_1@fastmail.fm>2018-01-11 14:40:19 +0100
commit89231902b7fa7d8c9143ebc775dc25013294f6a4 (patch)
tree048953157117b83ff9c940d79332aa6a8881eb59 /tests/teststore.cpp
parent89f004a0cdc58056b93e5ef8d43969c99f8d743d (diff)
downloadkube-89231902b7fa7d8c9143ebc775dc25013294f6a4.tar.gz
kube-89231902b7fa7d8c9143ebc775dc25013294f6a4.zip
More conversationview testing
Diffstat (limited to 'tests/teststore.cpp')
-rw-r--r--tests/teststore.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/teststore.cpp b/tests/teststore.cpp
index 294aca8f..4716fa2e 100644
--- a/tests/teststore.cpp
+++ b/tests/teststore.cpp
@@ -168,6 +168,17 @@ QVariant TestStore::load(const QByteArray &type, const QVariantMap &filter)
168 } 168 }
169 return {}; 169 return {};
170 } 170 }
171 if (type == "folder") {
172 Sink::Query query;
173 if (filter.contains("resource")) {
174 query.resourceFilter(filter.value("resource").toByteArray());
175 }
176 auto list = Sink::Store::read<Folder>(query);
177 if (!list.isEmpty()) {
178 return QVariant::fromValue(Folder::Ptr::create(list.first()));
179 }
180 return {};
181 }
171 182
172 Q_ASSERT(false); 183 Q_ASSERT(false);
173 return {}; 184 return {};