Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix unit tests
Signed-off-by: Joas Schilling <[email protected]>
  • Loading branch information
nickvergessen authored and backportbot[bot] committed Feb 11, 2021
commit 814a8accccde0eb2fa7699821443d922ff0b89a6
6 changes: 3 additions & 3 deletions tests/lib/Comments/CommentTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public function testSettersValidInput() {
$this->assertSame($object['id'], $comment->getObjectId());
}


public function testSetIdIllegalInput() {
$this->expectException(\OCP\Comments\IllegalIDChangeException::class);

Expand Down Expand Up @@ -120,7 +120,7 @@ public function testSetRoleInvalidInput($role, $type, $id) {
$comment->$setter($type, $id);
}


public function testSetUberlongMessage() {
$this->expectException(\OCP\Comments\MessageTooLongException::class);

Expand Down Expand Up @@ -149,7 +149,7 @@ public function mentionsProvider() {
' 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', '[email protected]', '[email protected]@foobar.io', '23452-4333-54353-2342', 'yolo']
['[email protected]@foobar.io', '23452-4333-54353-2342', '[email protected]', 'foobar', 'barfoo', 'yolo']
],
[
'@@chef is also a valid mention, no matter how strange it looks', ['@chef']
Expand Down