aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2021-01-29 13:09:37 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2021-02-06 13:07:06 +0100
commit86109f77e0a220c84b24e8bcea10fbc3ba4454a9 (patch)
tree681a8edb20555411bb317b951a4f3cbc936f58dd
parentef7ed47f140eb37f84dd5c9a8b0191f7dcfcc184 (diff)
downloadnextcloud-server-86109f77e0a220c84b24e8bcea10fbc3ba4454a9.tar.gz
nextcloud-server-86109f77e0a220c84b24e8bcea10fbc3ba4454a9.zip
Fix unit tests
Signed-off-by: Joas Schilling <coding@schilljs.com>
-rw-r--r--tests/lib/Comments/CommentTest.php6
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']