File indexing completed on 2025-01-19 04:46:51
0001 /* 0002 SPDX-FileCopyrightText: 2018-2024 Laurent Montel <montel@kde.org> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 #include "dkimconfiguretabtest.h" 0008 #include "../dkimconfiguretab.h" 0009 #include <QHBoxLayout> 0010 #include <QStandardPaths> 0011 #include <QTabWidget> 0012 #include <QTest> 0013 QTEST_MAIN(DKIMConfigureTabTest) 0014 0015 DKIMConfigureTabTest::DKIMConfigureTabTest(QObject *parent) 0016 : QObject(parent) 0017 { 0018 QStandardPaths::setTestModeEnabled(true); 0019 } 0020 0021 void DKIMConfigureTabTest::shouldHaveDefaultValue() 0022 { 0023 DKIMConfigureTab w; 0024 0025 auto mainLayout = w.findChild<QHBoxLayout *>(QStringLiteral("mainlayout")); 0026 QVERIFY(mainLayout); 0027 QCOMPARE(mainLayout->contentsMargins(), QMargins()); 0028 0029 auto mTabWidget = w.findChild<QTabWidget *>(QStringLiteral("tabwidget")); 0030 QVERIFY(mTabWidget); 0031 } 0032 0033 #include "moc_dkimconfiguretabtest.cpp"