File indexing completed on 2024-12-22 04:45:57

0001 /*
0002    SPDX-FileCopyrightText: 2023-2024 Laurent Montel <montel.org>
0003 
0004    SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 #include "importdatawizardtest.h"
0007 #include "importexportdata/importdata/importdatafinishpage.h"
0008 #include "importexportdata/importdata/importdataselectaccountpage.h"
0009 #include "importexportdata/importdata/importdatawizard.h"
0010 #include <QTest>
0011 
0012 QTEST_MAIN(ImportDataWizardTest)
0013 ImportDataWizardTest::ImportDataWizardTest(QObject *parent)
0014     : QObject{parent}
0015 {
0016 }
0017 
0018 void ImportDataWizardTest::shouldHaveDefaultValues()
0019 {
0020     ImportDataWizard w;
0021 
0022     auto mImportDataSelectAccountPage = w.findChild<ImportDataSelectAccountPage *>(QStringLiteral("mImportDataSelectAccountPage"));
0023     QVERIFY(mImportDataSelectAccountPage);
0024 
0025     auto mImportDataFinishPage = w.findChild<ImportDataFinishPage *>(QStringLiteral("mImportDataSelectAccountPage"));
0026     QVERIFY(mImportDataFinishPage);
0027 }
0028 
0029 #include "moc_importdatawizardtest.cpp"