diff options
author | Christoph Wurst <ChristophWurst@users.noreply.github.com> | 2021-08-19 12:40:40 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-19 12:40:40 +0200 |
commit | 4b0e18ae1b533cca6e9da8031ea55491718280c8 (patch) | |
tree | ff219d60b911bd2c525d49fb4574bc3e61f88a67 /tests/Core | |
parent | 3dc7fd27f177993e4032c71789fac55e0af01880 (diff) | |
parent | b1086e25bb9c92c939116201fe7893ab9a88123a (diff) | |
download | nextcloud-server-4b0e18ae1b533cca6e9da8031ea55491718280c8.tar.gz nextcloud-server-4b0e18ae1b533cca6e9da8031ea55491718280c8.zip |
Merge pull request #27294 from pjft/patch-2
Update TwoFactorChallengeController.php
Diffstat (limited to 'tests/Core')
-rw-r--r-- | tests/Core/Controller/TwoFactorChallengeControllerTest.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/Core/Controller/TwoFactorChallengeControllerTest.php b/tests/Core/Controller/TwoFactorChallengeControllerTest.php index 1a2a4d8eaa5..b899a1b236a 100644 --- a/tests/Core/Controller/TwoFactorChallengeControllerTest.php +++ b/tests/Core/Controller/TwoFactorChallengeControllerTest.php @@ -57,6 +57,9 @@ class TwoFactorChallengeControllerTest extends TestCase { /** @var IURLGenerator|\PHPUnit\Framework\MockObject\MockObject */ private $urlGenerator; + /** @var ILogger|\PHPUnit\Framework\MockObject\MockObject */ + private $logger; + /** @var TwoFactorChallengeController|\PHPUnit\Framework\MockObject\MockObject */ private $controller; @@ -68,6 +71,7 @@ class TwoFactorChallengeControllerTest extends TestCase { $this->userSession = $this->createMock(IUserSession::class); $this->session = $this->createMock(ISession::class); $this->urlGenerator = $this->createMock(IURLGenerator::class); + $this->logger = $this->createMock(ILogger::class); $this->controller = $this->getMockBuilder(TwoFactorChallengeController::class) ->setConstructorArgs([ @@ -77,6 +81,7 @@ class TwoFactorChallengeControllerTest extends TestCase { $this->userSession, $this->session, $this->urlGenerator, + $this->logger, ]) ->setMethods(['getLogoutUrl']) ->getMock(); |