public function setUp()
 {
     parent::setUp();
     $this->metadataService = $this->getMock('Tx_Doctrine2_Mapping_TYPO3MetadataService', array('getDataMap', 'getTCAColumnType', 'getTargetEntity'));
     $this->listener = new Tx_Doctrine2_Mapping_TYPO3TCAMetadataListener();
     $this->listener->injectMetadataService($this->metadataService);
 }
 public function setUp()
 {
     parent::setUp();
     $manager = new Tx_Doctrine2_Manager();
     $manager->setEntityManager($this->entityManager);
     $factory = new Tx_Doctrine2_QueryFactory();
     $factory->injectManager($manager);
     $this->repository = new Tx_TestApp_Domain_Repository_PersonRepository(null);
     $this->repository->setEntityManager($this->entityManager);
     $this->repository->injectQueryFactory($factory);
 }