summaryrefslogtreecommitdiffstats
path: root/apps/user_ldap
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@owncloud.com>2015-06-17 14:13:01 +0200
committerArthur Schiwon <blizzz@owncloud.com>2015-06-17 14:13:01 +0200
commit0e522a0b018b868de4ddf1402991e509710aa250 (patch)
treef91d4c259a4d919f269d2056c015fd4534837aeb /apps/user_ldap
parent97127cd9716ec1169367481c47d21e6bef83c0d2 (diff)
downloadnextcloud-server-0e522a0b018b868de4ddf1402991e509710aa250.tar.gz
nextcloud-server-0e522a0b018b868de4ddf1402991e509710aa250.zip
delete user test to take getHome into account to ensure it is also deleted subsequently
Diffstat (limited to 'apps/user_ldap')
-rw-r--r--apps/user_ldap/tests/user_ldap.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/user_ldap/tests/user_ldap.php b/apps/user_ldap/tests/user_ldap.php
index 53229e2d64a..2f15a5acc6d 100644
--- a/apps/user_ldap/tests/user_ldap.php
+++ b/apps/user_ldap/tests/user_ldap.php
@@ -259,12 +259,15 @@ class Test_User_Ldap_Direct extends \Test\TestCase {
$config = $this->getMock('\OCP\IConfig');
$config->expects($this->exactly(2))
->method('getUserValue')
- ->will($this->returnValue(1));
+ ->will($this->onConsecutiveCalls('1', '/var/vhome/jdings/'));
$backend = new UserLDAP($access, $config);
$result = $backend->deleteUser('jeremy');
$this->assertTrue($result);
+
+ $home = $backend->getHome('jeremy');
+ $this->assertSame($home, '/var/vhome/jdings/');
}
/**