mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
delete user test to take getHome into account to ensure it is also deleted subsequently
This commit is contained in:
parent
97127cd971
commit
0e522a0b01
1 changed files with 4 additions and 1 deletions
|
|
@ -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/');
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue