Пример #1
0
 /**
  * @expectedException Application\Exceptions\NotFoundException
  */
 public function testRemoveNonexistentUser()
 {
     $user = new UserModel();
     $user->setId("testNonExistingId");
     $user->delete();
 }
Пример #2
0
 /**
  * @expectedException Application\Exceptions\NotFoundException
  */
 public function testDeleteNonExistingUser()
 {
     $this->user->setId('NoExistsId');
     $this->userMapper->delete($this->user->getId());
 }