File indexing completed on 2025-01-05 04:49:34
0001 /* 0002 SPDX-FileCopyrightText: 2015-2024 Laurent Montel <montel@kde.org> 0003 0004 SPDX-License-Identifier: GPL-2.0-only 0005 */ 0006 0007 #include "mailmergedialogtest.h" 0008 #include "../mailmergedialog.h" 0009 #include "../widgets/mailmergewidget.h" 0010 #include <QDialogButtonBox> 0011 #include <QTest> 0012 0013 MailMergeDialogTest::MailMergeDialogTest(QObject *parent) 0014 : QObject(parent) 0015 { 0016 } 0017 0018 MailMergeDialogTest::~MailMergeDialogTest() = default; 0019 0020 void MailMergeDialogTest::shouldHaveDefaultValue() 0021 { 0022 MailMerge::MailMergeDialog dlg; 0023 0024 auto buttonBox = dlg.findChild<QDialogButtonBox *>(QStringLiteral("buttonbox")); 0025 QVERIFY(buttonBox); 0026 0027 auto mailMergeWidget = dlg.findChild<MailMerge::MailMergeWidget *>(QStringLiteral("mailmergewidget")); 0028 QVERIFY(mailMergeWidget); 0029 } 0030 0031 QTEST_MAIN(MailMergeDialogTest) 0032 0033 #include "moc_mailmergedialogtest.cpp"