// SPDX-FileCopyrightText: 2022 Carl Schwan // SPDX-License-Identifier: GPL-3.0-or-later #include #include #include #include #include #include #include "testutils.h" using namespace Quotient; class NeoChatRoomTest : public QObject { Q_OBJECT private: Connection *connection = nullptr; TestUtils::TestRoom *room = nullptr; private Q_SLOTS: void initTestCase(); void eventTest(); }; void NeoChatRoomTest::initTestCase() { connection = Connection::makeMockConnection(u"@bob:kde.org"_s); room = new TestUtils::TestRoom(connection, u"#myroom:kde.org"_s, u"test-min-sync.json"_s); } void NeoChatRoomTest::eventTest() { QCOMPARE(room->timelineSize(), 1); } QTEST_GUILESS_MAIN(NeoChatRoomTest) #include "neochatroomtest.moc"