delete user test to take getHome into account to ensure it is also deleted subsequently

remotes/origin/poc-doctrine-migrations
Arthur Schiwon 2015-06-17 14:13:01 +07:00
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/');
}
/**