Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/registration.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2022-08-08 16:48:12 +0300
committerJoas Schilling <coding@schilljs.com>2022-08-08 16:48:12 +0300
commit666a8ca6610f3782589e3ac62f7dd31af7e7bf0c (patch)
tree602c6d6d57855af5b7d18ae011ba2070f8391c80
parentcd7ff50a39185d079980957df6d828fd958f8d5a (diff)
Fix unit testsnpm-audit-fix
Signed-off-by: Joas Schilling <coding@schilljs.com>
-rw-r--r--tests/Unit/Controller/RegisterControllerTest.php5
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');