summaryrefslogtreecommitdiffstats
path: root/apps/comments/tests/Unit/Notification/NotifierTest.php
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2019-07-16 13:32:44 +0200
committerJoas Schilling <coding@schilljs.com>2019-07-16 13:32:44 +0200
commit565838da9c279fe071a9cdfbfd9cf574893a61f5 (patch)
treeedca999a6b0a1a6ce373850cd57b8b0a2759d61f /apps/comments/tests/Unit/Notification/NotifierTest.php
parentc3ef1cd90d215f36edf7236456578a233bc5f3bd (diff)
downloadnextcloud-server-565838da9c279fe071a9cdfbfd9cf574893a61f5.tar.gz
nextcloud-server-565838da9c279fe071a9cdfbfd9cf574893a61f5.zip
Update unit tests
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/comments/tests/Unit/Notification/NotifierTest.php')
-rw-r--r--apps/comments/tests/Unit/Notification/NotifierTest.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/comments/tests/Unit/Notification/NotifierTest.php b/apps/comments/tests/Unit/Notification/NotifierTest.php
index 6eceed44919..d008c4c3121 100644
--- a/apps/comments/tests/Unit/Notification/NotifierTest.php
+++ b/apps/comments/tests/Unit/Notification/NotifierTest.php
@@ -195,6 +195,9 @@ class NotifierTest extends TestCase {
->expects($this->any())
->method('getMentions')
->willReturn([['type' => 'user', 'id' => 'you']]);
+ $this->comment->expects($this->atLeastOnce())
+ ->method('getId')
+ ->willReturn('1234');
$this->commentsManager
->expects($this->once())
@@ -539,7 +542,7 @@ class NotifierTest extends TestCase {
}
/**
- * @expectedException \InvalidArgumentException
+ * @expectedException \OCP\Notification\AlreadyProcessedException
*/
public function testPrepareUnresolvableFileID() {
$displayName = 'Huraga';