diff options
author | Julius Härtl <jus@bitgrid.net> | 2018-07-13 09:16:57 +0200 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2018-07-13 09:16:57 +0200 |
commit | 858bd67eff3c0d0b109d9a2fdc6797f979db5ebd (patch) | |
tree | c1aae2a8870c9633b4c08eea707ebad3d3f1ed01 /apps/user_ldap | |
parent | c2616df541f6c81f2061275af1e232c6e58b77bc (diff) | |
download | nextcloud-server-858bd67eff3c0d0b109d9a2fdc6797f979db5ebd.tar.gz nextcloud-server-858bd67eff3c0d0b109d9a2fdc6797f979db5ebd.zip |
Fix tests for backup ldap server connection
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'apps/user_ldap')
-rw-r--r-- | apps/user_ldap/tests/ConnectionTest.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/user_ldap/tests/ConnectionTest.php b/apps/user_ldap/tests/ConnectionTest.php index c6c1fe11922..7a5da72fcdb 100644 --- a/apps/user_ldap/tests/ConnectionTest.php +++ b/apps/user_ldap/tests/ConnectionTest.php @@ -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)); |