summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2018-10-12 14:25:46 +0200
committerJoas Schilling <coding@schilljs.com>2018-11-07 12:33:44 +0100
commit10ba0bed8a6a3f43526c36768feea522325d4a80 (patch)
tree291b31e55b28624c7a58c8d161eb214e5347875a /tests
parentc26d847d19c967aa5bc99f9bc15c27c7e95ee55f (diff)
downloadnextcloud-server-10ba0bed8a6a3f43526c36768feea522325d4a80.tar.gz
nextcloud-server-10ba0bed8a6a3f43526c36768feea522325d4a80.zip
Match mentions when the username is wrapped in quotes
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/Comments/CommentTest.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/lib/Comments/CommentTest.php b/tests/lib/Comments/CommentTest.php
index 15dd9120e44..5fb19396d84 100644
--- a/tests/lib/Comments/CommentTest.php
+++ b/tests/lib/Comments/CommentTest.php
@@ -150,8 +150,11 @@ class CommentTest extends TestCase {
['foobar', 'barfoo', 'foo@bar.com', 'bar@foo.org@foobar.io', '23452-4333-54353-2342', 'yolo']
],
[
- '@@chef is also a valid mention, no matter how strange it looks', ['@chef']
- ]
+ '@@chef is also a valid mention, no matter how strange it looks', ['@chef']
+ ],
+ [
+ 'Also @"user with spaces" are now supported', ['user with spaces']
+ ],
];
}