Fix new tests
This commit is contained in:
parent
a4c314622a
commit
8f61fbb81f
|
@ -69,7 +69,7 @@ class UpdateTest extends TestCase {
|
||||||
->disableOriginalConstructor()->getMock();
|
->disableOriginalConstructor()->getMock();
|
||||||
|
|
||||||
$this->encryptionManager->expects($this->once())
|
$this->encryptionManager->expects($this->once())
|
||||||
->method('getDefaultEncryptionModule')
|
->method('getEncryptionModule')
|
||||||
->willReturn($this->encryptionModule);
|
->willReturn($this->encryptionModule);
|
||||||
|
|
||||||
$this->uid = 'testUser1';
|
$this->uid = 'testUser1';
|
||||||
|
|
|
@ -51,11 +51,8 @@ class Encryption extends \Test\Files\Storage\Storage {
|
||||||
$mockModule = $this->buildMockModule();
|
$mockModule = $this->buildMockModule();
|
||||||
$this->encryptionManager = $this->getMockBuilder('\OC\Encryption\Manager')
|
$this->encryptionManager = $this->getMockBuilder('\OC\Encryption\Manager')
|
||||||
->disableOriginalConstructor()
|
->disableOriginalConstructor()
|
||||||
->setMethods(['getDefaultEncryptionModule', 'getEncryptionModule', 'isEnabled'])
|
->setMethods(['getEncryptionModule', 'isEnabled'])
|
||||||
->getMock();
|
->getMock();
|
||||||
$this->encryptionManager->expects($this->any())
|
|
||||||
->method('getDefaultEncryptionModule')
|
|
||||||
->willReturn($mockModule);
|
|
||||||
$this->encryptionManager->expects($this->any())
|
$this->encryptionManager->expects($this->any())
|
||||||
->method('getEncryptionModule')
|
->method('getEncryptionModule')
|
||||||
->willReturn($mockModule);
|
->willReturn($mockModule);
|
||||||
|
|
Loading…
Reference in New Issue