diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2021-02-11 10:33:15 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-11 10:33:15 +0100 |
commit | d5dea10517bbceaf141f56b6dde0efb55fc6f4b5 (patch) | |
tree | 925e74b2198c129aad4a5a2ea1ddd52feeb13335 /tests | |
parent | 02885358a959ddafdc0f4dfa9e3ad3efa9fbc6b7 (diff) | |
parent | 98032425b4c57e1d39d46c23f02e7ac55d5badd1 (diff) | |
download | nextcloud-server-d5dea10517bbceaf141f56b6dde0efb55fc6f4b5.tar.gz nextcloud-server-d5dea10517bbceaf141f56b6dde0efb55fc6f4b5.zip |
Merge pull request #25378 from nextcloud/bugfix/noid/mention-match-improvements
Improve mention matches
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/Comments/CommentTest.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/lib/Comments/CommentTest.php b/tests/lib/Comments/CommentTest.php index 245ca9693ea..7b3254ac141 100644 --- a/tests/lib/Comments/CommentTest.php +++ b/tests/lib/Comments/CommentTest.php @@ -51,7 +51,7 @@ class CommentTest extends TestCase { $this->assertSame($object['id'], $comment->getObjectId()); } - + public function testSetIdIllegalInput() { $this->expectException(\OCP\Comments\IllegalIDChangeException::class); @@ -120,7 +120,7 @@ class CommentTest extends TestCase { $comment->$setter($type, $id); } - + public function testSetUberlongMessage() { $this->expectException(\OCP\Comments\MessageTooLongException::class); @@ -149,7 +149,7 @@ class CommentTest extends TestCase { ' cc @23452-4333-54353-2342 @yolo!' . ' however the most important thing to know is that www.croissant.com/@oil is not valid' . ' and won\'t match anything at all', - ['foobar', 'barfoo', 'foo@bar.com', 'bar@foo.org@foobar.io', '23452-4333-54353-2342', 'yolo'] + ['bar@foo.org@foobar.io', '23452-4333-54353-2342', 'foo@bar.com', 'foobar', 'barfoo', 'yolo'] ], [ '@@chef is also a valid mention, no matter how strange it looks', ['@chef'] |