summaryrefslogtreecommitdiffstats
path: root/tests/Core
diff options
context:
space:
mode:
authorChristoph Wurst <ChristophWurst@users.noreply.github.com>2021-08-19 12:40:40 +0200
committerGitHub <noreply@github.com>2021-08-19 12:40:40 +0200
commit4b0e18ae1b533cca6e9da8031ea55491718280c8 (patch)
treeff219d60b911bd2c525d49fb4574bc3e61f88a67 /tests/Core
parent3dc7fd27f177993e4032c71789fac55e0af01880 (diff)
parentb1086e25bb9c92c939116201fe7893ab9a88123a (diff)
downloadnextcloud-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.php5
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();