File indexing completed on 2024-11-24 04:16:54
0001 /* 0002 SPDX-FileCopyrightText: 2023-2024 Laurent Montel <montel.org> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #include "begamotenginedialogtest.h" 0008 #include "begamotenginedialog.h" 0009 #include "bergamotenginewidget.h" 0010 #include <QDialogButtonBox> 0011 #include <QStandardPaths> 0012 #include <QTest> 0013 #include <QVBoxLayout> 0014 QTEST_MAIN(BegamotEngineDialogTest) 0015 BegamotEngineDialogTest::BegamotEngineDialogTest(QObject *parent) 0016 : QObject{parent} 0017 { 0018 QStandardPaths::setTestModeEnabled(true); 0019 } 0020 0021 void BegamotEngineDialogTest::shouldHaveDefaultValues() 0022 { 0023 BegamotEngineDialog w; 0024 auto mainLayout = w.findChild<QVBoxLayout *>(QStringLiteral("mainLayout")); 0025 QVERIFY(mainLayout); 0026 0027 auto mBergamotEngineWidget = w.findChild<BergamotEngineWidget *>(QStringLiteral("mBergamotEngineWidget")); 0028 QVERIFY(mBergamotEngineWidget); 0029 0030 auto buttonBox = w.findChild<QDialogButtonBox *>(QStringLiteral("buttonBox")); 0031 QVERIFY(buttonBox); 0032 } 0033 0034 #include "moc_begamotenginedialogtest.cpp"