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
1 changed files with 2 additions and 1 deletions

View File

@ -29,6 +29,7 @@ use OC\Encryption\Manager;
use OC\Files\FileInfo; use OC\Files\FileInfo;
use OC\Files\View; use OC\Files\View;
use OCP\IUserManager; use OCP\IUserManager;
use Symfony\Component\Console\Formatter\OutputFormatterInterface;
use Test\TestCase; use Test\TestCase;
/** /**
@ -78,7 +79,7 @@ class DecryptAllTest extends TestCase {
->disableOriginalConstructor()->getMock(); ->disableOriginalConstructor()->getMock();
$this->outputInterface->expects($this->any())->method('getFormatter') $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); $this->instance = new DecryptAll($this->encryptionManager, $this->userManager, $this->view);