public function setUp() { $this->documentManager = $this->prophesize(DocumentManagerInterface::class); $this->phpcrAccessControlProvider = new PhpcrAccessControlProvider($this->documentManager->reveal(), ['view' => 64, 'edit' => 32, 'delete' => 16]); }
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()); }