From 3399d66c8ee6db9b76b17a395357b054b5d5f290 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Fri, 1 Jul 2016 16:41:29 +0200 Subject: [PATCH] Fix Comments tests with phpunit 5.2+ --- apps/dav/tests/unit/comments/commentsplugin.php | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/apps/dav/tests/unit/comments/commentsplugin.php b/apps/dav/tests/unit/comments/commentsplugin.php index c7d073d1491..c909f6a61ab 100644 --- a/apps/dav/tests/unit/comments/commentsplugin.php +++ b/apps/dav/tests/unit/comments/commentsplugin.php @@ -449,16 +449,6 @@ class CommentsPlugin extends \Test\TestCase { ->with('users', 'alice', 'files', '42') ->will($this->returnValue($comment)); - $this->commentsManager->expects($this->any()) - ->method('setMessage') - ->with('') - ->will($this->throwException(new \InvalidArgumentException())); - - $this->commentsManager->expects($this->any()) - ->method('setVerb') - ->with('') - ->will($this->throwException(new \InvalidArgumentException())); - $this->userSession->expects($this->once()) ->method('getUser') ->will($this->returnValue($user));