From 666a8ca6610f3782589e3ac62f7dd31af7e7bf0c Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Mon, 8 Aug 2022 15:48:12 +0200 Subject: Fix unit tests Signed-off-by: Joas Schilling --- tests/Unit/Controller/RegisterControllerTest.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/Unit/Controller/RegisterControllerTest.php b/tests/Unit/Controller/RegisterControllerTest.php index dc306d7..ca54a97 100644 --- a/tests/Unit/Controller/RegisterControllerTest.php +++ b/tests/Unit/Controller/RegisterControllerTest.php @@ -135,6 +135,11 @@ class RegisterControllerTest extends TestCase { * @param string $message */ public function testShowEmailForm(string $email, string $message): void { + $this->config->method('getAppValue') + ->willReturnMap([ + ['registration', 'allowed_domains', '', ''], + ]); + $controller = $this->getController(); $response = $controller->showEmailForm($email, $message); $disable_email_verification = $this->config->getAppValue('registration', 'disable_email_verification', 'no'); -- cgit v1.2.3