aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/Encryption/EncryptionWrapperTest.php
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2016-09-07 19:51:45 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2016-09-07 20:42:37 +0200
commit4da1ee99d687d27f82e32f53af74ff52a35c36f9 (patch)
tree0ec59946f9837987d68b337aac11c59a2ec288e9 /tests/lib/Encryption/EncryptionWrapperTest.php
parent9ea2153e9be84a7a0bafc469289b66669bba9852 (diff)
downloadnextcloud-server-4da1ee99d687d27f82e32f53af74ff52a35c36f9.tar.gz
nextcloud-server-4da1ee99d687d27f82e32f53af74ff52a35c36f9.zip
Fix getMock Encryption
Diffstat (limited to 'tests/lib/Encryption/EncryptionWrapperTest.php')
-rw-r--r--tests/lib/Encryption/EncryptionWrapperTest.php11
1 files changed, 7 insertions, 4 deletions
diff --git a/tests/lib/Encryption/EncryptionWrapperTest.php b/tests/lib/Encryption/EncryptionWrapperTest.php
index 909187ae43b..6599428b364 100644
--- a/tests/lib/Encryption/EncryptionWrapperTest.php
+++ b/tests/lib/Encryption/EncryptionWrapperTest.php
@@ -24,6 +24,9 @@ namespace Test\Encryption;
use OC\Encryption\EncryptionWrapper;
+use OC\Encryption\Manager;
+use OC\Memcache\ArrayCache;
+use OCP\ILogger;
use Test\TestCase;
class EncryptionWrapperTest extends TestCase {
@@ -43,10 +46,10 @@ class EncryptionWrapperTest extends TestCase {
public function setUp() {
parent::setUp();
- $this->arrayCache = $this->getMock('OC\Memcache\ArrayCache');
- $this->manager = $this->getMockBuilder('OC\Encryption\Manager')
- ->disableOriginalConstructor()->getMock();
- $this->logger = $this->getMock('OCP\ILogger');
+ $this->arrayCache = $this->createMock(ArrayCache::class);
+ $this->manager = $this->createMock(Manager::class);
+ $this->logger = $this->createMock(ILogger::class);
+ $this->logger = $this->createMock(ILogger::class);
$this->instance = new EncryptionWrapper($this->arrayCache, $this->manager, $this->logger);
}