diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-09-13 12:42:31 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-09-13 12:42:31 +0200 |
commit | c12a9a09da59b9e418316dba02e6215cb55e47ee (patch) | |
tree | 05498d9a42e399bcca787f40c1fc473fb09e680e /tests/mailtest.cpp | |
parent | 55fe06979ceebe67553135b43aa47e70d931304b (diff) | |
parent | ebdb89b8bb482bbb5ecd544c3d38bef35fc7d820 (diff) | |
download | sink-c12a9a09da59b9e418316dba02e6215cb55e47ee.tar.gz sink-c12a9a09da59b9e418316dba02e6215cb55e47ee.zip |
Merge commit 'ebdb89b8bb482bbb5ecd544c3d38bef35fc7d820'v0.4.0
Diffstat (limited to 'tests/mailtest.cpp')
-rw-r--r-- | tests/mailtest.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/mailtest.cpp b/tests/mailtest.cpp index cbb56d5..93d3ce3 100644 --- a/tests/mailtest.cpp +++ b/tests/mailtest.cpp | |||
@@ -328,6 +328,15 @@ void MailTest::testMarkMailAsRead() | |||
328 | return KAsync::null<void>(); | 328 | return KAsync::null<void>(); |
329 | }); | 329 | }); |
330 | VERIFYEXEC(job2); | 330 | VERIFYEXEC(job2); |
331 | |||
332 | //Verify we can mark the mail as unread again | ||
333 | { | ||
334 | auto readMail = Store::readOne<Mail>(Query{mail}); | ||
335 | readMail.setUnread(true); | ||
336 | VERIFYEXEC(Store::modify(readMail)); | ||
337 | VERIFYEXEC(ResourceControl::flushReplayQueue(mResourceInstanceIdentifier)); | ||
338 | VERIFYEXEC(ResourceControl::inspect<Mail>(ResourceControl::Inspection::PropertyInspection(readMail, Mail::Unread::name, true))); | ||
339 | } | ||
331 | } | 340 | } |
332 | 341 | ||
333 | void MailTest::testCreateDraft() | 342 | void MailTest::testCreateDraft() |