File indexing completed on 2025-11-09 15:10:39

0001 /*
0002    SPDX-FileCopyrightText: 2023-2024 Laurent Montel <montel.org>
0003 
0004    SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 
0007 #include "importdataselectaccountpagetest.h"
0008 #include "importexportdata/importdata/importdataselectaccountpage.h"
0009 #include <KUrlRequester>
0010 #include <QLabel>
0011 #include <QTest>
0012 #include <QVBoxLayout>
0013 
0014 QTEST_MAIN(ImportDataSelectAccountPageTest)
0015 ImportDataSelectAccountPageTest::ImportDataSelectAccountPageTest(QObject *parent)
0016     : QObject{parent}
0017 {
0018 }
0019 
0020 void ImportDataSelectAccountPageTest::shouldHaveDefaultValues()
0021 {
0022     ImportDataSelectAccountPage w;
0023 
0024     auto mUrlRequester = w.findChild<KUrlRequester *>(QStringLiteral("mUrlRequester"));
0025     QVERIFY(mUrlRequester);
0026 
0027     auto mainLayout = w.findChild<QVBoxLayout *>(QStringLiteral("mainLayout"));
0028     QVERIFY(mainLayout);
0029 
0030     auto label = w.findChild<QLabel *>(QStringLiteral("label"));
0031     QVERIFY(label);
0032     QVERIFY(!label->text().isEmpty());
0033 
0034     QVERIFY(w.zipFileUrl().isEmpty());
0035 }
0036 
0037 #include "moc_importdataselectaccountpagetest.cpp"