Neos\FluidAdaptor\Tests\Functional\View\StandaloneViewTest::explicitLayoutPathIsUsed PHP Метод

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

    public function explicitLayoutPathIsUsed()
    {
        $httpRequest = Request::create(new Uri('http://localhost'));
        $actionRequest = new ActionRequest($httpRequest);
        $actionRequest->setFormat('txt');
        $standaloneView = new StandaloneView($actionRequest, $this->standaloneViewNonce);
        $standaloneView->setTemplatePathAndFilename(__DIR__ . '/Fixtures/TestTemplateWithLayout.txt');
        $standaloneView->setLayoutRootPath(__DIR__ . '/Fixtures/SpecialLayouts');
        $expected = 'Hey -- overridden -- HEY HO';
        $actual = $standaloneView->render();
        $this->assertSame($expected, $actual);
    }