File indexing completed on 2025-01-19 04:46:43

0001 /*
0002    SPDX-FileCopyrightText: 2016-2024 Laurent Montel <montel@kde.org>
0003 
0004    SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 
0007 #include "confirmaddressconfiguretabtest.h"
0008 #include "../confirmaddressconfiguretab.h"
0009 #include <QTabWidget>
0010 #include <QTest>
0011 #include <QVBoxLayout>
0012 
0013 ConfirmAddressConfigureTabTest::ConfirmAddressConfigureTabTest(QObject *parent)
0014     : QObject(parent)
0015 {
0016 }
0017 
0018 ConfirmAddressConfigureTabTest::~ConfirmAddressConfigureTabTest() = default;
0019 
0020 void ConfirmAddressConfigureTabTest::shouldHaveDefaultValue()
0021 {
0022     ConfirmAddressConfigureTab w(nullptr);
0023     auto vboxlayout = w.findChild<QVBoxLayout *>(QStringLiteral("mainlayout"));
0024     QVERIFY(vboxlayout);
0025     QCOMPARE(vboxlayout->contentsMargins(), QMargins());
0026 
0027     auto mTabWidget = w.findChild<QTabWidget *>(QStringLiteral("tabwidget"));
0028     QVERIFY(mTabWidget);
0029 }
0030 
0031 QTEST_MAIN(ConfirmAddressConfigureTabTest)
0032 
0033 #include "moc_confirmaddressconfiguretabtest.cpp"