File indexing completed on 2024-11-10 04:49:59
0001 /* 0002 SPDX-FileCopyrightText: 2015-2024 Laurent Montel <montel@kde.org> 0003 0004 SPDX-License-Identifier: GPL-2.0-only 0005 */ 0006 0007 #include "filteractioncopytest.h" 0008 #include "../filteractions/filteractioncopy.h" 0009 #include <QTest> 0010 0011 FilterActionCopyTest::FilterActionCopyTest(QObject *parent) 0012 : QObject(parent) 0013 { 0014 } 0015 0016 FilterActionCopyTest::~FilterActionCopyTest() = default; 0017 0018 void FilterActionCopyTest::shouldBeEmpty() 0019 { 0020 MailCommon::FilterActionCopy filter; 0021 QVERIFY(filter.isEmpty()); 0022 } 0023 0024 void FilterActionCopyTest::shouldHaveSieveRequires() 0025 { 0026 MailCommon::FilterActionCopy filter; 0027 QCOMPARE(filter.sieveRequires(), QStringList() << QStringLiteral("fileinto") << QStringLiteral("copy")); 0028 } 0029 0030 void FilterActionCopyTest::shouldHaveRequiresPart() 0031 { 0032 MailCommon::FilterActionCopy filter; 0033 QCOMPARE(filter.requiredPart(), MailCommon::SearchRule::Envelope); 0034 } 0035 0036 QTEST_MAIN(FilterActionCopyTest) 0037 0038 #include "moc_filteractioncopytest.cpp"