summaryrefslogtreecommitdiffstats
path: root/tests/lib/Settings/Admin/EncryptionTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib/Settings/Admin/EncryptionTest.php')
-rw-r--r--tests/lib/Settings/Admin/EncryptionTest.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/lib/Settings/Admin/EncryptionTest.php b/tests/lib/Settings/Admin/EncryptionTest.php
index a68b40ae11b..f9763d85c1f 100644
--- a/tests/lib/Settings/Admin/EncryptionTest.php
+++ b/tests/lib/Settings/Admin/EncryptionTest.php
@@ -39,8 +39,8 @@ class EncryptionTest extends TestCase {
public function setUp() {
parent::setUp();
- $this->manager = $this->createMock('\OC\Encryption\Manager');
- $this->userManager = $this->createMock('\OCP\IUserManager');
+ $this->manager = $this->getMockBuilder('\OC\Encryption\Manager')->disableOriginalConstructor()->getMock();
+ $this->userManager = $this->getMockBuilder('\OCP\IUserManager')->getMock();
$this->admin = new Encryption(
$this->manager,