diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-07-07 11:57:43 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-07-07 11:57:43 +0200 |
commit | 7ac1e222090ecfaa27ea8de2950e8c98a5033137 (patch) | |
tree | 6ec7b73d27d07a8e84579b68312b070f9c89832c /tests/mailsynctest.cpp | |
parent | e3da13d1fe9ad623e05aec1977c813e7da37cedd (diff) | |
download | sink-7ac1e222090ecfaa27ea8de2950e8c98a5033137.tar.gz sink-7ac1e222090ecfaa27ea8de2950e8c98a5033137.zip |
Fix imap tests after trash addition
Diffstat (limited to 'tests/mailsynctest.cpp')
-rw-r--r-- | tests/mailsynctest.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/mailsynctest.cpp b/tests/mailsynctest.cpp index faaf003..953adbf 100644 --- a/tests/mailsynctest.cpp +++ b/tests/mailsynctest.cpp | |||
@@ -197,6 +197,10 @@ void MailSyncTest::testListFolderHierarchy() | |||
197 | QVERIFY(names.contains("Drafts")); | 197 | QVERIFY(names.contains("Drafts")); |
198 | names.removeAll("Drafts"); | 198 | names.removeAll("Drafts"); |
199 | } | 199 | } |
200 | if (mCapabilities.contains(ResourceCapabilities::Mail::trash)) { | ||
201 | QVERIFY(names.contains("Trash")); | ||
202 | names.removeAll("Trash"); | ||
203 | } | ||
200 | QCOMPARE(names.size(), 3); | 204 | QCOMPARE(names.size(), 3); |
201 | QCOMPARE(map.value("sub")->getParent(), map.value("test")->identifier()); | 205 | QCOMPARE(map.value("sub")->getParent(), map.value("test")->identifier()); |
202 | }); | 206 | }); |