LDAP: Fix testUseBackupServer unit test
Signed-off-by: Jarkko Lehtoranta <devel@jlranta.com>
This commit is contained in:
parent
de9a9bc004
commit
97e14cccf2
1 changed files with 4 additions and 0 deletions
|
@ -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…
Reference in a new issue