I hate models

This commit is contained in:
Carl Schwan
2024-03-03 16:26:16 +01:00
parent 23099046a3
commit 1844a90fc0
6 changed files with 91 additions and 16 deletions

View File

@@ -5,9 +5,7 @@
#include <QSignalSpy>
#include <QTest>
#include <Quotient/connection.h>
#include <Quotient/quotient_common.h>
#include <Quotient/syncdata.h>
#include "neochatconnection.h"
#include "testutils.h"
@@ -27,7 +25,8 @@ private Q_SLOTS:
void NeoChatRoomTest::initTestCase()
{
connection = Connection::makeMockConnection(QStringLiteral("@bob:kde.org"));
auto connection = new NeoChatConnection;
Connection::makeMockConnection(connection, QStringLiteral("@bob:kde.org"));
room = new TestUtils::TestRoom(connection, QStringLiteral("#myroom:kde.org"), "test-min-sync.json"_ls);
}