Skip to content

Commit

Permalink
test(unit): streamline default value "for allow_multiple_user_back_ends"
Browse files Browse the repository at this point in the history
Signed-off-by: Arthur Schiwon <[email protected]>
  • Loading branch information
blizzz committed May 31, 2024
1 parent 1ca53c6 commit 1685d85
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/Settings/Admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ public function getForm() {
'type' => 'checkbox',
'hideForEnv' => true,
'global' => true,
'value' => $this->config->getAppValue('user_saml', 'general-allow_multiple_user_back_ends')
'value' => $this->config->getAppValue('user_saml', 'general-allow_multiple_user_back_ends', '0')
];
}

Expand Down
2 changes: 1 addition & 1 deletion tests/unit/Settings/AdminTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ public function testGetFormWithSaml() {
$params = $this->formDataProvider();
$params['type'] = 'saml';
$params['general']['require_provisioned_account']['value'] = 0;
$params['general']['allow_multiple_user_back_ends']['value'] = '';
$params['general']['allow_multiple_user_back_ends']['value'] = '0';

$expected = new TemplateResponse('user_saml', 'admin', $params);
$this->assertEquals($expected, $this->admin->getForm());
Expand Down

0 comments on commit 1685d85

Please sign in to comment.