FluidTYPO3\Flux\Tests\Unit\View\ExposedTemplateViewTest::getPreparedViewWithTemplateFile PHP Method

getPreparedViewWithTemplateFile() protected method

protected getPreparedViewWithTemplateFile ( $templatePathAndFilename ) : ExposedTemplateView
$templatePathAndFilename
return FluidTYPO3\Flux\View\ExposedTemplateView
    protected function getPreparedViewWithTemplateFile($templatePathAndFilename)
    {
        $templatePaths = $this->getFixtureTemplatePaths();
        $service = $this->createFluxServiceInstance();
        $viewContext = new ViewContext($templatePathAndFilename, 'Flux', 'API');
        $viewContext->setTemplatePaths(new TemplatePaths($templatePaths));
        $view = $service->getPreparedExposedTemplateView($viewContext);
        return $view;
    }