summaryrefslogtreecommitdiffstats
path: root/tests/lib/OCS/ProviderTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib/OCS/ProviderTest.php')
-rw-r--r--tests/lib/OCS/ProviderTest.php26
1 files changed, 13 insertions, 13 deletions
diff --git a/tests/lib/OCS/ProviderTest.php b/tests/lib/OCS/ProviderTest.php
index 7ee802e54fb..3a78793f91d 100644
--- a/tests/lib/OCS/ProviderTest.php
+++ b/tests/lib/OCS/ProviderTest.php
@@ -44,22 +44,22 @@ class ProviderTest extends \Test\TestCase {
->expects($this->at(0))
->method('isEnabledForUser')
->with('files_sharing')
- ->will($this->returnValue(false));
+ ->willReturn(false);
$this->appManager
->expects($this->at(1))
->method('isEnabledForUser')
->with('federation')
- ->will($this->returnValue(false));
+ ->willReturn(false);
$this->appManager
->expects($this->at(2))
->method('isEnabledForUser')
->with('activity')
- ->will($this->returnValue(false));
+ ->willReturn(false);
$this->appManager
->expects($this->at(3))
->method('isEnabledForUser')
->with('provisioning_api')
- ->will($this->returnValue(false));
+ ->willReturn(false);
$expected = new \OCP\AppFramework\Http\JSONResponse(
[
@@ -85,22 +85,22 @@ class ProviderTest extends \Test\TestCase {
->expects($this->at(0))
->method('isEnabledForUser')
->with('files_sharing')
- ->will($this->returnValue(true));
+ ->willReturn(true);
$this->appManager
->expects($this->at(1))
->method('isEnabledForUser')
->with('federation')
- ->will($this->returnValue(false));
+ ->willReturn(false);
$this->appManager
->expects($this->at(2))
->method('isEnabledForUser')
->with('activity')
- ->will($this->returnValue(false));
+ ->willReturn(false);
$this->appManager
->expects($this->at(3))
->method('isEnabledForUser')
->with('provisioning_api')
- ->will($this->returnValue(false));
+ ->willReturn(false);
$expected = new \OCP\AppFramework\Http\JSONResponse(
[
@@ -139,22 +139,22 @@ class ProviderTest extends \Test\TestCase {
->expects($this->at(0))
->method('isEnabledForUser')
->with('files_sharing')
- ->will($this->returnValue(false));
+ ->willReturn(false);
$this->appManager
->expects($this->at(1))
->method('isEnabledForUser')
->with('federation')
- ->will($this->returnValue(true));
+ ->willReturn(true);
$this->appManager
->expects($this->at(2))
->method('isEnabledForUser')
->with('activity')
- ->will($this->returnValue(false));
+ ->willReturn(false);
$this->appManager
->expects($this->at(3))
->method('isEnabledForUser')
->with('provisioning_api')
- ->will($this->returnValue(false));
+ ->willReturn(false);
$expected = new \OCP\AppFramework\Http\JSONResponse(
[
@@ -187,7 +187,7 @@ class ProviderTest extends \Test\TestCase {
$this->appManager
->expects($this->any())
->method('isEnabledForUser')
- ->will($this->returnValue(true));
+ ->willReturn(true);
$expected = new \OCP\AppFramework\Http\JSONResponse(
[