diff options
Diffstat (limited to 'tests/dummyresourcetest.cpp')
-rw-r--r-- | tests/dummyresourcetest.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/dummyresourcetest.cpp b/tests/dummyresourcetest.cpp index e3b3f07..a28e071 100644 --- a/tests/dummyresourcetest.cpp +++ b/tests/dummyresourcetest.cpp | |||
@@ -164,6 +164,21 @@ private Q_SLOTS: | |||
164 | qDebug() << value->getProperty("summary").toString(); | 164 | qDebug() << value->getProperty("summary").toString(); |
165 | } | 165 | } |
166 | 166 | ||
167 | void testSyncAndFacadeMail() | ||
168 | { | ||
169 | Akonadi2::Query query; | ||
170 | query.resources << "org.kde.dummy.instance1"; | ||
171 | query.syncOnDemand = true; | ||
172 | query.processAll = true; | ||
173 | |||
174 | async::SyncListResult<Akonadi2::ApplicationDomain::Mail::Ptr> result(Akonadi2::Store::load<Akonadi2::ApplicationDomain::Mail>(query)); | ||
175 | result.exec(); | ||
176 | QVERIFY(!result.isEmpty()); | ||
177 | auto value = result.first(); | ||
178 | QVERIFY(!value->getProperty("subject").toString().isEmpty()); | ||
179 | qDebug() << value->getProperty("subject").toString(); | ||
180 | } | ||
181 | |||
167 | void testWriteModifyDelete() | 182 | void testWriteModifyDelete() |
168 | { | 183 | { |
169 | Akonadi2::ApplicationDomain::Event event; | 184 | Akonadi2::ApplicationDomain::Event event; |