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
path: root/tests
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2021-11-24 17:27:54 +0300
committerJoas Schilling <coding@schilljs.com>2021-11-24 17:27:54 +0300
commit6c7effa7a6f35577284dc6fc68c57e04fea65d3a (patch)
treea7851b48c88394343e4d9247305f2094e6f591ff /tests
parent318831db990c8ff0e7c18d29b0fe892c60de7fe7 (diff)
Fix unit tests
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/Unit/Controller/RegisterControllerTest.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/Unit/Controller/RegisterControllerTest.php b/tests/Unit/Controller/RegisterControllerTest.php
index bad9d29..1fcda97 100644
--- a/tests/Unit/Controller/RegisterControllerTest.php
+++ b/tests/Unit/Controller/RegisterControllerTest.php
@@ -132,6 +132,7 @@ class RegisterControllerTest extends TestCase {
$controller = $this->getController();
$response = $controller->showEmailForm($email, $message);
$disable_email_verification = $this->config->getAppValue('registration', 'disable_email_verification', 'no');
+ $email_is_optional = $this->config->getAppValue('registration', 'email_is_optional', 'no');
$this->loginFlowService->method('isUsingLoginFlow')
->willReturn(false);
@@ -142,6 +143,7 @@ class RegisterControllerTest extends TestCase {
self::assertSame([
'email' => $email,
'message' => $message,
+ 'email_is_optional' => $email_is_optional,
'disable_email_verification' => $disable_email_verification,
'is_login_flow' => false,
], $response->getParams());
@@ -473,8 +475,8 @@ class RegisterControllerTest extends TestCase {
self::assertSame([
'email' => $email,
- 'email_is_optional' => false,
'email_is_login' => false,
+ 'email_is_optional' => false,
'loginname' => $username,
'fullname' => $fullname,
'show_fullname' => true,