/**
  * @expectedException \RuntimeException
  * @expectedExceptionMessage Ticket loading failed, ticket not found.
  */
 public function testDeleteTicketByIdWhenTicketDoesNotExist()
 {
     $this->ticketRepository->expects($this->once())->method('get')->with(self::DUMMY_TICKET_ID)->will($this->returnValue(null));
     $this->ticketService->deleteTicket(self::DUMMY_TICKET_ID);
 }
 /**
  * Delete Ticket by id
  *
  * @ApiDoc(
  *  description="Delete ticket",
  *  uri="/tickets/{id}.{_format}",
  *  method="DELETE",
  *  resource=true,
  *  requirements={
  *      {
  *          "name"="id",
  *          "dataType"="integer",
  *          "requirement"="\d+",
  *          "description"="Ticket Id"
  *      }
  *  },
  *  statusCodes={
  *      204="Returned when successful",
  *      403="Returned when the user is not authorized to delete ticket",
  *      404="Returned when the ticket is not found"
  *  }
  * )
  *
  * @param $id
  * @return null
  * @throws \RuntimeException if unable to load required ticket
  */
 public function deleteTicket($id)
 {
     parent::deleteTicket($id);
 }