summaryrefslogtreecommitdiffstats
path: root/tests/lib/APITest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib/APITest.php')
-rw-r--r--tests/lib/APITest.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/lib/APITest.php b/tests/lib/APITest.php
index bf6902fde65..ebb03425375 100644
--- a/tests/lib/APITest.php
+++ b/tests/lib/APITest.php
@@ -79,7 +79,7 @@ class APITest extends \Test\TestCase {
$request
->expects($this->once())
->method('getScriptName')
- ->will($this->returnValue($scriptName));
+ ->willReturn($scriptName);
$this->assertEquals($expected, $this->invokePrivate(new \OC_API, 'isV2', [$request]));
}