diff options
author | Robin Appelman <icewind@owncloud.com> | 2016-01-18 12:16:13 +0100 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2016-01-18 12:16:13 +0100 |
commit | 62cf14e448b3727d123f54ee0e6877109ea4b668 (patch) | |
tree | b008ab1c2dc44c8af21864a59676e82d1e00d70b /tests/settings | |
parent | e4d5229940526352378f0141de4c9a6fd53611a9 (diff) | |
download | nextcloud-server-62cf14e448b3727d123f54ee0e6877109ea4b668.tar.gz nextcloud-server-62cf14e448b3727d123f54ee0e6877109ea4b668.zip |
always allow autoloading encryption in unit test
Diffstat (limited to 'tests/settings')
-rw-r--r-- | tests/settings/controller/EncryptionControllerTest.php | 3 |
1 files changed, 3 insertions, 0 deletions
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 |