File indexing completed on 2024-12-22 04:45:35
0001 /* 0002 SPDX-FileCopyrightText: 2023-2024 Laurent Montel <montel.org> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 #include "registrationwidgettest.h" 0008 #include "administratordialog/registration/registrationwidget.h" 0009 #include <QTest> 0010 #include <QVBoxLayout> 0011 QTEST_MAIN(RegistrationWidgetTest) 0012 RegistrationWidgetTest::RegistrationWidgetTest(QObject *parent) 0013 : QObject{parent} 0014 { 0015 } 0016 0017 void RegistrationWidgetTest::shouldHaveDefaultValues() 0018 { 0019 RegistrationWidget w; 0020 0021 auto mainLayout = w.findChild<QVBoxLayout *>(QStringLiteral("mainLayout")); 0022 QVERIFY(mainLayout); 0023 QCOMPARE(mainLayout->contentsMargins(), QMargins{}); 0024 } 0025 0026 #include "moc_registrationwidgettest.cpp"