public injectObjectManager ( Neos\Flow\ObjectManagement\ObjectManagerInterface $qomFactory ) : void | ||
$qomFactory | Neos\Flow\ObjectManagement\ObjectManagerInterface | |
return | void |
public function injectObjectManager(ObjectManagerInterface $qomFactory)
{
$this->objectManager = $qomFactory;
}
/** * Sets up this test case * */ public function setUp() { $this->reflectionService = $this->createMock(ReflectionService::class); $this->objectManager = $this->createMock(ObjectManagerInterface::class); $this->query = new Persistence\Generic\Query('someType', $this->reflectionService); $this->query->injectObjectManager($this->objectManager); }