Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ....
- public function tearDown() {
- if (!$this->persistenceManager instanceof \TYPO3\Flow\Persistence\PersistenceManagerInterface){
- $this->persistenceManager = $this->objectManager->get('TYPO3\Flow\Persistence\PersistenceManagerInterface');
- };
- if (!$this->playerRepository instanceof \TomasNorre\GolfnetInvitational\Domain\Repository\PlayerRepository){
- $this->playerRepository = $this->objectManager->get('TomasNorre\GolfnetInvitational\Domain\Repository\PlayerRepository');
- };
- $this->playerRepository->removeAll();
- $this->persistenceManager->persistAll();
- unset($this->playerRepository);
- unset($this->persistenceManager);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement