FluidTYPO3\Flux\Tests\Unit\FormTest::supportsFormComponentsPlacedInPartialTemplates PHP Метод

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

    public function supportsFormComponentsPlacedInPartialTemplates()
    {
        $template = $this->getAbsoluteFixtureTemplatePathAndFilename(self::FIXTURE_TEMPLATE_USESPARTIAL);
        $service = $this->createFluxServiceInstance();
        $paths = array('templateRootPaths' => array('EXT:flux/Tests/Fixtures/Templates/'), 'partialRootPaths' => array('EXT:flux/Tests/Fixtures/Partials/'), 'layoutRootPaths' => array('EXT:flux/Tests/Fixtures/Layouts/'));
        $viewContext = new ViewContext($template);
        $viewContext->setTemplatePaths(new TemplatePaths($paths));
        $viewContext->setSectionName('Configuration');
        $form = $service->getFormFromTemplateFile($viewContext);
        $this->assertIsValidAndWorkingFormObject($form);
    }