Skip to content

A free open source IT asset/license management system

LDAP test needs to be fixed to match new behavior

Brady Wetherington890d13bd5247
diff --git a/tests/Unit/LdapTest.php b/tests/Unit/LdapTest.php
index 358c97e96f..e4e2d5c600 100644
--- a/tests/Unit/LdapTest.php
+++ b/tests/Unit/LdapTest.php
@@ -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 */