From 4da1ee99d687d27f82e32f53af74ff52a35c36f9 Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Wed, 7 Sep 2016 19:51:45 +0200 Subject: Fix getMock Encryption --- tests/lib/Encryption/EncryptionWrapperTest.php | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'tests/lib/Encryption/EncryptionWrapperTest.php') 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); } -- cgit v1.2.3