Ejemplo n.º 1
0
 /**
  * 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']);
 }
Ejemplo n.º 2
0
 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);
 }