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 */