]>
BookStack Code Mirror - bookstack/commitdiff
projects
/
bookstack
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
inline
| side by side (parent:
72d9ffd
)
Adapt tests with displayName array
5295/head
author
Matthieu Leboeuf
<redacted>
Mon, 28 Oct 2024 21:27:15 +0000
(22:27 +0100)
committer
Matthieu Leboeuf
<redacted>
Mon, 28 Oct 2024 21:27:15 +0000
(22:27 +0100)
tests/Auth/LdapTest.php
patch
|
blob
|
history
diff --git
a/tests/Auth/LdapTest.php
b/tests/Auth/LdapTest.php
index ef95bc2e8f41fdaad71d30a13352229f0996e20f..27169a2becff30e878c3f164cb255affd6bcf0eb 100644
(file)
--- a/
tests/Auth/LdapTest.php
+++ b/
tests/Auth/LdapTest.php
@@
-29,7
+29,7
@@
class LdapTest extends TestCase
'auth.defaults.guard' => 'ldap',
'services.ldap.base_dn' => 'dc=ldap,dc=local',
'services.ldap.email_attribute' => 'mail',
'auth.defaults.guard' => 'ldap',
'services.ldap.base_dn' => 'dc=ldap,dc=local',
'services.ldap.email_attribute' => 'mail',
- 'services.ldap.display_name_attribute' =>
'cn'
,
+ 'services.ldap.display_name_attribute' =>
['cn']
,
'services.ldap.id_attribute' => 'uid',
'services.ldap.user_to_groups' => false,
'services.ldap.version' => '3',
'services.ldap.id_attribute' => 'uid',
'services.ldap.user_to_groups' => false,
'services.ldap.version' => '3',
@@
-581,7
+581,7
@@
class LdapTest extends TestCase
public function test_login_uses_specified_display_name_attribute()
{
app('config')->set([
public function test_login_uses_specified_display_name_attribute()
{
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()
{
app('config')->set([
public function test_login_uses_default_display_name_attribute_if_specified_not_present()
{
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);