File indexing completed on 2024-12-01 04:35:27
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 "roominfotest.h" 0008 #include "roominfo/roominfo.h" 0009 #include <QTest> 0010 QTEST_GUILESS_MAIN(RoomInfoTest) 0011 0012 RoomInfoTest::RoomInfoTest(QObject *parent) 0013 : QObject(parent) 0014 { 0015 } 0016 0017 void RoomInfoTest::shouldHaveDefaultValues() 0018 { 0019 RoomInfo w; 0020 QVERIFY(!w.defaultRoom()); 0021 QCOMPARE(w.usersCount(), -1); 0022 QCOMPARE(w.messageCount(), -1); 0023 QVERIFY(w.channelType().isEmpty()); 0024 QVERIFY(w.topic().isEmpty()); 0025 QVERIFY(w.announcement().isEmpty()); 0026 QVERIFY(w.description().isEmpty()); 0027 QVERIFY(w.identifier().isEmpty()); 0028 QVERIFY(!w.readOnly()); 0029 QVERIFY(w.name().isEmpty()); 0030 QCOMPARE(w.lastMessage(), -1); 0031 QVERIFY(!w.featured()); 0032 QVERIFY(w.ownerName().isEmpty()); 0033 QVERIFY(w.belongsTo().isEmpty()); 0034 } 0035 0036 #include "moc_roominfotest.cpp"