Fix new tests

This commit is contained in:
Joas Schilling 2015-04-27 11:10:31 +02:00
parent a4c314622a
commit 8f61fbb81f
2 changed files with 2 additions and 5 deletions

View File

@ -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';

View File

@ -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);