diff options
author | Alexey Rusakov <Kitsune-Ral@users.sf.net> | 2021-02-16 10:13:19 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-16 10:13:19 +0100 |
commit | 48d2ecc4df4d1883326036e55949156cfb37acc6 (patch) | |
tree | 0daf4b37c887cb3292c4713c611e144d2a8bb5c1 /quotest/quotest.cpp | |
parent | 3fbd9ca775caeca4a28aeb48f5c8db013659c263 (diff) | |
parent | fb6e3f215774d48f7e0c6000cc7a9ebbc66ceb64 (diff) | |
download | libquotient-48d2ecc4df4d1883326036e55949156cfb37acc6.tar.gz libquotient-48d2ecc4df4d1883326036e55949156cfb37acc6.zip |
Merge pull request #442 from ognarb/localuserinfo
Load user info (display name + avatar) for the local user.
Diffstat (limited to 'quotest/quotest.cpp')
-rw-r--r-- | quotest/quotest.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/quotest/quotest.cpp b/quotest/quotest.cpp index 5098bc02..bf29c434 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,13 @@ TEST_IMPL(changeName) return false; } + +TEST_IMPL(showLocalUsername) +{ + auto* const localUser = connection()->user(); + FINISH_TEST(!localUser->name().contains("@")); +} + TEST_IMPL(sendAndRedact) { clog << "Sending a message to redact" << endl; |