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

canRenderCustomSection() public method

    public function canRenderCustomSection()
    {
        $templatePathAndFilename = $this->getAbsoluteFixtureTemplatePathAndFilename(self::FIXTURE_TEMPLATE_CUSTOM_SECTION);
        $view = $this->getPreparedViewWithTemplateFile($templatePathAndFilename);
        $sectionContent = $view->renderStandaloneSection('Custom', array(), TRUE);
        $sectionContent = trim($sectionContent);
        $this->assertEquals('This is a custom section. Do not change this placeholder text.', $sectionContent);
    }