Neos\Fusion\Tests\Functional\View\FusionViewTest::ifNoTypoScriptViewIsFoundThenFallbackViewIsExecuted PHP Метод

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

    public function ifNoTypoScriptViewIsFoundThenFallbackViewIsExecuted()
    {
        $view = $this->buildView('Foo\\Bar\\Controller\\TestController', 'nonExisting');
        $this->mockFallbackView->expects($this->once())->method('render')->will($this->returnValue('FallbackView called'));
        $this->mockFallbackView->expects($this->once())->method('setControllerContext')->with($this->mockControllerContext);
        $this->assertEquals('FallbackView called', $view->render());
    }