File indexing completed on 2024-12-22 04:46:03

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 "roomquotemessagewidgettest.h"
0008 #include "room/roomquotemessagewidget.h"
0009 #include <QTest>
0010 QTEST_MAIN(RoomQuoteMessageWidgetTest)
0011 RoomQuoteMessageWidgetTest::RoomQuoteMessageWidgetTest(QObject *parent)
0012     : QObject(parent)
0013 {
0014 }
0015 
0016 void RoomQuoteMessageWidgetTest::shouldHaveDefaultValues()
0017 {
0018     RoomQuoteMessageWidget w;
0019     w.show();
0020     QVERIFY(!w.isCloseButtonVisible());
0021     QCOMPARE(w.messageType(), KMessageWidget::Information);
0022     QVERIFY(w.wordWrap());
0023 }
0024 
0025 #include "moc_roomquotemessagewidgettest.cpp"