Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2018-07-13 10:16:57 +0300
committerMorris Jobke <hey@morrisjobke.de>2018-07-13 16:42:34 +0300
commit9f9f1d8cb073bf8ad7edd0853244e91493834c09 (patch)
treef2b791b8340deb72143d69066e7e8f31dfef97d6
parent7c8cec808ff0fe83995551b2f656771012147898 (diff)
Fix tests for backup ldap server connection
Signed-off-by: Julius Härtl <jus@bitgrid.net>
-rw-r--r--apps/user_ldap/tests/ConnectionTest.php4
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));