Fix getMock DecryptAllTest
This commit is contained in:
parent
16e88a7ebf
commit
3782edf49c
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue