/**
  * @param Registry $doctrineRegistry
  * @param AuditRepository $auditRepository
  * @param EventDispatcherInterface $dispatcher
  * @param QueryHintResolver $queryHintResolver
  */
 public function __construct(Registry $doctrineRegistry, AuditRepository $auditRepository, EventDispatcherInterface $dispatcher, QueryHintResolver $queryHintResolver)
 {
     $this->doctrineRegistry = $doctrineRegistry;
     $this->auditRepository = $auditRepository;
     $this->qbDiamanteAudit = $auditRepository->createQueryBuilder('a');
     $this->dispatcher = $dispatcher;
     $this->queryHintResolver = $queryHintResolver;
 }
 protected function setUp()
 {
     MockAnnotations::init($this);
     $this->auditRepository->expects($this->once())->method('createQueryBuilder')->will($this->returnValue($this->queryBuilder))->with($this->equalTo('a'));
     $this->combinedAuditDatasource = new CombinedAuditDatasource($this->doctrineRegistry, $this->auditRepository, $this->dispatcher, $this->queryHintResolver);
 }