injectObjectManager() публичный Метод

Injects the Flow object factory
public injectObjectManager ( Neos\Flow\ObjectManagement\ObjectManagerInterface $qomFactory ) : void
$qomFactory Neos\Flow\ObjectManagement\ObjectManagerInterface
Результат void
 /**
  * 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);
 }