Neos\Fusion\Tests\Functional\TypoScriptObjects\ExceptionHandlerTest::exceptionHandlerIsEvaluatedForNestedTypoScriptObjects PHP Метод

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

We trigger rendering of a TypoScript object with a nested TS object being "evaluated". If an exception happens there, the configured exceptionHandler needs to be triggered as well, even though the object has been rendered with "evaluate()" and not with "render()"
    public function exceptionHandlerIsEvaluatedForNestedTypoScriptObjects()
    {
        $view = $this->buildView();
        $view->setTypoScriptPath('exceptionHandler/nestedHandlerIsEvaluated');
        $output = $view->render();
        $this->assertNotNull($output);
        $this->assertStringStartsWith('Exception while rendering', $output);
        $this->assertContains('Just testing an exception', $output);
    }