diff options
-rw-r--r-- | quotest/quotest.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/quotest/quotest.cpp b/quotest/quotest.cpp index 5098bc02..f693319f 100644 --- a/quotest/quotest.cpp +++ b/quotest/quotest.cpp @@ -101,6 +101,7 @@ private slots: TEST_DECL(setTopic) TEST_DECL(changeName) TEST_DECL(sendAndRedact) + TEST_DECL(showLocalUsername) TEST_DECL(addAndRemoveTag) TEST_DECL(markDirectChat) TEST_DECL(visitResources) @@ -508,6 +509,17 @@ TEST_IMPL(changeName) return false; } + +TEST_IMPL(showLocalUsername) +{ + auto* const localUser = connection()->user(); + if (localUser->name().contains("@")) { + // it is using the id fallback :( + FAIL_TEST(); + } + return false; +} + TEST_IMPL(sendAndRedact) { clog << "Sending a message to redact" << endl; |