File indexing completed on 2024-12-22 05:05:30

0001 /*
0002    SPDX-FileCopyrightText: 2015-2024 Laurent Montel <montel@kde.org>
0003 
0004    SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 
0007 #include "pimdataexporterconfiguredialogtest.h"
0008 #include "../dialog/pimdataexporterconfiguredialog.h"
0009 #include "../widgets/pimdataexporterconfigurewidget.h"
0010 #include <QDialogButtonBox>
0011 #include <QTest>
0012 
0013 PimDataExporterConfigureDialogTest::PimDataExporterConfigureDialogTest(QObject *parent)
0014     : QObject(parent)
0015 {
0016 }
0017 
0018 PimDataExporterConfigureDialogTest::~PimDataExporterConfigureDialogTest()
0019 {
0020 }
0021 
0022 void PimDataExporterConfigureDialogTest::shouldHaveDefaultValue()
0023 {
0024     PimDataExporterConfigureDialog dlg;
0025     QDialogButtonBox *buttonBox = dlg.findChild<QDialogButtonBox *>(QStringLiteral("buttonbox"));
0026     QVERIFY(buttonBox);
0027 
0028     PimDataExporterConfigureWidget *configureWidget = dlg.findChild<PimDataExporterConfigureWidget *>(QStringLiteral("configurewidget"));
0029     QVERIFY(configureWidget);
0030 }
0031 
0032 QTEST_MAIN(PimDataExporterConfigureDialogTest)
0033 
0034 #include "moc_pimdataexporterconfiguredialogtest.cpp"