Fix tests for backup ldap server connection
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
parent
7c8cec808f
commit
9f9f1d8cb0
|
@ -110,7 +110,7 @@ class ConnectionTest extends \Test\TestCase {
|
|||
->method('setOption')
|
||||
->will($this->returnValue(true));
|
||||
|
||||
$this->ldap->expects($this->exactly(2))
|
||||
$this->ldap->expects($this->exactly(3))
|
||||
->method('connect')
|
||||
->will($this->returnValue('ldapResource'));
|
||||
|
||||
|
@ -119,7 +119,7 @@ class ConnectionTest extends \Test\TestCase {
|
|||
->will($this->returnValue(0));
|
||||
|
||||
// Not called often enough? Then, the fallback to the backup server is broken.
|
||||
$this->connection->expects($this->exactly(3))
|
||||
$this->connection->expects($this->exactly(4))
|
||||
->method('getFromCache')
|
||||
->with('overrideMainServer')
|
||||
->will($this->onConsecutiveCalls(false, false, true, true));
|
||||
|
|
Loading…
Reference in New Issue