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()); }