/** * Sets up this test case * */ public function setUp() { $this->reflectionService = $this->getMock('TYPO3\\FLOW3\\Reflection\\ReflectionService'); $this->objectManager = $this->getMock('TYPO3\\FLOW3\\Object\\ObjectManagerInterface'); $this->query = new \TYPO3\FLOW3\Persistence\Generic\Query('someType', $this->reflectionService); $this->query->injectObjectManager($this->objectManager); }