summaryrefslogtreecommitdiffstats
path: root/tests/lib/Files/Mount/MountPointTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib/Files/Mount/MountPointTest.php')
-rw-r--r--tests/lib/Files/Mount/MountPointTest.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/lib/Files/Mount/MountPointTest.php b/tests/lib/Files/Mount/MountPointTest.php
index 9b63c507b5f..800b360415a 100644
--- a/tests/lib/Files/Mount/MountPointTest.php
+++ b/tests/lib/Files/Mount/MountPointTest.php
@@ -21,12 +21,12 @@ class MountPointTest extends \Test\TestCase {
$storage = $this->createMock(Storage::class);
$storage->expects($this->once())
->method('getId')
- ->will($this->returnValue(123));
+ ->willReturn(123);
$loader = $this->createMock(StorageFactory::class);
$loader->expects($this->once())
->method('wrap')
- ->will($this->returnValue($storage));
+ ->willReturn($storage);
$mountPoint = new \OC\Files\Mount\MountPoint(
// just use this because a real class is needed