Ejemplo n.º 1
0
 /**
  * try to update an email account
  */
 public function testSetPassword()
 {
     // add smtp user
     $user = $this->testAddEmailAccount();
     $this->_backend->inspectSetPassword($this->_objects['user']->getId(), Tinebase_Record_Abstract::generateUID());
     //$this->assertEquals(md5('password'), $updatedUser->emailPassword);
 }
 /**
  * try to set password
  */
 public function testSetPassword()
 {
     $user = $this->testAddEmailAccount();
     $newPassword = Tinebase_Record_Abstract::generateUID();
     $this->_backend->inspectSetPassword($this->_objects['user']->getId(), $newPassword);
     // fetch email pw from db
     $queryResult = $this->_fetchUserFromDovecotUsersTable($user->getId());
     $hashPw = new Hash_Password();
     $this->assertTrue($hashPw->validate($queryResult[0]['password'], $newPassword), 'password mismatch');
 }