File indexing completed on 2024-12-22 04:45:46
0001 /* 0002 SPDX-FileCopyrightText: 2022-2024 Laurent Montel <montel@kde.org> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 #include "conferenceinfodialogtest.h" 0007 #include "conferencecalldialog/conferenceinfodialog.h" 0008 #include "conferencecalldialog/conferenceinfowidget.h" 0009 #include <QDialogButtonBox> 0010 #include <QTest> 0011 #include <QVBoxLayout> 0012 0013 QTEST_MAIN(ConferenceInfoDialogTest) 0014 ConferenceInfoDialogTest::ConferenceInfoDialogTest(QObject *parent) 0015 : QObject{parent} 0016 { 0017 } 0018 0019 void ConferenceInfoDialogTest::shouldHaveDefaultValues() 0020 { 0021 ConferenceInfoDialog d(nullptr); 0022 QVERIFY(!d.windowTitle().isEmpty()); 0023 auto mainLayout = d.findChild<QVBoxLayout *>(QStringLiteral("mainLayout")); 0024 QVERIFY(mainLayout); 0025 0026 auto mConferenceInfoWidget = d.findChild<ConferenceInfoWidget *>(QStringLiteral("mConferenceInfoWidget")); 0027 QVERIFY(mConferenceInfoWidget); 0028 0029 auto button = d.findChild<QDialogButtonBox *>(QStringLiteral("button")); 0030 QVERIFY(button); 0031 0032 QVERIFY(d.conferenceId().isEmpty()); 0033 } 0034 0035 #include "moc_conferenceinfodialogtest.cpp"