File indexing completed on 2024-06-02 05:08:16
0001 /* 0002 SPDX-FileCopyrightText: 2021-2024 Laurent Montel <montel@kde.org> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 #include "teamconverttochannelwidgettest.h" 0008 #include "teams/teamconverttochannelwidget.h" 0009 #include <QLabel> 0010 #include <QTest> 0011 #include <QVBoxLayout> 0012 QTEST_MAIN(TeamConvertToChannelWidgetTest) 0013 TeamConvertToChannelWidgetTest::TeamConvertToChannelWidgetTest(QObject *parent) 0014 : QObject(parent) 0015 { 0016 } 0017 0018 void TeamConvertToChannelWidgetTest::shouldHaveDefaultValues() 0019 { 0020 TeamConvertToChannelWidget w; 0021 0022 auto mainLayout = w.findChild<QVBoxLayout *>(QStringLiteral("mainLayout")); 0023 QVERIFY(mainLayout); 0024 QCOMPARE(mainLayout->contentsMargins(), QMargins{}); 0025 0026 auto deleteLabel = w.findChild<QLabel *>(QStringLiteral("deleteLabel")); 0027 QVERIFY(deleteLabel); 0028 QVERIFY(!deleteLabel->text().isEmpty()); 0029 QVERIFY(deleteLabel->wordWrap()); 0030 } 0031 0032 #include "moc_teamconverttochannelwidgettest.cpp"