summaryrefslogtreecommitdiffstats
path: root/apps/user_ldap/tests
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2018-01-03 21:44:30 +0100
committerArthur Schiwon <blizzz@arthur-schiwon.de>2018-01-03 21:44:30 +0100
commite9eccf34f9258a3720afb3cde218275f4b35f884 (patch)
tree70b839b5bb856f5682fcc4b71561f4c95993dd8e /apps/user_ldap/tests
parent4f3d52a364b81c2af7bac274780af9b7650d6326 (diff)
downloadnextcloud-server-e9eccf34f9258a3720afb3cde218275f4b35f884.tar.gz
nextcloud-server-e9eccf34f9258a3720afb3cde218275f4b35f884.zip
removes invalid tests, adapts another one
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'apps/user_ldap/tests')
-rw-r--r--apps/user_ldap/tests/User_LDAPTest.php7
1 files changed, 3 insertions, 4 deletions
diff --git a/apps/user_ldap/tests/User_LDAPTest.php b/apps/user_ldap/tests/User_LDAPTest.php
index 5b53cc3da2c..3262a2360ad 100644
--- a/apps/user_ldap/tests/User_LDAPTest.php
+++ b/apps/user_ldap/tests/User_LDAPTest.php
@@ -1343,10 +1343,6 @@ class User_LDAPTest extends TestCase {
}
return true;
}));
-
- $access->userManager->expects($this->atLeastOnce())
- ->method('get')
- ->willReturn($this->createMock(User::class));
}
/**
@@ -1357,6 +1353,9 @@ class User_LDAPTest extends TestCase {
$access = $this->getAccessMock();
$this->prepareAccessForSetPassword($access);
+ $access->userManager->expects($this->atLeastOnce())
+ ->method('get')
+ ->willReturn($this->createMock(User::class));
$backend = new UserLDAP($access, $this->createMock(IConfig::class), $this->createMock(INotificationManager::class), $this->createMock(Session::class), $this->getDefaultPluginManagerMock());
\OC_User::useBackend($backend);