From 4ff7551574a45f27bcbed6f86fb34de63c0e23b9 Mon Sep 17 00:00:00 2001 From: Greta Doci <gretadoci@gmail.com> Date: Wed, 11 Sep 2019 14:57:11 +0200 Subject: [PATCH] Fixed the test Signed-off-by: Greta Doci <gretadoci@gmail.com> --- tests/Settings/Controller/AuthSettingsControllerTest.php | 5 +++++ 1 file changed, 5 insertions(+) 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 -- GitLab