Example #1
0
 /**
  * @test
  */
 public function setPasswordForStringSetsPassword()
 {
     $this->subject->setPassword('Conceived at T3CON10');
     $this->assertAttributeEquals('Conceived at T3CON10', 'password', $this->subject);
 }
Example #2
0
 /**
  *  Check if password needs to be updated
  *
  * @param \Vendor\Guestbook\Domain\Model\Author $author
  * @return bool|string
  */
 private function checkAuthorPassword(\Vendor\Guestbook\Domain\Model\Author $author)
 {
     $success = TRUE;
     $dataProperties = $author->_getCleanProperties();
     if (isset($dataProperties['password'])) {
         $dataPass = $dataProperties['password'];
         if ($dataPass === $author->getPassword()) {
             $success = FALSE;
         }
     }
     return $success;
 }