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