/** * checks whether a user is still existing in LDAP * @param string[] $user */ private function checkUser(array $user) { if ($this->userBackend->userExistsOnLDAP($user['name'])) { //still available, all good return; } $this->dui->markUser($user['name']); }
public function testCountUsersFailing() { $access = $this->getAccessMock(); $access->expects($this->once())->method('countUsers')->will($this->returnValue(false)); $backend = new UserLDAP($access, $this->getMock('\\OCP\\IConfig')); $result = $backend->countUsers(); $this->assertFalse($result); }