|
16 | 16 | use OC\Authentication\Token\IProvider; |
17 | 17 | use OC\Authentication\Token\IToken; |
18 | 18 | use OC\Authentication\Token\PublicKeyToken; |
| 19 | +use OC\KnownUser\KnownUserService; |
19 | 20 | use OC\Security\CSRF\CsrfTokenManager; |
20 | 21 | use OC\Session\Memory; |
21 | 22 | use OC\User\LoginException; |
@@ -183,6 +184,7 @@ public function testLoginValidPasswordEnabled(): void { |
183 | 184 | $this->createMock(ICacheFactory::class), |
184 | 185 | $this->createMock(IEventDispatcher::class), |
185 | 186 | $this->createMock(LoggerInterface::class), |
| 187 | + $this->createMock(KnownUserService::class), |
186 | 188 | ]) |
187 | 189 | ->getMock(); |
188 | 190 |
|
@@ -249,6 +251,7 @@ public function testLoginValidPasswordDisabled(): void { |
249 | 251 | $this->createMock(ICacheFactory::class), |
250 | 252 | $this->createMock(IEventDispatcher::class), |
251 | 253 | $this->createMock(LoggerInterface::class), |
| 254 | + $this->createMock(KnownUserService::class), |
252 | 255 | ]) |
253 | 256 | ->getMock(); |
254 | 257 |
|
@@ -283,6 +286,7 @@ public function testLoginInvalidPassword(): void { |
283 | 286 | $this->createMock(ICacheFactory::class), |
284 | 287 | $this->createMock(IEventDispatcher::class), |
285 | 288 | $this->createMock(LoggerInterface::class), |
| 289 | + $this->createMock(KnownUserService::class), |
286 | 290 | ]) |
287 | 291 | ->getMock(); |
288 | 292 | $backend = $this->createMock(\Test\Util\User\Dummy::class); |
@@ -327,6 +331,7 @@ public function testPasswordlessLoginNoLastCheckUpdate(): void { |
327 | 331 | $this->createMock(ICacheFactory::class), |
328 | 332 | $this->createMock(IEventDispatcher::class), |
329 | 333 | $this->createMock(LoggerInterface::class), |
| 334 | + $this->createMock(KnownUserService::class), |
330 | 335 | ]) |
331 | 336 | ->getMock(); |
332 | 337 | $userSession = new Session($manager, $session, $this->timeFactory, $this->tokenProvider, $this->config, $this->random, $this->lockdownManager, $this->logger, $this->dispatcher); |
@@ -371,6 +376,7 @@ public function testLoginLastCheckUpdate(): void { |
371 | 376 | $this->createMock(ICacheFactory::class), |
372 | 377 | $this->createMock(IEventDispatcher::class), |
373 | 378 | $this->createMock(LoggerInterface::class), |
| 379 | + $this->createMock(KnownUserService::class), |
374 | 380 | ]) |
375 | 381 | ->getMock(); |
376 | 382 | $userSession = new Session($manager, $session, $this->timeFactory, $this->tokenProvider, $this->config, $this->random, $this->lockdownManager, $this->logger, $this->dispatcher); |
@@ -745,6 +751,7 @@ public function testRememberLoginValidToken(): void { |
745 | 751 | $this->createMock(ICacheFactory::class), |
746 | 752 | $this->createMock(IEventDispatcher::class), |
747 | 753 | $this->createMock(LoggerInterface::class), |
| 754 | + $this->createMock(KnownUserService::class), |
748 | 755 | ]) |
749 | 756 | ->getMock(); |
750 | 757 | $userSession = $this->getMockBuilder(Session::class) |
@@ -835,6 +842,7 @@ public function testRememberLoginInvalidSessionToken(): void { |
835 | 842 | $this->createMock(ICacheFactory::class), |
836 | 843 | $this->createMock(IEventDispatcher::class), |
837 | 844 | $this->createMock(LoggerInterface::class), |
| 845 | + $this->createMock(KnownUserService::class), |
838 | 846 | ]) |
839 | 847 | ->getMock(); |
840 | 848 | $userSession = $this->getMockBuilder(Session::class) |
@@ -900,6 +908,7 @@ public function testRememberLoginInvalidToken(): void { |
900 | 908 | $this->createMock(ICacheFactory::class), |
901 | 909 | $this->createMock(IEventDispatcher::class), |
902 | 910 | $this->createMock(LoggerInterface::class), |
| 911 | + $this->createMock(KnownUserService::class), |
903 | 912 | ]) |
904 | 913 | ->getMock(); |
905 | 914 | $userSession = $this->getMockBuilder(Session::class) |
@@ -953,6 +962,7 @@ public function testRememberLoginInvalidUser(): void { |
953 | 962 | $this->createMock(ICacheFactory::class), |
954 | 963 | $this->createMock(IEventDispatcher::class), |
955 | 964 | $this->createMock(LoggerInterface::class), |
| 965 | + $this->createMock(KnownUserService::class), |
956 | 966 | ]) |
957 | 967 | ->getMock(); |
958 | 968 | $userSession = $this->getMockBuilder(Session::class) |
|
0 commit comments