always allow autoloading encryption in unit test

This commit is contained in:
Robin Appelman 2016-01-18 12:16:13 +01:00
parent e4d5229940
commit 62cf14e448
1 changed files with 3 additions and 0 deletions

View File

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