/**
  * {@inheritDoc}
  */
 protected function setUp()
 {
     $this->configuration = $this->getMock('Doctrine\\ORM\\Configuration');
     $this->entityManager = $this->createEntityManager();
     $this->repositoryFactory = new DefaultRepositoryFactory();
     $this->configuration->expects($this->any())->method('getDefaultRepositoryClassName')->will($this->returnValue('Doctrine\\Tests\\Models\\DDC869\\DDC869PaymentRepository'));
 }
 protected function setUp()
 {
     MockAnnotations::init($this);
     $this->em->expects($this->any())->method('getConfiguration')->will($this->returnValue($this->emConfiguration));
     $this->emConfiguration->expects($this->any())->method('getDefaultQueryHints')->will($this->returnValue([]));
     $this->searchQuery = $this->getMockForAbstractClass('\\Doctrine\\ORM\\AbstractQuery', array($this->em));
     $this->classMetadata->name = self::CLASS_NAME;
     $this->repository = new DoctrineTicketRepository($this->em, $this->classMetadata);
 }