summaryrefslogtreecommitdiffstats
path: root/tests/settings
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2016-01-18 12:16:13 +0100
committerRobin Appelman <icewind@owncloud.com>2016-01-18 12:16:13 +0100
commit62cf14e448b3727d123f54ee0e6877109ea4b668 (patch)
treeb008ab1c2dc44c8af21864a59676e82d1e00d70b /tests/settings
parente4d5229940526352378f0141de4c9a6fd53611a9 (diff)
downloadnextcloud-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.php3
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