LDAP: Fix testUseBackupServer unit test

Signed-off-by: Jarkko Lehtoranta <devel@jlranta.com>
pull/5466/head
Jarkko Lehtoranta 9 years ago
parent de9a9bc004
commit 97e14cccf2
  1. 4
      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')

Loading…
Cancel
Save