Ejemplo n.º 1
0
 /**
  * @expectedException Application\Exceptions\NotFoundException
  */
 public function testRemoveNonexistentUser()
 {
     $user = new UserModel();
     $user->setId("testNonExistingId");
     $user->delete();
 }
Ejemplo n.º 2
0
 /**
  * @expectedException Application\Exceptions\NotFoundException
  */
 public function testDeleteNonExistingUser()
 {
     $this->user->setId('NoExistsId');
     $this->userMapper->delete($this->user->getId());
 }