summaryrefslogtreecommitdiffstats
path: root/tests/maildirresourcetest.cpp
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2015-12-22 18:13:38 +0100
committerChristian Mollekopf <chrigi_1@fastmail.fm>2015-12-22 18:13:38 +0100
commitd11978620ea82d1795c9fdd65c4c79d3dd852440 (patch)
tree0269d3f9d9d87d309a7792ac502b50790ee6f319 /tests/maildirresourcetest.cpp
parent49f9b61cfdbd108c89db92c400cacdb97985025c (diff)
downloadsink-d11978620ea82d1795c9fdd65c4c79d3dd852440.tar.gz
sink-d11978620ea82d1795c9fdd65c4c79d3dd852440.zip
Added the mail date property
Diffstat (limited to 'tests/maildirresourcetest.cpp')
-rw-r--r--tests/maildirresourcetest.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/maildirresourcetest.cpp b/tests/maildirresourcetest.cpp
index 620ff04..c415a54 100644
--- a/tests/maildirresourcetest.cpp
+++ b/tests/maildirresourcetest.cpp
@@ -153,7 +153,7 @@ private Q_SLOTS:
153 { 153 {
154 Akonadi2::Query query; 154 Akonadi2::Query query;
155 query.resources << "org.kde.maildir.instance1"; 155 query.resources << "org.kde.maildir.instance1";
156 query.requestedProperties << "folder" << "subject" << "mimeMessage"; 156 query.requestedProperties << "folder" << "subject" << "mimeMessage" << "date";
157 query.syncOnDemand = true; 157 query.syncOnDemand = true;
158 query.processAll = true; 158 query.processAll = true;
159 159
@@ -166,6 +166,7 @@ private Q_SLOTS:
166 auto mail = mailModel->index(0, 0, QModelIndex()).data(Akonadi2::Store::DomainObjectRole).value<Akonadi2::ApplicationDomain::Mail::Ptr>(); 166 auto mail = mailModel->index(0, 0, QModelIndex()).data(Akonadi2::Store::DomainObjectRole).value<Akonadi2::ApplicationDomain::Mail::Ptr>();
167 QVERIFY(!mail->getProperty("subject").toString().isEmpty()); 167 QVERIFY(!mail->getProperty("subject").toString().isEmpty());
168 QVERIFY(!mail->getProperty("mimeMessage").toString().isEmpty()); 168 QVERIFY(!mail->getProperty("mimeMessage").toString().isEmpty());
169 QVERIFY(mail->getProperty("date").toDateTime().isValid());
169 } 170 }
170 171
171 172