35 'typo3/sysext/fluid/Tests/Functional/Fixtures/Extensions/fluid_test',
44 $tsfe = $this->createMock(\
TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::class);
48 '10' =>
'FLUIDTEMPLATE',
52 'value' =>
'A{anotherFluidTemplate}C'
55 'anotherFluidTemplate' =>
'FLUIDTEMPLATE',
56 'anotherFluidTemplate.' => [
65 $expectedResult =
'ABC';
67 $contentObjectRenderer = new \TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer;
68 $contentObjectRenderer->setContentObjectClassMap([
69 'FLUIDTEMPLATE' => FluidTemplateContentObject::class,
70 'TEXT' => TextContentObject::class,
72 $fluidTemplateContentObject = new \TYPO3\CMS\Frontend\ContentObject\ContentObjectArrayContentObject(
73 $contentObjectRenderer
75 $result = $fluidTemplateContentObject->render($configuration);
77 $this->assertEquals($expectedResult, $result);
86 $tsfe = $this->createMock(\
TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::class);
90 '10' =>
'FLUIDTEMPLATE',
94 'value' =>
'<f:layout name="BaseLayout"/><f:section name="main"><f:format.raw>{anotherFluidTemplate}</f:format.raw></f:section>'
96 'layoutRootPaths.' => [
97 '0' =>
'EXT:fluid_test/Resources/Private/Layouts'
100 'anotherFluidTemplate' =>
'FLUIDTEMPLATE',
101 'anotherFluidTemplate.' => [
102 'template' =>
'TEXT',
104 'value' =>
'<f:layout name="BaseLayout"/><f:section name="main"></f:section>'
106 'layoutRootPaths.' => [
107 '0' =>
'EXT:fluid_test/Resources/Private/LayoutOverride/Layouts'
113 $expectedResult =
'DefaultLayoutLayoutOverride';
115 $contentObjectRenderer = new \TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer;
116 $contentObjectRenderer->setContentObjectClassMap([
117 'FLUIDTEMPLATE' => FluidTemplateContentObject::class,
118 'TEXT' => TextContentObject::class,
120 $fluidTemplateContentObject = new \TYPO3\CMS\Frontend\ContentObject\ContentObjectArrayContentObject(
121 $contentObjectRenderer
123 $result = preg_replace(
'/\s+/',
'', strip_tags($fluidTemplateContentObject->render($configuration)));
125 $this->assertEquals($expectedResult, $result);