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 #include "filteractionsendreceipttest.h"
0007 #include "../filteractions/filteractionsendreceipt.h"
0008 #include <QTest>
0009 
0010 FilterActionSendReceiptTest::FilterActionSendReceiptTest(QObject *parent)
0011     : QObject(parent)
0012 {
0013 }
0014 
0015 void FilterActionSendReceiptTest::shouldBeNotEmpty()
0016 {
0017     MailCommon::FilterActionSendReceipt filter;
0018     QVERIFY(!filter.isEmpty());
0019 }
0020 
0021 void FilterActionSendReceiptTest::shouldRequiresPart()
0022 {
0023     MailCommon::FilterActionSendReceipt filter;
0024     QCOMPARE(filter.requiredPart(), MailCommon::SearchRule::CompleteMessage);
0025 }
0026 
0027 void FilterActionSendReceiptTest::shouldSieveRequires()
0028 {
0029     MailCommon::FilterActionSendReceipt filter;
0030     QCOMPARE(filter.sieveRequires(), QStringList());
0031 }
0032 
0033 QTEST_MAIN(FilterActionSendReceiptTest)
0034 
0035 #include "moc_filteractionsendreceipttest.cpp"