/** * @return void */ public function testFillByTypoScript() { $instance = new TemplatePaths(array('templateRootPaths' => array('EXT:flux/Resources/Private/Templates/'), 'layoutRootPaths' => array('EXT:flux/Resources/Private/Layouts/'), 'partialRootPaths' => array('EXT:flux/Resources/Private/Partials/'))); $this->assertEquals(array(ExtensionManagementUtility::extPath('flux', 'Resources/Private/Templates/')), $instance->getTemplateRootPaths()); $this->assertEquals(array(ExtensionManagementUtility::extPath('flux', 'Resources/Private/Layouts/')), $instance->getLayoutRootPaths()); $this->assertEquals(array(ExtensionManagementUtility::extPath('flux', 'Resources/Private/Partials/')), $instance->getPartialRootPaths()); }
/** * @param TemplatePaths $templatePaths * @return void */ public function setTemplatePaths(TemplatePaths $templatePaths) { $this->setTemplateRootPaths($templatePaths->getTemplateRootPaths()); $this->setLayoutRootPaths($templatePaths->getLayoutRootPaths()); $this->setPartialRootPaths($templatePaths->getPartialRootPaths()); }