protected function setUp()
 {
     MockAnnotations::init($this);
     $this->notificationDeliveryManager = new NotificationDeliveryManager();
     $this->ticketService = new TicketApiServiceImpl($this->em, $this->ticketRepository, $this->branchRepository, $this->ticketBuilder, $this->attachmentManager, $this->userService, $this->authorizationService, $this->dispatcher, $this->notificationDeliveryManager, $this->notifier, $this->ticketHistoryRepository, $this->tagManager, $this->securityFacade);
     $this->ticketService->setApiPagingService($this->apiPagingService);
 }
 protected function setUp()
 {
     MockAnnotations::init($this);
     $this->doctrineRegistry->expects($this->any())->method('getRepository')->will($this->returnCallback([$this, 'getRepository']));
     $this->ticketService = new TicketApiServiceImpl($this->doctrineRegistry, $this->ticketBuilder, $this->attachmentManager, $this->authorizationService, $this->dispatcher, $this->tagManager, $this->securityFacade);
     $this->ticketService->setApiPagingService($this->apiPagingService);
 }