File indexing completed on 2025-03-09 04:53:54
0001 /* 0002 SPDX-FileCopyrightText: 2014-2024 Laurent Montel <montel@kde.org> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #include "globalparttest.h" 0008 #include "../src/part/globalpart.h" 0009 #include <QTest> 0010 GlobalPartTest::GlobalPartTest(QObject *parent) 0011 : QObject(parent) 0012 { 0013 } 0014 0015 GlobalPartTest::~GlobalPartTest() = default; 0016 0017 void GlobalPartTest::shouldHaveDefaultValue() 0018 { 0019 MessageComposer::GlobalPart globalpart; 0020 QVERIFY(globalpart.isGuiEnabled()); 0021 QVERIFY(!globalpart.parentWidgetForGui()); 0022 QVERIFY(!globalpart.isFallbackCharsetEnabled()); 0023 QVERIFY(!globalpart.is8BitAllowed()); 0024 QVERIFY(!globalpart.MDNRequested()); 0025 QVERIFY(!globalpart.requestDeleveryConfirmation()); 0026 } 0027 0028 QTEST_GUILESS_MAIN(GlobalPartTest) 0029 0030 #include "moc_globalparttest.cpp"