File indexing completed on 2025-01-05 04:49:27

0001 /*
0002    SPDX-FileCopyrightText: 2017-2024 Laurent Montel <montel@kde.org>
0003 
0004    SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 
0007 #include "insertshorturlconfiguredialogtest.h"
0008 #include "../insertshorturlconfiguredialog.h"
0009 #include "../insertshorturlconfigurewidget.h"
0010 
0011 #include <QDialogButtonBox>
0012 #include <QTest>
0013 
0014 QTEST_MAIN(InsertShorturlConfigureDialogTest)
0015 
0016 InsertShorturlConfigureDialogTest::InsertShorturlConfigureDialogTest(QObject *parent)
0017     : QObject(parent)
0018 {
0019 }
0020 
0021 void InsertShorturlConfigureDialogTest::shouldHaveDefaultValues()
0022 {
0023     InsertShorturlConfigureDialog dlg;
0024 
0025     auto buttonBox = dlg.findChild<QDialogButtonBox *>(QStringLiteral("buttonbox"));
0026     QVERIFY(buttonBox);
0027 
0028     auto mInsertShortUrlWidget = dlg.findChild<InsertShorturlConfigureWidget *>(QStringLiteral("insertshorturlwidget"));
0029     QVERIFY(mInsertShortUrlWidget);
0030 }
0031 
0032 #include "moc_insertshorturlconfiguredialogtest.cpp"