summaryrefslogtreecommitdiffstats
path: root/apps/dav/tests/unit/Connector/Sabre/CommentsPropertiesPluginTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/dav/tests/unit/Connector/Sabre/CommentsPropertiesPluginTest.php')
-rw-r--r--apps/dav/tests/unit/Connector/Sabre/CommentsPropertiesPluginTest.php14
1 files changed, 11 insertions, 3 deletions
diff --git a/apps/dav/tests/unit/Connector/Sabre/CommentsPropertiesPluginTest.php b/apps/dav/tests/unit/Connector/Sabre/CommentsPropertiesPluginTest.php
index 6ade77e34f3..70ef5233598 100644
--- a/apps/dav/tests/unit/Connector/Sabre/CommentsPropertiesPluginTest.php
+++ b/apps/dav/tests/unit/Connector/Sabre/CommentsPropertiesPluginTest.php
@@ -35,8 +35,12 @@ class CommentsPropertiesPluginTest extends \Test\TestCase {
public function setUp() {
parent::setUp();
- $this->commentsManager = $this->getMock('\OCP\Comments\ICommentsManager');
- $this->userSession = $this->getMock('\OCP\IUserSession');
+ $this->commentsManager = $this->getMockBuilder('\OCP\Comments\ICommentsManager')
+ ->disableOriginalConstructor()
+ ->getMock();
+ $this->userSession = $this->getMockBuilder('\OCP\IUserSession')
+ ->disableOriginalConstructor()
+ ->getMock();
$this->server = $this->getMockBuilder('\Sabre\DAV\Server')
->disableOriginalConstructor()
@@ -114,7 +118,11 @@ class CommentsPropertiesPluginTest extends \Test\TestCase {
public function userProvider() {
return [
- [$this->getMock('\OCP\IUser')],
+ [
+ $this->getMockBuilder('\OCP\IUser')
+ ->disableOriginalConstructor()
+ ->getMock()
+ ],
[null]
];
}