protected function setUp() { parent::setUp(); $rmdFactory = $this->getResourceMetadataFactory(); $resourceMetadata = $rmdFactory->getMetadataByResourceName('asset'); $mapper = new Mapper(); $mapper->setEntityManager(self::getEntityManager()); $this->service = new DoctrineService($resourceMetadata, $mapper); $this->service->setEntityManager(self::getEntityManager()); }
/** * Bootstrapping set up phase for each test. */ protected function setUp() { parent::setUp(); $this->mapper = new Mapper(); $this->mapper->setEntityManager(self::getEntityManager()); }