File indexing completed on 2024-10-27 04:50:59
0001 /* 0002 SPDX-FileCopyrightText: 2015-2024 Laurent Montel <montel@kde.org> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 0006 */ 0007 0008 #include "potentialphishingemailwarningtest.h" 0009 #include "../potentialphishingemailwarning.h" 0010 #include <QAction> 0011 #include <QTest> 0012 0013 PotentialPhishingEmailWarningTest::PotentialPhishingEmailWarningTest(QObject *parent) 0014 : QObject(parent) 0015 { 0016 } 0017 0018 PotentialPhishingEmailWarningTest::~PotentialPhishingEmailWarningTest() = default; 0019 0020 void PotentialPhishingEmailWarningTest::shouldHaveDefaultValue() 0021 { 0022 PotentialPhishingEmailWarning w; 0023 QVERIFY(!w.isVisible()); 0024 // Verify QVERIFY(w.isCloseButtonVisible()); 0025 auto act = w.findChild<QAction *>(QStringLiteral("sendnow")); 0026 QVERIFY(act); 0027 } 0028 0029 QTEST_MAIN(PotentialPhishingEmailWarningTest) 0030 0031 #include "moc_potentialphishingemailwarningtest.cpp"