mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-05-02 15:30:06 +00:00
Adapt tests with displayName array
This commit is contained in:
parent
72d9ffd8b4
commit
87242ce6cb
1 changed files with 3 additions and 3 deletions
|
@ -29,7 +29,7 @@ class LdapTest extends TestCase
|
||||||
'auth.defaults.guard' => 'ldap',
|
'auth.defaults.guard' => 'ldap',
|
||||||
'services.ldap.base_dn' => 'dc=ldap,dc=local',
|
'services.ldap.base_dn' => 'dc=ldap,dc=local',
|
||||||
'services.ldap.email_attribute' => 'mail',
|
'services.ldap.email_attribute' => 'mail',
|
||||||
'services.ldap.display_name_attribute' => 'cn',
|
'services.ldap.display_name_attribute' => ['cn'],
|
||||||
'services.ldap.id_attribute' => 'uid',
|
'services.ldap.id_attribute' => 'uid',
|
||||||
'services.ldap.user_to_groups' => false,
|
'services.ldap.user_to_groups' => false,
|
||||||
'services.ldap.version' => '3',
|
'services.ldap.version' => '3',
|
||||||
|
@ -581,7 +581,7 @@ class LdapTest extends TestCase
|
||||||
public function test_login_uses_specified_display_name_attribute()
|
public function test_login_uses_specified_display_name_attribute()
|
||||||
{
|
{
|
||||||
app('config')->set([
|
app('config')->set([
|
||||||
'services.ldap.display_name_attribute' => 'displayName',
|
'services.ldap.display_name_attribute' => ['displayName'],
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$this->commonLdapMocks(1, 1, 2, 4, 2);
|
$this->commonLdapMocks(1, 1, 2, 4, 2);
|
||||||
|
@ -606,7 +606,7 @@ class LdapTest extends TestCase
|
||||||
public function test_login_uses_default_display_name_attribute_if_specified_not_present()
|
public function test_login_uses_default_display_name_attribute_if_specified_not_present()
|
||||||
{
|
{
|
||||||
app('config')->set([
|
app('config')->set([
|
||||||
'services.ldap.display_name_attribute' => 'displayName',
|
'services.ldap.display_name_attribute' => ['displayName'],
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$this->commonLdapMocks(1, 1, 2, 4, 2);
|
$this->commonLdapMocks(1, 1, 2, 4, 2);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue