File indexing completed on 2024-06-09 04:59:21

0001 /*
0002    SPDX-FileCopyrightText: 2020-2024 Laurent Montel <montel@kde.org>
0003 
0004    SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 
0007 #include "usersinroomflowwidgettest.h"
0008 #include "common/flowlayout.h"
0009 #include "room/usersinroomflowwidget.h"
0010 #include <QTest>
0011 QTEST_MAIN(UsersInRoomFlowWidgetTest)
0012 
0013 UsersInRoomFlowWidgetTest::UsersInRoomFlowWidgetTest(QObject *parent)
0014     : QObject(parent)
0015 {
0016 }
0017 
0018 void UsersInRoomFlowWidgetTest::shouldHaveDefaultValues()
0019 {
0020     UsersInRoomFlowWidget w;
0021     auto mFlowLayout = w.findChild<FlowLayout *>(QStringLiteral("mFlowLayout"));
0022     QVERIFY(mFlowLayout);
0023     QCOMPARE(mFlowLayout->spacing(), 0);
0024     QCOMPARE(mFlowLayout->contentsMargins(), QMargins{});
0025 }
0026 
0027 #include "moc_usersinroomflowwidgettest.cpp"