always allow autoloading encryption in unit test
This commit is contained in:
parent
e4d5229940
commit
62cf14e448
|
@ -90,6 +90,9 @@ class EncryptionControllerTest extends TestCase {
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testStartMigrationSuccessful() {
|
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')
|
$migration = $this->getMockBuilder('\\OCA\\Encryption\\Migration')
|
||||||
->disableOriginalConstructor()->getMock();
|
->disableOriginalConstructor()->getMock();
|
||||||
$this->encryptionController
|
$this->encryptionController
|
||||||
|
|
Loading…
Reference in New Issue