update unit tests after ctor signature change of \OC\Encryption\Util
This commit is contained in:
parent
e6dc6944c2
commit
e0ab2c34ea
2 changed files with 8 additions and 2 deletions
|
@ -20,11 +20,14 @@ class Encryption extends \Test\Files\Storage\Storage {
|
|||
->disableOriginalConstructor()
|
||||
->setMethods(['getDefaultEncryptionModule', 'getEncryptionModule'])
|
||||
->getMock();
|
||||
$config = $this->getMockBuilder('\OCP\IConfig')
|
||||
->disableOriginalConstructor()
|
||||
->getMock();
|
||||
$encryptionManager->expects($this->any())
|
||||
->method('getDefaultEncryptionModule')
|
||||
->willReturn(new DummyModule());
|
||||
|
||||
$util = new \OC\Encryption\Util(new View(), new \OC\User\Manager());
|
||||
$util = new \OC\Encryption\Util(new View(), new \OC\User\Manager(), $config);
|
||||
|
||||
$logger = $this->getMock('\OC\Log');
|
||||
|
||||
|
|
|
@ -23,7 +23,10 @@ class Encryption extends \Test\TestCase {
|
|||
->disableOriginalConstructor()->getMock();
|
||||
$encStorage = $this->getMockBuilder('\OC\Files\Storage\Wrapper\Encryption')
|
||||
->disableOriginalConstructor()->getMock();
|
||||
$util = new \OC\Encryption\Util(new View(), new \OC\User\Manager());;
|
||||
$config = $this->getMockBuilder('\OCP\IConfig')
|
||||
->disableOriginalConstructor()
|
||||
->getMock();
|
||||
$util = new \OC\Encryption\Util(new View(), new \OC\User\Manager(), $config);
|
||||
$size = 12;
|
||||
$unencryptedSize = 8000;
|
||||
|
||||
|
|
Loading…
Reference in a new issue