Merge pull request #21774 from owncloud/test-autoload-encryption

always allow autoloading encryption in unit test
remotes/origin/app-styles-content-list
Thomas Müller 2016-01-19 12:17:13 +07:00
commit 7ba90eda87
1 changed files with 3 additions and 0 deletions

@ -90,6 +90,9 @@ class EncryptionControllerTest extends TestCase {
}
public function testStartMigrationSuccessful() {
// we need to be able to autoload the class we're mocking
\OC::$loader->addValidRoot(\OC_App::getAppPath('encryption'));
$migration = $this->getMockBuilder('\\OCA\\Encryption\\Migration')
->disableOriginalConstructor()->getMock();
$this->encryptionController