public function testDelete() { $user = $this->repository->get(1); $this->repository->delete($user); try { $this->repository->get(1); $this->fail('NotFoundException should be raised'); } catch (NotFoundException $e) { } catch (\Exception $e) { $this->fail('NotFoundException should be raised'); } }
protected function action() { $this->repository->delete($this->user); }