summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2016-09-12 21:00:08 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2016-09-13 09:09:52 +0200
commit3782edf49cf2c653090b9d38bf8c30c7540104a5 (patch)
treed229995590812dfa932f219c7dfded1aae905776 /tests
parent16e88a7ebf8e355b611055817c1459ed5d51c71f (diff)
downloadnextcloud-server-3782edf49cf2c653090b9d38bf8c30c7540104a5.tar.gz
nextcloud-server-3782edf49cf2c653090b9d38bf8c30c7540104a5.zip
Fix getMock DecryptAllTest
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/Encryption/DecryptAllTest.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/lib/Encryption/DecryptAllTest.php b/tests/lib/Encryption/DecryptAllTest.php
index ed86b743c3b..7859a65ff6d 100644
--- a/tests/lib/Encryption/DecryptAllTest.php
+++ b/tests/lib/Encryption/DecryptAllTest.php
@@ -29,6 +29,7 @@ use OC\Encryption\Manager;
use OC\Files\FileInfo;
use OC\Files\View;
use OCP\IUserManager;
+use Symfony\Component\Console\Formatter\OutputFormatterInterface;
use Test\TestCase;
/**
@@ -78,7 +79,7 @@ class DecryptAllTest extends TestCase {
->disableOriginalConstructor()->getMock();
$this->outputInterface->expects($this->any())->method('getFormatter')
- ->willReturn($this->getMock('\Symfony\Component\Console\Formatter\OutputFormatterInterface'));
+ ->willReturn($this->createMock(OutputFormatterInterface::class));
$this->instance = new DecryptAll($this->encryptionManager, $this->userManager, $this->view);