File indexing completed on 2024-11-10 04:50:00
0001 /* 0002 SPDX-FileCopyrightText: 2015-2024 Laurent Montel <montel@kde.org> 0003 0004 SPDX-License-Identifier: GPL-2.0-only 0005 */ 0006 0007 #include "filteractionforwardtest.h" 0008 #include "../filteractions/filteractionforward.h" 0009 #include <QTest> 0010 0011 FilterActionForwardTest::FilterActionForwardTest(QObject *parent) 0012 : QObject(parent) 0013 { 0014 } 0015 0016 FilterActionForwardTest::~FilterActionForwardTest() = default; 0017 0018 void FilterActionForwardTest::shouldBeEmpty() 0019 { 0020 MailCommon::FilterActionForward filter; 0021 QVERIFY(filter.isEmpty()); 0022 filter.argsFromString(QStringLiteral("foo")); 0023 QVERIFY(!filter.isEmpty()); 0024 } 0025 0026 void FilterActionForwardTest::shouldRequiresPart() 0027 { 0028 MailCommon::FilterActionForward filter; 0029 QCOMPARE(filter.requiredPart(), MailCommon::SearchRule::CompleteMessage); 0030 } 0031 0032 QTEST_MAIN(FilterActionForwardTest) 0033 0034 #include "moc_filteractionforwardtest.cpp"