File indexing completed on 2024-11-10 04:50:01
0001 /* 0002 SPDX-FileCopyrightText: 2015-2024 Laurent Montel <montel@kde.org> 0003 0004 SPDX-License-Identifier: GPL-2.0-only 0005 */ 0006 0007 #include "filteractionunsetstatustest.h" 0008 #include "../filteractions/filteractionunsetstatus.h" 0009 #include <QTest> 0010 0011 FilterActionUnsetStatusTest::FilterActionUnsetStatusTest(QObject *parent) 0012 : QObject(parent) 0013 { 0014 } 0015 0016 FilterActionUnsetStatusTest::~FilterActionUnsetStatusTest() = default; 0017 0018 void FilterActionUnsetStatusTest::shouldHaveSieveRequires() 0019 { 0020 MailCommon::FilterActionUnsetStatus filter; 0021 QCOMPARE(filter.sieveRequires(), QStringList() << QStringLiteral("imap4flags")); 0022 } 0023 0024 void FilterActionUnsetStatusTest::shouldRequiresPart() 0025 { 0026 MailCommon::FilterActionUnsetStatus filter; 0027 QCOMPARE(filter.requiredPart(), MailCommon::SearchRule::Envelope); 0028 } 0029 0030 QTEST_MAIN(FilterActionUnsetStatusTest) 0031 0032 #include "moc_filteractionunsetstatustest.cpp"