Beispiel #1
0
 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');
     }
 }
Beispiel #2
0
 protected function action()
 {
     $this->repository->delete($this->user);
 }