From 87242ce6cb462bc933e63d80e514ae5096ee2b67 Mon Sep 17 00:00:00 2001
From: Matthieu Leboeuf <contact@matthieul.dev>
Date: Mon, 28 Oct 2024 22:27:15 +0100
Subject: [PATCH] Adapt tests with displayName array

---
 tests/Auth/LdapTest.php | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/tests/Auth/LdapTest.php b/tests/Auth/LdapTest.php
index ef95bc2e8..27169a2be 100644
--- 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',
-            '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',
@@ -581,7 +581,7 @@ class LdapTest extends TestCase
     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);
@@ -606,7 +606,7 @@ class LdapTest extends TestCase
     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);