]> source.dussan.org Git - nextcloud-server.git/commitdiff
always allow autoloading encryption in unit test
authorRobin Appelman <icewind@owncloud.com>
Mon, 18 Jan 2016 11:16:13 +0000 (12:16 +0100)
committerRobin Appelman <icewind@owncloud.com>
Mon, 18 Jan 2016 11:16:13 +0000 (12:16 +0100)
tests/settings/controller/EncryptionControllerTest.php

index 2446b8c7b9e36233970edfd4cce4fdc376ebf026..a3bb4c45a27871bb3bc709a6506e8efe91249903 100644 (file)
@@ -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