public function setUp() { $this->accessControlManager = $this->prophesize(AccessControlManagerInterface::class); $this->securityChecker = $this->prophesize(SecurityCheckerInterface::class); $this->roleRepository = $this->prophesize(RoleRepositoryInterface::class); $this->viewHandler = $this->prophesize(ViewHandlerInterface::class); $this->permissionController = new PermissionController($this->accessControlManager->reveal(), $this->securityChecker->reveal(), $this->roleRepository->reveal(), $this->viewHandler->reveal()); }
public function setUp() { $this->contentNavigationCollector = $this->prophesize(ContentNavigationRegistryInterface::class); $this->viewHandler = $this->prophesize(ViewHandlerInterface::class); $this->contentNavigationController = new ContentNavigationController($this->contentNavigationCollector->reveal(), $this->viewHandler->reveal()); }