diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-05-24 12:32:55 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-05-24 12:32:55 +0200 |
commit | 53df06854ffdcf164c195884783cadf8f53fea2c (patch) | |
tree | 8d03cdb72fe3de590cd2f1e5d1138004dce46754 /tests/mailtest.cpp | |
parent | 3e443520eaa3559c9f74134007f407b569f22443 (diff) | |
download | sink-53df06854ffdcf164c195884783cadf8f53fea2c.tar.gz sink-53df06854ffdcf164c195884783cadf8f53fea2c.zip |
Validate subject and mime message
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 |