Neos\FluidAdaptor\Tests\Unit\ViewHelpers\FormViewHelperTest::renderThrowsExceptionIfUseParentRequestIsSetAndTheCurrentRequestHasNoParentRequest PHP Method

renderThrowsExceptionIfUseParentRequestIsSetAndTheCurrentRequestHasNoParentRequest() public method

    public function renderThrowsExceptionIfUseParentRequestIsSetAndTheCurrentRequestHasNoParentRequest()
    {
        $this->setExpectedException(\Neos\FluidAdaptor\Core\ViewHelper\Exception::class, '', 1361354942);
        $viewHelper = $this->getAccessibleMock(\Neos\FluidAdaptor\ViewHelpers\FormViewHelper::class, array('renderChildren'), array(), '', false);
        $this->arguments['useParentRequest'] = true;
        $this->injectDependenciesIntoViewHelper($viewHelper);
        $viewHelper->render('index');
    }
FormViewHelperTest