diff options
author | Bjoern Schiessle <bjoern@schiessle.org> | 2017-05-30 13:22:27 +0200 |
---|---|---|
committer | Bjoern Schiessle <bjoern@schiessle.org> | 2017-07-06 11:47:11 +0200 |
commit | 5f75468aa4341672e3a805ab5ce2ae03ba7402cc (patch) | |
tree | 1eafc930e978640e8aa4b78797e95fa9085fb934 /apps/encryption/tests | |
parent | 28a7e72868017fb545e8303f32c1204ffc4cc8c1 (diff) | |
download | nextcloud-server-5f75468aa4341672e3a805ab5ce2ae03ba7402cc.tar.gz nextcloud-server-5f75468aa4341672e3a805ab5ce2ae03ba7402cc.zip |
improve status messages
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
Diffstat (limited to 'apps/encryption/tests')
-rw-r--r-- | apps/encryption/tests/Controller/StatusControllerTest.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/apps/encryption/tests/Controller/StatusControllerTest.php b/apps/encryption/tests/Controller/StatusControllerTest.php index c6c92e2aac2..ee0f7b2661c 100644 --- a/apps/encryption/tests/Controller/StatusControllerTest.php +++ b/apps/encryption/tests/Controller/StatusControllerTest.php @@ -27,6 +27,7 @@ namespace OCA\Encryption\Tests\Controller; use OCA\Encryption\Controller\StatusController; use OCA\Encryption\Session; +use OCP\Encryption\IManager; use OCP\IRequest; use Test\TestCase; @@ -41,6 +42,9 @@ class StatusControllerTest extends TestCase { /** @var \OCA\Encryption\Session | \PHPUnit_Framework_MockObject_MockObject */ protected $sessionMock; + /** @var IManager | \PHPUnit_Framework_MockObject_MockObject */ + protected $encryptionManagerMock; + /** @var StatusController */ protected $controller; @@ -59,11 +63,13 @@ class StatusControllerTest extends TestCase { ->will($this->returnCallback(function($message) { return $message; })); + $this->encryptionManagerMock = $this->createMock(IManager::class); $this->controller = new StatusController('encryptionTest', $this->requestMock, $this->l10nMock, - $this->sessionMock); + $this->sessionMock, + $this->encryptionManagerMock); } |