diff --git a/autotests/texthandlertest.cpp b/autotests/texthandlertest.cpp index 7336532d6..5b032af1f 100644 --- a/autotests/texthandlertest.cpp +++ b/autotests/texthandlertest.cpp @@ -4,10 +4,12 @@ #include #include +#include "neochatuser.h" #include "texthandler.h" #include #include +#include #include using namespace Quotient; @@ -555,9 +557,9 @@ void TextHandlerTest::receiveRichPlainUrl() void TextHandlerTest::receiveRichEmote() { auto event = room->messageEvents().at(1).get(); - auto author = static_cast(room->user(event->senderId())); + auto author = new NeoChatUser(event->senderId(), connection); const QString testInputString = QStringLiteral("This is an emote."); - const QString testOutputString = QStringLiteral("* color().name() + const QString testOutputString = QStringLiteral("* @example:example.org This is an emote."); TextHandler testTextHandler; @@ -644,5 +646,5 @@ void TextHandlerTest::linkPreviewsReject() QCOMPARE(testTextHandler.getLinkPreviews(), testOutputLinks); } -QTEST_GUILESS_MAIN(TextHandlerTest) +QTEST_MAIN(TextHandlerTest) #include "texthandlertest.moc"