diff options
author | Joas Schilling <coding@schilljs.com> | 2022-08-08 16:48:12 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2022-08-08 16:48:12 +0300 |
commit | 666a8ca6610f3782589e3ac62f7dd31af7e7bf0c (patch) | |
tree | 602c6d6d57855af5b7d18ae011ba2070f8391c80 | |
parent | cd7ff50a39185d079980957df6d828fd958f8d5a (diff) |
Fix unit testsnpm-audit-fix
Signed-off-by: Joas Schilling <coding@schilljs.com>
-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'); |