diff options
Diffstat (limited to 'tests/Unit/Controller/RegisterControllerTest.php')
-rw-r--r-- | tests/Unit/Controller/RegisterControllerTest.php | 5 |
1 files changed, 5 insertions, 0 deletions
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'); |