diff options
author | Jarkko Lehtoranta <devel@jlranta.com> | 2017-06-20 04:46:35 +0300 |
---|---|---|
committer | Jarkko Lehtoranta <devel@jlranta.com> | 2017-07-23 14:50:01 +0300 |
commit | 97e14cccf2410d163e800b19bdf48019bc3ba293 (patch) | |
tree | c51ad68270bfb4c2a9ab73afbffe0671fab7e2a6 /apps/user_ldap/tests/ConnectionTest.php | |
parent | de9a9bc00433a8793e9586cb3fbf6256104d6103 (diff) | |
download | nextcloud-server-97e14cccf2410d163e800b19bdf48019bc3ba293.tar.gz nextcloud-server-97e14cccf2410d163e800b19bdf48019bc3ba293.zip |
LDAP: Fix testUseBackupServer unit test
Signed-off-by: Jarkko Lehtoranta <devel@jlranta.com>
Diffstat (limited to 'apps/user_ldap/tests/ConnectionTest.php')
-rw-r--r-- | apps/user_ldap/tests/ConnectionTest.php | 4 |
1 files changed, 4 insertions, 0 deletions
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') |