Fix new tests

remotes/origin/poc-doctrine-migrations
Joas Schilling 10 years ago
parent a4c314622a
commit 8f61fbb81f
  1. 2
      tests/lib/encryption/updatetest.php
  2. 5
      tests/lib/files/storage/wrapper/encryption.php

@ -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…
Cancel
Save