Fix getMock DecryptAllTest

This commit is contained in:
Roeland Jago Douma 2016-09-12 21:00:08 +02:00
parent 16e88a7ebf
commit 3782edf49c
No known key found for this signature in database
GPG key ID: 1E152838F164D13B

View file

@ -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);