aboutsummaryrefslogtreecommitdiffstats
path: root/apps/encryption/tests/Users/SetupTest.php
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2020-11-22 21:56:00 +0100
committerMorris Jobke <hey@morrisjobke.de>2020-11-23 16:20:00 +0100
commitc832e6180bcefbd82748c8e240438d6c2e21b358 (patch)
tree6b22290c5f74bd53033b4d1957095d3e8bf2854e /apps/encryption/tests/Users/SetupTest.php
parent032de4f333904dfb3dedb29935d43bfee6bfe0d8 (diff)
downloadnextcloud-server-c832e6180bcefbd82748c8e240438d6c2e21b358.tar.gz
nextcloud-server-c832e6180bcefbd82748c8e240438d6c2e21b358.zip
Remove unused dependencies in encryption app setup
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'apps/encryption/tests/Users/SetupTest.php')
-rw-r--r--apps/encryption/tests/Users/SetupTest.php11
1 files changed, 1 insertions, 10 deletions
diff --git a/apps/encryption/tests/Users/SetupTest.php b/apps/encryption/tests/Users/SetupTest.php
index dfc020d5e02..1ab2fde21c5 100644
--- a/apps/encryption/tests/Users/SetupTest.php
+++ b/apps/encryption/tests/Users/SetupTest.php
@@ -30,8 +30,6 @@ namespace OCA\Encryption\Tests\Users;
use OCA\Encryption\Crypto\Crypt;
use OCA\Encryption\KeyManager;
use OCA\Encryption\Users\Setup;
-use OCP\ILogger;
-use OCP\IUserSession;
use Test\TestCase;
class SetupTest extends TestCase {
@@ -50,10 +48,6 @@ class SetupTest extends TestCase {
protected function setUp(): void {
parent::setUp();
- $logMock = $this->createMock(ILogger::class);
- $userSessionMock = $this->getMockBuilder(IUserSession::class)
- ->disableOriginalConstructor()
- ->getMock();
$this->cryptMock = $this->getMockBuilder(Crypt::class)
->disableOriginalConstructor()
->getMock();
@@ -62,10 +56,7 @@ class SetupTest extends TestCase {
->disableOriginalConstructor()
->getMock();
- /** @var \OCP\ILogger $logMock */
- /** @var \OCP\IUserSession $userSessionMock */
- $this->instance = new Setup($logMock,
- $userSessionMock,
+ $this->instance = new Setup(
$this->cryptMock,
$this->keyManagerMock);
}