summaryrefslogtreecommitdiffstats
path: root/apps/dav/tests/unit/Comments/EntityCollectionTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/dav/tests/unit/Comments/EntityCollectionTest.php')
-rw-r--r--apps/dav/tests/unit/Comments/EntityCollectionTest.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/apps/dav/tests/unit/Comments/EntityCollectionTest.php b/apps/dav/tests/unit/Comments/EntityCollectionTest.php
index a11d22b956a..50f7a42d222 100644
--- a/apps/dav/tests/unit/Comments/EntityCollectionTest.php
+++ b/apps/dav/tests/unit/Comments/EntityCollectionTest.php
@@ -79,11 +79,11 @@ class EntityCollectionTest extends \Test\TestCase {
$this->commentsManager->expects($this->once())
->method('get')
->with('55')
- ->will($this->returnValue(
+ ->willReturn(
$this->getMockBuilder(IComment::class)
->disableOriginalConstructor()
->getMock()
- ));
+ );
$node = $this->collection->getChild('55');
$this->assertTrue($node instanceof \OCA\DAV\Comments\CommentNode);
@@ -105,11 +105,11 @@ class EntityCollectionTest extends \Test\TestCase {
$this->commentsManager->expects($this->once())
->method('getForObject')
->with('files', '19')
- ->will($this->returnValue([
+ ->willReturn([
$this->getMockBuilder(IComment::class)
->disableOriginalConstructor()
->getMock()
- ]));
+ ]);
$result = $this->collection->getChildren();
@@ -122,11 +122,11 @@ class EntityCollectionTest extends \Test\TestCase {
$this->commentsManager->expects($this->once())
->method('getForObject')
->with('files', '19', 5, 15, $dt)
- ->will($this->returnValue([
+ ->willReturn([
$this->getMockBuilder(IComment::class)
->disableOriginalConstructor()
->getMock()
- ]));
+ ]);
$result = $this->collection->findChildren(5, 15, $dt);