summaryrefslogtreecommitdiffstats
path: root/apps/encryption/tests/Settings
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2016-08-15 16:43:22 +0200
committerLukas Reschke <lukas@statuscode.ch>2016-08-15 16:43:22 +0200
commit7ffb7b0d846241c8cc6b45a3c85b2374c6d026ae (patch)
tree8472e73eb69f8495405231d44e1d580cbd0942bd /apps/encryption/tests/Settings
parent8a7a0f328746230dd896ccc53b3ada271a91b930 (diff)
downloadnextcloud-server-7ffb7b0d846241c8cc6b45a3c85b2374c6d026ae.tar.gz
nextcloud-server-7ffb7b0d846241c8cc6b45a3c85b2374c6d026ae.zip
Use MockBuilder instead of createMock
CI uses an older PHPUnit
Diffstat (limited to 'apps/encryption/tests/Settings')
-rw-r--r--apps/encryption/tests/Settings/AdminTest.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/apps/encryption/tests/Settings/AdminTest.php b/apps/encryption/tests/Settings/AdminTest.php
index 5b0b577e058..93896585dad 100644
--- a/apps/encryption/tests/Settings/AdminTest.php
+++ b/apps/encryption/tests/Settings/AdminTest.php
@@ -52,12 +52,12 @@ class AdminTest extends TestCase {
public function setUp() {
parent::setUp();
- $this->l = $this->createMock('\OCP\IL10N');
- $this->logger = $this->createMock('\OCP\ILogger');
- $this->userSession = $this->createMock('\OCP\IUserSession');
- $this->config = $this->createMock('\OCP\IConfig');
- $this->userManager = $this->createMock('\OCP\IUserManager');
- $this->session = $this->createMock('\OCP\ISession');
+ $this->l = $this->getMockBuilder('\OCP\IL10N')->getMock();
+ $this->logger = $this->getMockBuilder('\OCP\ILogger')->getMock();
+ $this->userSession = $this->getMockBuilder('\OCP\IUserSession')->getMock();
+ $this->config = $this->getMockBuilder('\OCP\IConfig')->getMock();
+ $this->userManager = $this->getMockBuilder('\OCP\IUserManager')->getMock();
+ $this->session = $this->getMockBuilder('\OCP\ISession')->getMock();
$this->admin = new Admin(
$this->l,