summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--core/Controller/LoginController.php1
-rw-r--r--tests/Core/Controller/LoginControllerTest.php7
2 files changed, 7 insertions, 1 deletions
diff --git a/core/Controller/LoginController.php b/core/Controller/LoginController.php
index 12431571256..34c80f6b8b0 100644
--- a/core/Controller/LoginController.php
+++ b/core/Controller/LoginController.php
@@ -74,6 +74,7 @@ class LoginController extends Controller {
* @param IURLGenerator $urlGenerator
* @param ILogger $logger
* @param Manager $twoFactorManager
+ * @param Defaults $defaults
*/
public function __construct($appName,
IRequest $request,
diff --git a/tests/Core/Controller/LoginControllerTest.php b/tests/Core/Controller/LoginControllerTest.php
index 169beff2b9d..e02b8403a2a 100644
--- a/tests/Core/Controller/LoginControllerTest.php
+++ b/tests/Core/Controller/LoginControllerTest.php
@@ -26,6 +26,7 @@ use OC\Core\Controller\LoginController;
use OC\User\Session;
use OCP\AppFramework\Http\RedirectResponse;
use OCP\AppFramework\Http\TemplateResponse;
+use OCP\Defaults;
use OCP\IConfig;
use OCP\ILogger;
use OCP\IRequest;
@@ -54,6 +55,8 @@ class LoginControllerTest extends TestCase {
private $logger;
/** @var Manager|\PHPUnit_Framework_MockObject_MockObject */
private $twoFactorManager;
+ /** @var Defaults|\PHPUnit_Framework_MockObject_MockObject */
+ private $defaults;
public function setUp() {
parent::setUp();
@@ -65,6 +68,7 @@ class LoginControllerTest extends TestCase {
$this->urlGenerator = $this->createMock(IURLGenerator::class);
$this->logger = $this->createMock(ILogger::class);
$this->twoFactorManager = $this->createMock(Manager::class);
+ $this->defaults = $this->createMock(Defaults::class);
$this->loginController = new LoginController(
'core',
@@ -75,7 +79,8 @@ class LoginControllerTest extends TestCase {
$this->userSession,
$this->urlGenerator,
$this->logger,
- $this->twoFactorManager
+ $this->twoFactorManager,
+ $this->defaults
);
}