From 62cf14e448b3727d123f54ee0e6877109ea4b668 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Mon, 18 Jan 2016 12:16:13 +0100 Subject: [PATCH] always allow autoloading encryption in unit test --- tests/settings/controller/EncryptionControllerTest.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/settings/controller/EncryptionControllerTest.php b/tests/settings/controller/EncryptionControllerTest.php index 2446b8c7b9..a3bb4c45a2 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