diff options
author | Artur Neumann <artur@jankaritech.com> | 2023-01-09 12:46:10 +0545 |
---|---|---|
committer | Artur Neumann <artur@jankaritech.com> | 2023-06-15 13:20:44 +0545 |
commit | f9227345c90621e804b5e588a7e7102263e1c029 (patch) | |
tree | f2dd9359728af0756754b5f8c14aeb88a6072423 /apps | |
parent | 33512bbdbf9b199cdb940f8273ff407a4c007b1b (diff) | |
download | nextcloud-server-f9227345c90621e804b5e588a7e7102263e1c029.tar.gz nextcloud-server-f9227345c90621e804b5e588a7e7102263e1c029.zip |
move mocks into private variables
Signed-off-by: Artur Neumann <artur@jankaritech.com>
Diffstat (limited to 'apps')
-rw-r--r-- | apps/oauth2/tests/Controller/SettingsControllerTest.php | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/apps/oauth2/tests/Controller/SettingsControllerTest.php b/apps/oauth2/tests/Controller/SettingsControllerTest.php index 4692dd28830..af4745c5923 100644 --- a/apps/oauth2/tests/Controller/SettingsControllerTest.php +++ b/apps/oauth2/tests/Controller/SettingsControllerTest.php @@ -54,6 +54,10 @@ class SettingsControllerTest extends TestCase { private $secureRandom; /** @var AccessTokenMapper|\PHPUnit\Framework\MockObject\MockObject */ private $accessTokenMapper; + /** @var IAuthTokenProvider|\PHPUnit\Framework\MockObject\MockObject */ + private $authTokenProvider; + /** @var IUserManager|\PHPUnit\Framework\MockObject\MockObject */ + private $userManager; /** @var SettingsController */ private $settingsController; /** @var ICrypto|\PHPUnit\Framework\MockObject\MockObject */ @@ -68,6 +72,8 @@ class SettingsControllerTest extends TestCase { $this->clientMapper = $this->createMock(ClientMapper::class); $this->secureRandom = $this->createMock(ISecureRandom::class); $this->accessTokenMapper = $this->createMock(AccessTokenMapper::class); + $this->authTokenProvider = $this->createMock(IAuthTokenProvider::class); + $this->userManager = $this->createMock(IUserManager::class); $this->l = $this->createMock(IL10N::class); $this->l->method('t') ->willReturnArgument(0); @@ -81,8 +87,8 @@ class SettingsControllerTest extends TestCase { $this->accessTokenMapper, $this->l, $this->crypto, - $this->createMock(IAuthTokenProvider::class), - $this->createMock(IUserManager::class) + $this->authTokenProvider, + $this->userManager ); } |