3
0
mirror of https://github.com/snipe/snipe-it.git synced 2025-10-29 19:31:41 +00:00

Merge pull request #18108 from uberbrady/fix_ldap_tests

Fixed - LDAP test needs to be fixed to match new behavior
This commit is contained in:
snipe 2025-10-28 12:49:11 +00:00 committed by GitHub
commit 2b4986571c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -121,7 +121,7 @@ class LdapTest extends TestCase
$ldap_set_option->expects($this->exactly(12));
//
$this->getFunctionMock("App\\Models", "ldap_bind")->expects($this->exactly(4))->willReturn(
$this->getFunctionMock("App\\Models", "ldap_bind")->expects($this->exactly(3))->willReturn(
true, /* initial admin connection for 'fast path' */
false, /* the actual login for the user */
false, /* the direct login for the user binding-as-themselves in the legacy path */