Neos\FluidAdaptor\Tests\Unit\ViewHelpers\Link\ActionViewHelperTest::renderThrowsViewHelperExceptionIfUriBuilderThrowsFlowException PHP Метод

renderThrowsViewHelperExceptionIfUriBuilderThrowsFlowException() публичный Метод

    public function renderThrowsViewHelperExceptionIfUriBuilderThrowsFlowException()
    {
        $this->uriBuilder->expects($this->any())->method('uriFor')->will($this->throwException(new \Neos\Flow\Exception('Mock Exception', 12345)));
        $this->viewHelper->initialize();
        try {
            $this->viewHelper->render('someAction');
        } catch (\Neos\FluidAdaptor\Core\ViewHelper\Exception $exception) {
        }
        $this->assertEquals(12345, $exception->getPrevious()->getCode());
    }