public function setUp() { $this->manager = $this->getMock(ContentManagerInterface::class); $this->form = $this->getMock(FormInterface::class); $this->formFactory = $this->getMock(FormFactoryInterface::class); $this->formFactory->method('create')->willReturn($this->form); $this->authorizationChecker = $this->getMock(AuthorizationCheckerInterface::class); $this->controller = new ContentController($this->manager, $this->formFactory, $this->authorizationChecker); }