/** * test updating a Tweet that already exists * * @expectedException PDOException **/ public function testUpdateInvalidUser() { //create tweet with a non null userId and watch it fail $user = new User(null, $this->company->getCompanyId(), $this->crew->getCrewId(), $this->access->getAccessId(), $this->VALID_USERPHONE, $this->VALID_USERFIRSTNAME, $this->VALID_USERLASTNAME, $this->VALID_USEREMAIL, $this->VALID_USERACTIVATION, $this->VALID_USERHASH, $this->VALID_USERSALT); $user->update($this->getPDO()); }