Fix tests for backup ldap server connection

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl 2018-07-13 09:16:57 +02:00
parent c2616df541
commit 858bd67eff
No known key found for this signature in database
GPG Key ID: 4C614C6ED2CDE6DF
1 changed files with 2 additions and 2 deletions

View File

@ -110,7 +110,7 @@ class ConnectionTest extends \Test\TestCase {
->method('setOption') ->method('setOption')
->will($this->returnValue(true)); ->will($this->returnValue(true));
$this->ldap->expects($this->exactly(2)) $this->ldap->expects($this->exactly(3))
->method('connect') ->method('connect')
->will($this->returnValue('ldapResource')); ->will($this->returnValue('ldapResource'));
@ -119,7 +119,7 @@ class ConnectionTest extends \Test\TestCase {
->will($this->returnValue(0)); ->will($this->returnValue(0));
// Not called often enough? Then, the fallback to the backup server is broken. // 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') ->method('getFromCache')
->with('overrideMainServer') ->with('overrideMainServer')
->will($this->onConsecutiveCalls(false, false, true, true)); ->will($this->onConsecutiveCalls(false, false, true, true));