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