diff options
author | Morris Jobke <hey@morrisjobke.de> | 2017-10-23 23:20:50 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2017-10-24 15:52:00 +0200 |
commit | 99934134dc53baaee56740de669c7df549317a2f (patch) | |
tree | 94f970256afdb6ae4b2f383f46b0d463d324b022 /tests | |
parent | db1096bcfdf2336ccf6aefb70dd902a63ed615db (diff) | |
download | nextcloud-server-99934134dc53baaee56740de669c7df549317a2f.tar.gz nextcloud-server-99934134dc53baaee56740de669c7df549317a2f.zip |
Use DI for IAppManager to encryption migration
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Settings/Controller/EncryptionControllerTest.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/Settings/Controller/EncryptionControllerTest.php b/tests/Settings/Controller/EncryptionControllerTest.php index bbc2d7b6599..e57f36353a6 100644 --- a/tests/Settings/Controller/EncryptionControllerTest.php +++ b/tests/Settings/Controller/EncryptionControllerTest.php @@ -24,6 +24,7 @@ namespace Tests\Settings\Controller; use OC\DB\Connection; use OC\Files\View; use OC\Settings\Controller\EncryptionController; +use OCP\App\IAppManager; use OCP\IConfig; use OCP\IL10N; use OCP\ILogger; @@ -51,6 +52,8 @@ class EncryptionControllerTest extends TestCase { private $view; /** @var ILogger */ private $logger; + /** @var IAppManager */ + private $appManager; /** @var EncryptionController */ private $encryptionController; @@ -75,6 +78,8 @@ class EncryptionControllerTest extends TestCase { ->disableOriginalConstructor()->getMock(); $this->logger = $this->getMockBuilder('\\OCP\\ILogger') ->disableOriginalConstructor()->getMock(); + $this->appManager = $this->getMockBuilder('\\OCP\\App\\IAppManager') + ->disableOriginalConstructor()->getMock(); $this->encryptionController = $this->getMockBuilder('\\OC\\Settings\\Controller\\EncryptionController') ->setConstructorArgs([ @@ -86,6 +91,7 @@ class EncryptionControllerTest extends TestCase { $this->userManager, $this->view, $this->logger, + $this->appManager, ]) ->setMethods(['getMigration']) ->getMock(); |