diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2020-03-31 22:55:13 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-31 22:55:13 +0200 |
commit | 590849e4d7a61760da499f63789e8d31ece81d24 (patch) | |
tree | 3a4b2f2484be7af1b9c3871ea29bd6d964386ead /tests | |
parent | b39fb55ee0b4bc4c4bd0fcedca3f836a17586495 (diff) | |
parent | 53db05a1f67fc974dba904ec158b2d67fa72df95 (diff) | |
download | nextcloud-server-590849e4d7a61760da499f63789e8d31ece81d24.tar.gz nextcloud-server-590849e4d7a61760da499f63789e8d31ece81d24.zip |
Merge pull request #19858 from nextcloud/feature/webauthn
Add WebAuthn support
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Core/Controller/LoginControllerTest.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/Core/Controller/LoginControllerTest.php b/tests/Core/Controller/LoginControllerTest.php index cddf89527db..c1177d84e1e 100644 --- a/tests/Core/Controller/LoginControllerTest.php +++ b/tests/Core/Controller/LoginControllerTest.php @@ -83,6 +83,9 @@ class LoginControllerTest extends TestCase { /** @var IInitialStateService|MockObject */ private $initialStateService; + /** @var \OC\Authentication\WebAuthn\Manager|MockObject */ + private $webAuthnManager; + protected function setUp(): void { parent::setUp(); $this->request = $this->createMock(IRequest::class); @@ -97,6 +100,8 @@ class LoginControllerTest extends TestCase { $this->throttler = $this->createMock(Throttler::class); $this->chain = $this->createMock(LoginChain::class); $this->initialStateService = $this->createMock(IInitialStateService::class); + $this->webAuthnManager = $this->createMock(\OC\Authentication\WebAuthn\Manager::class); + $this->request->method('getRemoteAddress') ->willReturn('1.2.3.4'); @@ -118,7 +123,8 @@ class LoginControllerTest extends TestCase { $this->defaults, $this->throttler, $this->chain, - $this->initialStateService + $this->initialStateService, + $this->webAuthnManager ); } |