From 97e14cccf2410d163e800b19bdf48019bc3ba293 Mon Sep 17 00:00:00 2001 From: Jarkko Lehtoranta Date: Tue, 20 Jun 2017 04:46:35 +0300 Subject: [PATCH] LDAP: Fix testUseBackupServer unit test Signed-off-by: Jarkko Lehtoranta --- apps/user_ldap/tests/ConnectionTest.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apps/user_ldap/tests/ConnectionTest.php b/apps/user_ldap/tests/ConnectionTest.php index e013773b7d9..ab7abf63679 100644 --- a/apps/user_ldap/tests/ConnectionTest.php +++ b/apps/user_ldap/tests/ConnectionTest.php @@ -111,6 +111,10 @@ class ConnectionTest extends \Test\TestCase { ->method('connect') ->will($this->returnValue('ldapResource')); + $this->ldap->expects($this->any()) + ->method('errno') + ->will($this->returnValue(0)); + // Not called often enough? Then, the fallback to the backup server is broken. $this->connection->expects($this->exactly(4)) ->method('getFromCache')