File indexing completed on 2024-06-09 04:59:13
0001 /* 0002 SPDX-FileCopyrightText: 2023-2024 Laurent Montel <montel.org> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 #include "exportdataselectaccountpagetest.h" 0007 #include "importexportdata/exportdata/exportdataselectaccountlistwidget.h" 0008 #include "importexportdata/exportdata/exportdataselectaccountpage.h" 0009 #include <QLabel> 0010 #include <QTest> 0011 #include <QVBoxLayout> 0012 0013 QTEST_MAIN(ExportDataSelectAccountPageTest) 0014 ExportDataSelectAccountPageTest::ExportDataSelectAccountPageTest(QObject *parent) 0015 : QObject{parent} 0016 { 0017 } 0018 0019 void ExportDataSelectAccountPageTest::shouldHaveDefaultValues() 0020 { 0021 ExportDataSelectAccountPage w; 0022 0023 auto mExportDataSelectAccountListWidget = w.findChild<ExportDataSelectAccountListWidget *>(QStringLiteral("mExportDataSelectAccountListWidget")); 0024 QVERIFY(mExportDataSelectAccountListWidget); 0025 0026 auto mainLayout = w.findChild<QVBoxLayout *>(QStringLiteral("mainLayout")); 0027 QVERIFY(mainLayout); 0028 0029 auto label = w.findChild<QLabel *>(QStringLiteral("label")); 0030 QVERIFY(label); 0031 QVERIFY(!label->text().isEmpty()); 0032 } 0033 0034 #include "moc_exportdataselectaccountpagetest.cpp"