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 "potentialphishingdetaildialogtest.h" 0009 #include "../potentialphishingdetaildialog.h" 0010 #include "../potentialphishingdetailwidget.h" 0011 #include <QStandardPaths> 0012 #include <QTest> 0013 PotentialPhishingDetailDialogTest::PotentialPhishingDetailDialogTest(QObject *parent) 0014 : QObject(parent) 0015 { 0016 } 0017 0018 PotentialPhishingDetailDialogTest::~PotentialPhishingDetailDialogTest() = default; 0019 0020 void PotentialPhishingDetailDialogTest::initTestCase() 0021 { 0022 QStandardPaths::setTestModeEnabled(true); 0023 } 0024 0025 void PotentialPhishingDetailDialogTest::shouldHaveDefaultValue() 0026 { 0027 PotentialPhishingDetailDialog dlg; 0028 auto w = dlg.findChild<PotentialPhishingDetailWidget *>(QStringLiteral("potentialphising_widget")); 0029 QVERIFY(w); 0030 } 0031 0032 QTEST_MAIN(PotentialPhishingDetailDialogTest) 0033 0034 #include "moc_potentialphishingdetaildialogtest.cpp"