Neos\FluidAdaptor\Tests\Functional\View\StandaloneViewTest::templatePathAndFilenameIsLoaded PHP Méthode

templatePathAndFilenameIsLoaded() public méthode

    public function templatePathAndFilenameIsLoaded()
    {
        $httpRequest = Request::create(new Uri('http://localhost'));
        $actionRequest = new ActionRequest($httpRequest);
        $standaloneView = new StandaloneView($actionRequest, $this->standaloneViewNonce);
        $standaloneView->assign('name', 'Karsten');
        $standaloneView->assign('name', 'Robert');
        $standaloneView->setTemplatePathAndFilename(__DIR__ . '/Fixtures/TestTemplate.txt');
        $expected = 'This is a test template. Hello Robert.';
        $actual = $standaloneView->render();
        $this->assertSame($expected, $actual);
    }