aboutsummaryrefslogtreecommitdiffstats
path: root/apps/dav/tests/unit/Comments/RootCollectionTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/dav/tests/unit/Comments/RootCollectionTest.php')
-rw-r--r--apps/dav/tests/unit/Comments/RootCollectionTest.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/dav/tests/unit/Comments/RootCollectionTest.php b/apps/dav/tests/unit/Comments/RootCollectionTest.php
index c228aab9e20..1a7a3fb128e 100644
--- a/apps/dav/tests/unit/Comments/RootCollectionTest.php
+++ b/apps/dav/tests/unit/Comments/RootCollectionTest.php
@@ -93,11 +93,11 @@ class RootCollectionTest extends \Test\TestCase {
protected function prepareForInitCollections() {
$this->user->expects($this->any())
->method('getUID')
- ->will($this->returnValue('alice'));
+ ->willReturn('alice');
$this->userSession->expects($this->once())
->method('getUser')
- ->will($this->returnValue($this->user));
+ ->willReturn($this->user);
$this->dispatcher->addListener(CommentsEntityEvent::EVENT_ENTITY, function(CommentsEntityEvent $event) {
$event->addEntityCollection('files', function() {