Ejemplo n.º 1
0
 /**
  * test updating a Volunteer that does not exist
  *
  * @expectedException PDOException
  **/
 public function testUpdateInvalidVolunteer()
 {
     //create a Volunteer and try to update it without actually inserting it
     $volunteer = new Volunteer(null, $this->organization->getOrgId(), $this->VALID_EMAIL, $this->VALID_EMAIL_ACTIVATION, $this->VALID_FIRST_NAME, $this->VALID_HASH, $this->VALID_VOL_IS_ADMIN, $this->VALID_LAST_NAME, $this->VALID_PHONE, $this->VALID_SALT);
     $volunteer->update($this->getPDO());
 }