diff options
author | Greta Doci <gretadoci@gmail.com> | 2019-09-11 14:57:11 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2019-09-15 12:04:28 +0200 |
commit | 4ff7551574a45f27bcbed6f86fb34de63c0e23b9 (patch) | |
tree | 7325de90c088fc5520293672f3ee8642ed7636c3 /tests | |
parent | 16d47b5928a4351aec444ad9a7f90a6e8d2a4676 (diff) | |
download | nextcloud-server-4ff7551574a45f27bcbed6f86fb34de63c0e23b9.tar.gz nextcloud-server-4ff7551574a45f27bcbed6f86fb34de63c0e23b9.zip |
Fixed the test
Signed-off-by: Greta Doci <gretadoci@gmail.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Settings/Controller/AuthSettingsControllerTest.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/Settings/Controller/AuthSettingsControllerTest.php b/tests/Settings/Controller/AuthSettingsControllerTest.php index d335abc98a3..d2fab77329a 100644 --- a/tests/Settings/Controller/AuthSettingsControllerTest.php +++ b/tests/Settings/Controller/AuthSettingsControllerTest.php @@ -34,6 +34,7 @@ use OCP\AppFramework\Http\JSONResponse; use OCP\ILogger; use OCP\IRequest; use OCP\ISession; +use OCP\IUserSession; use OCP\Security\ISecureRandom; use OCP\Session\Exceptions\SessionNotAvailableException; use PHPUnit\Framework\MockObject\MockObject; @@ -49,6 +50,8 @@ class AuthSettingsControllerTest extends TestCase { private $tokenProvider; /** @var ISession|MockObject */ private $session; + /**@var IUserSession|MockObject */ + private $userSession; /** @var ISecureRandom|MockObject */ private $secureRandom; /** @var IManager|MockObject */ @@ -63,6 +66,7 @@ class AuthSettingsControllerTest extends TestCase { $this->request = $this->createMock(IRequest::class); $this->tokenProvider = $this->createMock(IProvider::class); $this->session = $this->createMock(ISession::class); + $this->userSession = $this->createMock(IUserSession::class); $this->secureRandom = $this->createMock(ISecureRandom::class); $this->activityManager = $this->createMock(IManager::class); $this->remoteWipe = $this->createMock(RemoteWipe::class); @@ -76,6 +80,7 @@ class AuthSettingsControllerTest extends TestCase { $this->session, $this->secureRandom, $this->uid, + $this->userSession, $this->activityManager, $this->remoteWipe, $logger |