diff options
Diffstat (limited to 'tests/mailtest.cpp')
-rw-r--r-- | tests/mailtest.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/mailtest.cpp b/tests/mailtest.cpp index c3b33bc..3ca8eaa 100644 --- a/tests/mailtest.cpp +++ b/tests/mailtest.cpp | |||
@@ -153,13 +153,13 @@ void MailTest::testCreateModifyDeleteMail() | |||
153 | VERIFYEXEC(Store::create(mail)); | 153 | VERIFYEXEC(Store::create(mail)); |
154 | VERIFYEXEC(ResourceControl::flushMessageQueue(query.resources)); | 154 | VERIFYEXEC(ResourceControl::flushMessageQueue(query.resources)); |
155 | { | 155 | { |
156 | auto job = Store::fetchAll<Mail>(Query::RequestedProperties(QByteArrayList() << Mail::Folder::name << Mail::Subject::name)) | 156 | auto job = Store::fetchAll<Mail>(Query::RequestedProperties(QByteArrayList() << Mail::Folder::name << Mail::Subject::name << Mail::MimeMessage::name)) |
157 | .then<void, QList<Mail::Ptr>>([=](const QList<Mail::Ptr> &mails) { | 157 | .then<void, QList<Mail::Ptr>>([=](const QList<Mail::Ptr> &mails) { |
158 | QCOMPARE(mails.size(), 1); | 158 | QCOMPARE(mails.size(), 1); |
159 | auto mail = *mails.first(); | 159 | auto mail = *mails.first(); |
160 | // QCOMPARE(mail.getSubject(), subject); | 160 | QCOMPARE(mail.getSubject(), subject); |
161 | QCOMPARE(mail.getFolder(), folder.identifier()); | 161 | QCOMPARE(mail.getFolder(), folder.identifier()); |
162 | // TODO test access to mime message | 162 | QVERIFY(QFile(mail.getMimeMessagePath()).exists()); |
163 | 163 | ||
164 | // return Store::remove(*mail) | 164 | // return Store::remove(*mail) |
165 | // .then(ResourceControl::flushReplayQueue(query.resources)) // The change needs to be replayed already | 165 | // .then(ResourceControl::flushReplayQueue(query.resources)) // The change needs to be replayed already |