diff options
Diffstat (limited to 'apps/dav/tests/unit/Connector/Sabre/CommentsPropertiesPluginTest.php')
-rw-r--r-- | apps/dav/tests/unit/Connector/Sabre/CommentsPropertiesPluginTest.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/apps/dav/tests/unit/Connector/Sabre/CommentsPropertiesPluginTest.php b/apps/dav/tests/unit/Connector/Sabre/CommentsPropertiesPluginTest.php index 250ccffcd78..9260acd9492 100644 --- a/apps/dav/tests/unit/Connector/Sabre/CommentsPropertiesPluginTest.php +++ b/apps/dav/tests/unit/Connector/Sabre/CommentsPropertiesPluginTest.php @@ -114,11 +114,11 @@ class CommentsPropertiesPluginTest extends \Test\TestCase { ->getMock(); $node->expects($this->any()) ->method('getId') - ->will($this->returnValue($fid)); + ->willReturn($fid); $this->server->expects($this->once()) ->method('getBaseUri') - ->will($this->returnValue($baseUri)); + ->willReturn($baseUri); $href = $this->plugin->getCommentsLink($node); $this->assertSame($expectedHref, $href); @@ -145,15 +145,15 @@ class CommentsPropertiesPluginTest extends \Test\TestCase { ->getMock(); $node->expects($this->any()) ->method('getId') - ->will($this->returnValue('4567')); + ->willReturn('4567'); $this->userSession->expects($this->once()) ->method('getUser') - ->will($this->returnValue($user)); + ->willReturn($user); $this->commentsManager->expects($this->any()) ->method('getNumberOfCommentsForObject') - ->will($this->returnValue(42)); + ->willReturn(42); $unread = $this->plugin->getUnreadCount($node); if(is_null($user)) { |