/** * {@inheritdoc} */ protected function setUp() { $this->documentManager = $this->prophesize(DocumentManager::class); $this->inspector = $this->prophesize(DocumentInspector::class); $this->searchManager = $this->prophesize(SearchManagerInterface::class); $this->baseMetadataFactory = $this->prophesize(BaseMetadataFactory::class); $this->reindexListener = new ReindexListener($this->documentManager->reveal(), $this->inspector->reveal(), $this->searchManager->reveal(), $this->baseMetadataFactory->reveal(), $this->mapping); }
public function setUp() { $this->documentManager = $this->prophesize(DocumentManagerInterface::class); $this->searchManager = $this->prophesize(SearchManagerInterface::class); $this->permissionListener = new PermissionListener($this->documentManager->reveal(), $this->searchManager->reveal()); }
public function setUp() { $this->fileVersionMetaRepository = $this->prophesize(FileVersionMetaRepository::class); $this->searchManager = $this->prophesize(SearchManagerInterface::class); $this->permissionListener = new PermissionListener($this->fileVersionMetaRepository->reveal(), $this->searchManager->reveal()); }
public function setUp() { parent::setUp(); $this->searchManager = $this->prophesize(SearchManagerInterface::class); $this->subscriber = new StructureSubscriber($this->searchManager->reveal()); }