From: Robin Appelman Date: Mon, 18 Jan 2016 11:16:13 +0000 (+0100) Subject: always allow autoloading encryption in unit test X-Git-Tag: v9.0beta1~252^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=62cf14e448b3727d123f54ee0e6877109ea4b668;p=nextcloud-server.git always allow autoloading encryption in unit test --- diff --git a/tests/settings/controller/EncryptionControllerTest.php b/tests/settings/controller/EncryptionControllerTest.php index 2446b8c7b9e..a3bb4c45a27 100644 --- a/tests/settings/controller/EncryptionControllerTest.php +++ b/tests/settings/controller/EncryptionControllerTest.php @@ -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