diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-02-11 17:02:40 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-02-11 17:02:40 +0100 |
commit | 7af2d3ac28311917eabd1b7c0ae07fffdf401b2f (patch) | |
tree | c362f642a167e6189450aeb370c05f93f361d873 /tests/maildirresourcetest.cpp | |
parent | 4bb71b2142223d4a81a449c6bfcfa22918c6fc90 (diff) | |
download | sink-7af2d3ac28311917eabd1b7c0ae07fffdf401b2f.tar.gz sink-7af2d3ac28311917eabd1b7c0ae07fffdf401b2f.zip |
Import new mails as well
Diffstat (limited to 'tests/maildirresourcetest.cpp')
-rw-r--r-- | tests/maildirresourcetest.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/maildirresourcetest.cpp b/tests/maildirresourcetest.cpp index 28a1d44..eefe1e9 100644 --- a/tests/maildirresourcetest.cpp +++ b/tests/maildirresourcetest.cpp | |||
@@ -205,7 +205,7 @@ private Q_SLOTS: | |||
205 | 205 | ||
206 | auto mailModel = Sink::Store::loadModel<Sink::ApplicationDomain::Mail>(query); | 206 | auto mailModel = Sink::Store::loadModel<Sink::ApplicationDomain::Mail>(query); |
207 | QTRY_VERIFY(mailModel->data(QModelIndex(), Sink::Store::ChildrenFetchedRole).toBool()); | 207 | QTRY_VERIFY(mailModel->data(QModelIndex(), Sink::Store::ChildrenFetchedRole).toBool()); |
208 | QCOMPARE(mailModel->rowCount(QModelIndex()), 2); | 208 | QCOMPARE(mailModel->rowCount(QModelIndex()), 3); |
209 | } | 209 | } |
210 | 210 | ||
211 | void testSyncMailRemoval() | 211 | void testSyncMailRemoval() |
@@ -228,7 +228,7 @@ private Q_SLOTS: | |||
228 | 228 | ||
229 | auto mailModel = Sink::Store::loadModel<Sink::ApplicationDomain::Mail>(query); | 229 | auto mailModel = Sink::Store::loadModel<Sink::ApplicationDomain::Mail>(query); |
230 | QTRY_VERIFY(mailModel->data(QModelIndex(), Sink::Store::ChildrenFetchedRole).toBool()); | 230 | QTRY_VERIFY(mailModel->data(QModelIndex(), Sink::Store::ChildrenFetchedRole).toBool()); |
231 | QCOMPARE(mailModel->rowCount(QModelIndex()), 1); | 231 | QCOMPARE(mailModel->rowCount(QModelIndex()), 2); |
232 | } | 232 | } |
233 | 233 | ||
234 | void testCreateFolder() | 234 | void testCreateFolder() |