‪TYPO3CMS  10.4
FluidTemplateContentObjectTest.php
Go to the documentation of this file.
1 <?php
2 
3 /*
4  * This file is part of the TYPO3 CMS project.
5  *
6  * It is free software; you can redistribute it and/or modify it under
7  * the terms of the GNU General Public License, either version 2
8  * of the License, or any later version.
9  *
10  * For the full copyright and license information, please read the
11  * LICENSE.txt file that was distributed with this source code.
12  *
13  * The TYPO3 project - inspiring people to share!
14  */
15 
17 
28 use TYPO3\TestingFramework\Core\Unit\UnitTestCase;
29 use TYPO3Fluid\Fluid\View\TemplateView;
30 
34 class ‪FluidTemplateContentObjectTest extends UnitTestCase
35 {
39  protected ‪$resetSingletonInstances = true;
40 
44  protected ‪$subject;
45 
49  protected ‪$contentObjectRenderer;
50 
54  protected ‪$standaloneView;
55 
59  protected ‪$request;
60 
64  protected function ‪setUp(): void
65  {
66  parent::setUp();
67  $this->contentObjectRenderer = $this->getMockBuilder(
68  ContentObjectRenderer::class
69  )->getMock();
70  $this->subject = $this->getAccessibleMock(
71  FluidTemplateContentObject::class,
72  ['initializeStandaloneViewInstance'],
73  [$this->contentObjectRenderer]
74  );
76  $tsfe = $this->createMock(TypoScriptFrontendController::class);
77  $tsfe->tmpl = $this->getMockBuilder(TemplateService::class)
78  ->disableOriginalConstructor(true)
79  ->getMock();
80  ‪$GLOBALS['TSFE'] = $tsfe;
81  }
82 
86  protected function ‪addMockViewToSubject(): void
87  {
88  $this->standaloneView = $this->createMock(StandaloneView::class);
89  $this->request = $this->getMockBuilder(Request::class)->getMock();
90  $this->standaloneView
91  ->expects(self::any())
92  ->method('getRequest')
93  ->willReturn($this->request);
94  $this->subject->_set('view', $this->standaloneView);
95  }
96 
100  public function ‪constructSetsContentObjectRenderer(): void
101  {
102  self::assertSame($this->contentObjectRenderer, $this->subject->getContentObjectRenderer());
103  }
104 
108  public function ‪renderCallsInitializeStandaloneViewInstance(): void
109  {
110  $this->‪addMockViewToSubject();
111  $this->subject
112  ->expects(self::once())
113  ->method('initializeStandaloneViewInstance');
114  $this->subject->render([]);
115  }
116 
121  {
122  $this->‪addMockViewToSubject();
123  $this->contentObjectRenderer
124  ->expects(self::any())
125  ->method('stdWrap')
126  ->with('foo', ['bar' => 'baz']);
127  $this->subject->render(['file' => 'foo', 'file.' => ['bar' => 'baz']]);
128  }
129 
134  {
135  $this->‪addMockViewToSubject();
136  $this->contentObjectRenderer
137  ->expects(self::at(0))
138  ->method('stdWrap')
139  ->with('dummyPath', ['wrap' => '|5/']);
140  $this->contentObjectRenderer
141  ->expects(self::at(1))
142  ->method('stdWrap')
143  ->with('', ['field' => 'someField']);
144  $this->subject->render(
145  [
146  'templateName' => 'foobar',
147  'templateRootPaths.' => [
148  10 => 'dummyPath',
149  '10.' => [
150  'wrap' => '|5/',
151  ],
152  15 => 'dummyPath6/',
153  '25.' => [
154  'field' => 'someField',
155  ],
156  ]
157  ]
158  );
159  }
160 
164  public function ‪renderSetsTemplateFileInView(): void
165  {
166  $this->‪addMockViewToSubject();
167  $this->standaloneView
168  ->expects(self::any())
169  ->method('setTemplatePathAndFilename')
170  ->with(‪Environment::getFrameworkBasePath() . '/core/bar.html');
171  $this->subject->render(['file' => 'EXT:core/bar.html']);
172  }
173 
177  public function ‪renderSetsTemplateFileByTemplateInView(): void
178  {
179  $this->‪addMockViewToSubject();
180 
181  $this->contentObjectRenderer
182  ->expects(self::any())
183  ->method('cObjGetSingle')
184  ->with('FILE', ['file' => ‪Environment::getPublicPath() . '/foo/bar.html'])
185  ->willReturn('baz');
186 
187  $this->standaloneView
188  ->expects(self::any())
189  ->method('setTemplateSource')
190  ->with('baz');
191 
192  $this->subject->render([
193  'template' => 'FILE',
194  'template.' => [
195  'file' => ‪Environment::getPublicPath() . '/foo/bar.html'
196  ]
197  ]);
198  }
199 
203  public function ‪renderSetsTemplateFileByTemplateNameInView(): void
204  {
205  $this->‪addMockViewToSubject();
206 
207  $this->standaloneView
208  ->expects(self::any())
209  ->method('getFormat')
210  ->willReturn('html');
211  $this->standaloneView
212  ->expects(self::once())
213  ->method('setTemplate')
214  ->with('foo');
215 
216  $this->subject->render(
217  [
218  'templateName' => 'foo',
219  'templateRootPaths.' => [
220  0 => 'dummyPath1/',
221  1 => 'dummyPath2/'
222  ]
223  ]
224  );
225  }
226 
231  {
232  $this->‪addMockViewToSubject();
233 
234  $this->contentObjectRenderer
235  ->expects(self::once())
236  ->method('stdWrap')
237  ->with('TEXT', ['value' => 'bar'])
238  ->willReturn('bar');
239  $this->standaloneView
240  ->expects(self::any())
241  ->method('getFormat')
242  ->willReturn('html');
243  $this->standaloneView
244  ->expects(self::once())
245  ->method('setTemplate')
246  ->with('bar');
247 
248  $this->subject->render(
249  [
250  'templateName' => 'TEXT',
251  'templateName.' => ['value' => 'bar'],
252  'templateRootPaths.' => [
253  0 => 'dummyPath1/',
254  1 => 'dummyPath2/'
255  ]
256  ]
257  );
258  }
259 
263  public function ‪renderSetsLayoutRootPathInView(): void
264  {
265  $this->‪addMockViewToSubject();
266  $this->standaloneView
267  ->expects(self::once())
268  ->method('setLayoutRootPaths')
269  ->with([‪Environment::getPublicPath() . '/foo/bar.html']);
270  $this->subject->render(['layoutRootPath' => 'foo/bar.html']);
271  }
272 
276  public function ‪renderCallsStandardWrapForLayoutRootPath(): void
277  {
278  $this->‪addMockViewToSubject();
279  $this->contentObjectRenderer
280  ->expects(self::once())
281  ->method('stdWrap')
282  ->with('foo', ['bar' => 'baz']);
283  $this->subject->render(['layoutRootPath' => 'foo', 'layoutRootPath.' => ['bar' => 'baz']]);
284  }
285 
289  public function ‪layoutRootPathsHasStdWrapSupport(): void
290  {
291  $this->‪addMockViewToSubject();
292  $this->contentObjectRenderer
293  ->expects(self::at(0))
294  ->method('stdWrap')
295  ->with('FILE', ['file' => 'foo/bar.html']);
296  $this->subject->render(
297  [
298  'layoutRootPaths.' => [
299  10 => 'FILE',
300  '10.' => [
301  'file' => 'foo/bar.html',
302  ],
303  20 => 'foo/bar2.html',
304  ]
305  ]
306  );
307  }
308 
312  public function ‪fallbacksForLayoutRootPathAreSet(): void
313  {
314  $this->‪addMockViewToSubject();
315  $this->standaloneView
316  ->expects(self::once())
317  ->method('setLayoutRootPaths')
318  ->with([
319  10 => ‪Environment::getPublicPath() . '/foo/bar.html',
320  20 => ‪Environment::getPublicPath() . '/foo/bar2.html'
321  ]);
322  $this->subject->render(['layoutRootPaths.' => [10 => 'foo/bar.html', 20 => 'foo/bar2.html']]);
323  }
324 
329  {
330  $this->‪addMockViewToSubject();
331  $this->standaloneView
332  ->expects(self::once())
333  ->method('setLayoutRootPaths')
334  ->with([
335  0 => ‪Environment::getPublicPath() . '/foo/main.html',
336  10 => ‪Environment::getPublicPath() . '/foo/bar.html',
337  20 => ‪Environment::getPublicPath() . '/foo/bar2.html'
338  ]);
339  $this->subject->render([
340  'layoutRootPath' => 'foo/main.html',
341  'layoutRootPaths.' => [10 => 'foo/bar.html', 20 => 'foo/bar2.html']
342  ]);
343  }
344 
348  public function ‪renderSetsPartialRootPathInView(): void
349  {
350  $this->‪addMockViewToSubject();
351  $this->standaloneView
352  ->expects(self::once())
353  ->method('setPartialRootPaths')
354  ->with([‪Environment::getPublicPath() . '/foo/bar.html']);
355  $this->subject->render(['partialRootPath' => 'foo/bar.html']);
356  }
357 
361  public function ‪partialRootPathsHasStdWrapSupport(): void
362  {
363  $this->‪addMockViewToSubject();
364  $this->contentObjectRenderer
365  ->expects(self::at(0))
366  ->method('stdWrap')
367  ->with('FILE', ['file' => 'foo/bar.html']);
368  $this->subject->render(
369  [
370  'partialRootPaths.' => [
371  10 => 'FILE',
372  '10.' => [
373  'file' => 'foo/bar.html',
374  ],
375  20 => 'foo/bar2.html',
376  ]
377  ]
378  );
379  }
380 
384  public function ‪renderCallsStandardWrapForPartialRootPath(): void
385  {
386  $this->‪addMockViewToSubject();
387  $this->contentObjectRenderer
388  ->expects(self::once())
389  ->method('stdWrap')
390  ->with('foo', ['bar' => 'baz']);
391  $this->subject->render(['partialRootPath' => 'foo', 'partialRootPath.' => ['bar' => 'baz']]);
392  }
393 
397  public function ‪fallbacksForPartialRootPathAreSet(): void
398  {
399  $this->‪addMockViewToSubject();
400  $this->standaloneView
401  ->expects(self::once())
402  ->method('setPartialRootPaths')
403  ->with([10 => ‪Environment::getPublicPath() . '/foo', 20 => ‪Environment::getPublicPath() . '/bar']);
404  $this->subject->render(['partialRootPaths.' => [10 => 'foo', 20 => 'bar']]);
405  }
406 
411  {
412  $this->‪addMockViewToSubject();
413  $this->standaloneView
414  ->expects(self::once())
415  ->method('setPartialRootPaths')
416  ->with([
417  0 => ‪Environment::getPublicPath() . '/main',
418  10 => ‪Environment::getPublicPath() . '/foo',
419  20 => ‪Environment::getPublicPath() . '/bar'
420  ]);
421  $this->subject->render(['partialRootPath' => 'main', 'partialRootPaths.' => [10 => 'foo', 20 => 'bar']]);
422  }
423 
427  public function ‪renderSetsFormatInView(): void
428  {
429  $this->‪addMockViewToSubject();
430  $this->standaloneView
431  ->expects(self::once())
432  ->method('setFormat')
433  ->with('xml');
434  $this->subject->render(['format' => 'xml']);
435  }
436 
440  public function ‪renderCallsStandardWrapForFormat(): void
441  {
442  $this->‪addMockViewToSubject();
443  $this->contentObjectRenderer
444  ->expects(self::once())
445  ->method('stdWrap')
446  ->with('foo', ['bar' => 'baz']);
447  $this->subject->render(['format' => 'foo', 'format.' => ['bar' => 'baz']]);
448  }
449 
453  public function ‪renderSetsExtbasePluginNameInRequest(): void
454  {
455  $this->‪addMockViewToSubject();
456  $this->request
457  ->expects(self::once())
458  ->method('setPluginName')
459  ->with('foo');
460  $configuration = [
461  'extbase.' => [
462  'pluginName' => 'foo',
463  ],
464  ];
465  $this->subject->render($configuration);
466  }
467 
471  public function ‪renderCallsStandardWrapForExtbasePluginName(): void
472  {
473  $this->‪addMockViewToSubject();
474  $this->contentObjectRenderer
475  ->expects(self::once())
476  ->method('stdWrap')
477  ->with('foo', ['bar' => 'baz']);
478  $configuration = [
479  'extbase.' => [
480  'pluginName' => 'foo',
481  'pluginName.' => [
482  'bar' => 'baz',
483  ],
484  ],
485  ];
486  $this->subject->render($configuration);
487  }
488 
493  {
494  $this->‪addMockViewToSubject();
495  $this->request
496  ->expects(self::once())
497  ->method('setControllerExtensionName')
498  ->with('foo');
499  $configuration = [
500  'extbase.' => [
501  'controllerExtensionName' => 'foo',
502  ],
503  ];
504  $this->subject->render($configuration);
505  }
506 
511  {
512  $this->‪addMockViewToSubject();
513  $this->contentObjectRenderer
514  ->expects(self::once())
515  ->method('stdWrap')
516  ->with('foo', ['bar' => 'baz']);
517  $configuration = [
518  'extbase.' => [
519  'controllerExtensionName' => 'foo',
520  'controllerExtensionName.' => [
521  'bar' => 'baz',
522  ],
523  ],
524  ];
525  $this->subject->render($configuration);
526  }
527 
531  public function ‪renderSetsExtbaseControllerNameInRequest(): void
532  {
533  $this->‪addMockViewToSubject();
534  $this->request
535  ->expects(self::once())
536  ->method('setControllerName')
537  ->with('foo');
538  $configuration = [
539  'extbase.' => [
540  'controllerName' => 'foo',
541  ],
542  ];
543  $this->subject->render($configuration);
544  }
545 
550  {
551  $this->‪addMockViewToSubject();
552  $this->contentObjectRenderer
553  ->expects(self::once())
554  ->method('stdWrap')
555  ->with('foo', ['bar' => 'baz']);
556  $configuration = [
557  'extbase.' => [
558  'controllerName' => 'foo',
559  'controllerName.' => [
560  'bar' => 'baz',
561  ],
562  ],
563  ];
564  $this->subject->render($configuration);
565  }
566 
571  {
572  $this->‪addMockViewToSubject();
573  $this->request
574  ->expects(self::once())
575  ->method('setControllerActionName')
576  ->with('foo');
577  $configuration = [
578  'extbase.' => [
579  'controllerActionName' => 'foo',
580  ],
581  ];
582  $this->subject->render($configuration);
583  }
584 
589  {
590  $this->‪addMockViewToSubject();
591  $this->contentObjectRenderer
592  ->expects(self::once())
593  ->method('stdWrap')
594  ->with('foo', ['bar' => 'baz']);
595  $configuration = [
596  'extbase.' => [
597  'controllerActionName' => 'foo',
598  'controllerActionName.' => [
599  'bar' => 'baz',
600  ],
601  ],
602  ];
603  $this->subject->render($configuration);
604  }
605 
609  public function ‪renderAssignsSettingsArrayToView(): void
610  {
611  $this->‪addMockViewToSubject();
612 
613  $configuration = [
614  'settings.' => [
615  'foo' => 'value',
616  'bar.' => [
617  'baz' => 'value2',
618  ],
619  ],
620  ];
621 
622  $expectedSettingsToBeSet = [
623  'foo' => 'value',
624  'bar' => [
625  'baz' => 'value2',
626  ],
627  ];
628 
630  $typoScriptServiceMock = $this->getMockBuilder(TypoScriptService::class)->getMock();
631  $typoScriptServiceMock
632  ->expects(self::once())
633  ->method('convertTypoScriptArrayToPlainArray')
634  ->with($configuration['settings.'])
635  ->willReturn($expectedSettingsToBeSet);
636  GeneralUtility::addInstance(TypoScriptService::class, $typoScriptServiceMock);
637 
638  $this->standaloneView
639  ->expects(self::at(1))
640  ->method('assign')
641  ->with('settings', $expectedSettingsToBeSet);
642 
643  $this->subject->render($configuration);
644  }
645 
650  {
651  $this->‪addMockViewToSubject();
652  $configuration = [
653  'variables.' => [
654  'data' => 'foo',
655  'data.' => [
656  'bar' => 'baz',
657  ],
658  ],
659  ];
660  $this->expectException(\InvalidArgumentException::class);
661  $this->expectExceptionCode(1288095720);
662  $this->subject->render($configuration);
663  }
664 
669  {
670  $this->‪addMockViewToSubject();
671  $configuration = [
672  'variables.' => [
673  'current' => 'foo',
674  'current.' => [
675  'bar' => 'baz',
676  ],
677  ],
678  ];
679  $this->expectException(\InvalidArgumentException::class);
680  $this->expectExceptionCode(1288095720);
681  $this->subject->render($configuration);
682  }
683 
687  public function ‪renderCallsCObjGetSingleForAllowedVariable(): void
688  {
689  $this->‪addMockViewToSubject();
690  $configuration = [
691  'variables.' => [
692  'aVar' => 'TEXT',
693  'aVar.' => [
694  'value' => 'foo',
695  ],
696  ],
697  ];
698  $this->contentObjectRenderer
699  ->expects(self::once())
700  ->method('cObjGetSingle')
701  ->with('TEXT', ['value' => 'foo']);
702  $this->subject->render($configuration);
703  }
704 
709  {
710  $this->‪addMockViewToSubject();
711  $configuration = [
712  'variables.' => [
713  'aVar' => 'TEXT',
714  'aVar.' => [
715  'value' => 'foo',
716  ],
717  ],
718  ];
719  $this->contentObjectRenderer
720  ->expects(self::once())
721  ->method('cObjGetSingle')
722  ->willReturn('foo');
723  $this->standaloneView
724  ->expects(self::once())
725  ->method('assignMultiple')
726  ->with(['aVar' => 'foo', 'data' => [], 'current' => null]);
727  $this->subject->render($configuration);
728  }
729 
734  {
735  $this->‪addMockViewToSubject();
736  $this->contentObjectRenderer->data = ['foo'];
737  $this->standaloneView
738  ->expects(self::once())
739  ->method('assignMultiple')
740  ->with(['data' => ['foo'], 'current' => null]);
741  $this->subject->render([]);
742  }
743 
748  {
749  $this->‪addMockViewToSubject();
750  $this->contentObjectRenderer->data = ['currentKey' => 'currentValue'];
751  $this->contentObjectRenderer->currentValKey = 'currentKey';
752  $this->standaloneView
753  ->expects(self::once())
754  ->method('assignMultiple')
755  ->with(['data' => ['currentKey' => 'currentValue'], 'current' => 'currentValue']);
756  $this->subject->render([]);
757  }
758 
762  public function ‪renderCallsRenderOnStandaloneView(): void
763  {
764  $this->‪addMockViewToSubject();
765  $this->standaloneView
766  ->expects(self::once())
767  ->method('render');
768  $this->subject->render([]);
769  }
770 
775  {
776  $this->‪addMockViewToSubject();
777  $configuration = [
778  'stdWrap.' => [
779  'foo' => 'bar',
780  ],
781  ];
782  $this->standaloneView
783  ->expects(self::any())
784  ->method('render')
785  ->willReturn('baz');
786  $this->contentObjectRenderer
787  ->expects(self::once())
788  ->method('stdWrap')
789  ->with('baz', ['foo' => 'bar']);
790  $this->subject->render($configuration);
791  }
792 
801  $viewMock,
802  $expectedHeader,
803  $expectedFooter
804  ): void {
805  $pageRendererMock = $this->getMockBuilder(PageRenderer::class)->setMethods([
806  'addHeaderData',
807  'addFooterData'
808  ])->getMock();
809  if (!empty(trim($expectedHeader))) {
810  $pageRendererMock->expects(self::once())->method('addHeaderData')->with($expectedHeader);
811  } else {
812  $pageRendererMock->expects(self::never())->method('addHeaderData');
813  }
814  if (!empty(trim($expectedFooter))) {
815  $pageRendererMock->expects(self::once())->method('addFooterData')->with($expectedFooter);
816  } else {
817  $pageRendererMock->expects(self::never())->method('addFooterData');
818  }
819  ‪$subject = $this->getMockBuilder(FluidTemplateContentObject::class)->setMethods(['getPageRenderer'])->disableOriginalConstructor()->getMock();
820  ‪$subject->expects(self::once())->method('getPageRenderer')->willReturn($pageRendererMock);
821  $viewProperty = new \ReflectionProperty(‪$subject, 'view');
822  $viewProperty->setAccessible(true);
823  $viewProperty->setValue(‪$subject, $viewMock);
824 
825  $method = new \ReflectionMethod(‪$subject, 'renderFluidTemplateAssetsIntoPageRenderer');
826  $method->setAccessible(true);
827  $method->invoke(‪$subject);
828  }
829 
833  public function ‪headerAssetDataProvider(): array
834  {
835  $viewWithHeaderData = $this->getMockBuilder(TemplateView::class)->setMethods(['renderSection'])->disableOriginalConstructor()->getMock();
836  $viewWithHeaderData->expects(self::at(0))->method('renderSection')->with(
837  'HeaderAssets',
838  self::anything(),
839  true
840  )->willReturn('custom-header-data');
841  $viewWithHeaderData->expects(self::at(1))->method('renderSection')->with(
842  'FooterAssets',
843  self::anything(),
844  true
845  )->willReturn(null);
846  $viewWithFooterData = $this->getMockBuilder(TemplateView::class)->setMethods(['renderSection'])->disableOriginalConstructor()->getMock();
847  $viewWithFooterData->expects(self::at(0))->method('renderSection')->with(
848  'HeaderAssets',
849  self::anything(),
850  true
851  )->willReturn(null);
852  $viewWithFooterData->expects(self::at(1))->method('renderSection')->with(
853  'FooterAssets',
854  self::anything(),
855  true
856  )->willReturn('custom-footer-data');
857  $viewWithBothData = $this->getMockBuilder(TemplateView::class)->setMethods(['renderSection'])->disableOriginalConstructor()->getMock();
858  $viewWithBothData->expects(self::at(0))->method('renderSection')->with(
859  'HeaderAssets',
860  self::anything(),
861  true
862  )->willReturn('custom-header-data');
863  $viewWithBothData->expects(self::at(1))->method('renderSection')->with(
864  'FooterAssets',
865  self::anything(),
866  true
867  )->willReturn('custom-footer-data');
868  return [
869  [$viewWithHeaderData, 'custom-header-data', null],
870  [$viewWithFooterData, null, 'custom-footer-data'],
871  [$viewWithBothData, 'custom-header-data', 'custom-footer-data']
872  ];
873  }
874 }
‪TYPO3\CMS\Frontend\Tests\Unit\ContentObject\FluidTemplateContentObjectTest\renderCallsStandardWrapForExtbaseControllerExtensionName
‪renderCallsStandardWrapForExtbaseControllerExtensionName()
Definition: FluidTemplateContentObjectTest.php:505
‪TYPO3\CMS\Frontend\Tests\Unit\ContentObject\FluidTemplateContentObjectTest\renderCallsStandardWrapForExtbasePluginName
‪renderCallsStandardWrapForExtbasePluginName()
Definition: FluidTemplateContentObjectTest.php:466
‪TYPO3\CMS\Frontend\Tests\Unit\ContentObject\FluidTemplateContentObjectTest\renderThrowsExceptionForNotAllowedVariableCurrent
‪renderThrowsExceptionForNotAllowedVariableCurrent()
Definition: FluidTemplateContentObjectTest.php:663
‪TYPO3\CMS\Core\Core\Environment\getPublicPath
‪static string getPublicPath()
Definition: Environment.php:180
‪TYPO3\CMS\Frontend\Tests\Unit\ContentObject\FluidTemplateContentObjectTest\renderSetsExtbaseControllerExtensionNameInRequest
‪renderSetsExtbaseControllerExtensionNameInRequest()
Definition: FluidTemplateContentObjectTest.php:487
‪TYPO3\CMS\Frontend\Tests\Unit\ContentObject\FluidTemplateContentObjectTest\renderSetsTemplateFileInView
‪renderSetsTemplateFileInView()
Definition: FluidTemplateContentObjectTest.php:159
‪TYPO3\CMS\Frontend\Tests\Unit\ContentObject\FluidTemplateContentObjectTest\renderSetsTemplateFileByTemplateNameStdWrapInView
‪renderSetsTemplateFileByTemplateNameStdWrapInView()
Definition: FluidTemplateContentObjectTest.php:225
‪TYPO3\CMS\Frontend\Tests\Unit\ContentObject\FluidTemplateContentObjectTest\fallbacksForPartialRootPathAreAppendedToPartialRootPath
‪fallbacksForPartialRootPathAreAppendedToPartialRootPath()
Definition: FluidTemplateContentObjectTest.php:405
‪TYPO3\CMS\Frontend\Tests\Unit\ContentObject\FluidTemplateContentObjectTest\renderSetsExtbaseControllerActionNameInRequest
‪renderSetsExtbaseControllerActionNameInRequest()
Definition: FluidTemplateContentObjectTest.php:565
‪TYPO3\CMS\Frontend\Tests\Unit\ContentObject\FluidTemplateContentObjectTest\renderCallsStandardWrapForFormat
‪renderCallsStandardWrapForFormat()
Definition: FluidTemplateContentObjectTest.php:435
‪TYPO3\CMS\Frontend\Tests\Unit\ContentObject\FluidTemplateContentObjectTest\renderSetsFormatInView
‪renderSetsFormatInView()
Definition: FluidTemplateContentObjectTest.php:422
‪TYPO3\CMS\Frontend\Tests\Unit\ContentObject\FluidTemplateContentObjectTest\fallbacksForLayoutRootPathAreAppendedToLayoutRootPath
‪fallbacksForLayoutRootPathAreAppendedToLayoutRootPath()
Definition: FluidTemplateContentObjectTest.php:323
‪TYPO3\CMS\Frontend\Tests\Unit\ContentObject\FluidTemplateContentObjectTest\fallbacksForLayoutRootPathAreSet
‪fallbacksForLayoutRootPathAreSet()
Definition: FluidTemplateContentObjectTest.php:307
‪TYPO3\CMS\Frontend\Tests\Unit\ContentObject\FluidTemplateContentObjectTest\renderCallsStandardWrapForExtbaseControllerName
‪renderCallsStandardWrapForExtbaseControllerName()
Definition: FluidTemplateContentObjectTest.php:544
‪TYPO3\CMS\Frontend\Tests\Unit\ContentObject\FluidTemplateContentObjectTest\$standaloneView
‪StandaloneView PHPUnit Framework MockObject MockObject $standaloneView
Definition: FluidTemplateContentObjectTest.php:50
‪TYPO3\CMS\Frontend\Tests\Unit\ContentObject\FluidTemplateContentObjectTest\renderSetsExtbaseControllerNameInRequest
‪renderSetsExtbaseControllerNameInRequest()
Definition: FluidTemplateContentObjectTest.php:526
‪TYPO3\CMS\Frontend\Tests\Unit\ContentObject\FluidTemplateContentObjectTest\renderCallsStandardWrapForGivenTemplateRootPathsWithStandardWrap
‪renderCallsStandardWrapForGivenTemplateRootPathsWithStandardWrap()
Definition: FluidTemplateContentObjectTest.php:128
‪TYPO3\CMS\Frontend\Tests\Unit\ContentObject\FluidTemplateContentObjectTest\headerAssetDataProvider
‪array headerAssetDataProvider()
Definition: FluidTemplateContentObjectTest.php:828
‪TYPO3\CMS\Frontend\Tests\Unit\ContentObject\FluidTemplateContentObjectTest\$request
‪Request PHPUnit Framework MockObject MockObject $request
Definition: FluidTemplateContentObjectTest.php:54
‪TYPO3\CMS\Frontend\Tests\Unit\ContentObject\FluidTemplateContentObjectTest\renderCallsStandardWrapForGivenTemplateFileWithStandardWrap
‪renderCallsStandardWrapForGivenTemplateFileWithStandardWrap()
Definition: FluidTemplateContentObjectTest.php:115
‪TYPO3\CMS\Frontend\Tests\Unit\ContentObject\FluidTemplateContentObjectTest\renderAssignsContentObjectRendererCurrentValueToView
‪renderAssignsContentObjectRendererCurrentValueToView()
Definition: FluidTemplateContentObjectTest.php:742
‪TYPO3\CMS\Frontend\Tests\Unit\ContentObject\FluidTemplateContentObjectTest\renderCallsCObjGetSingleForAllowedVariable
‪renderCallsCObjGetSingleForAllowedVariable()
Definition: FluidTemplateContentObjectTest.php:682
‪TYPO3\CMS\Core\Core\Environment\getFrameworkBasePath
‪static string getFrameworkBasePath()
Definition: Environment.php:261
‪TYPO3\CMS\Frontend\Tests\Unit\ContentObject\FluidTemplateContentObjectTest\$contentObjectRenderer
‪ContentObjectRenderer PHPUnit Framework MockObject MockObject $contentObjectRenderer
Definition: FluidTemplateContentObjectTest.php:46
‪TYPO3\CMS\Frontend\Tests\Unit\ContentObject\FluidTemplateContentObjectTest\renderAssignsContentObjectRendererDataToView
‪renderAssignsContentObjectRendererDataToView()
Definition: FluidTemplateContentObjectTest.php:728
‪TYPO3\CMS\Frontend\Tests\Unit\ContentObject\FluidTemplateContentObjectTest\fallbacksForPartialRootPathAreSet
‪fallbacksForPartialRootPathAreSet()
Definition: FluidTemplateContentObjectTest.php:392
‪TYPO3\CMS\Core\Page\PageRenderer
Definition: PageRenderer.php:42
‪TYPO3\CMS\Frontend\Tests\Unit\ContentObject\FluidTemplateContentObjectTest\$subject
‪FluidTemplateContentObject PHPUnit Framework MockObject MockObject TYPO3 TestingFramework Core AccessibleObjectInterface $subject
Definition: FluidTemplateContentObjectTest.php:42
‪TYPO3\CMS\Frontend\Tests\Unit\ContentObject\FluidTemplateContentObjectTest\renderAssignsRenderedContentObjectVariableToView
‪renderAssignsRenderedContentObjectVariableToView()
Definition: FluidTemplateContentObjectTest.php:703
‪TYPO3\CMS\Frontend\Tests\Unit\ContentObject\FluidTemplateContentObjectTest
Definition: FluidTemplateContentObjectTest.php:35
‪TYPO3\CMS\Frontend\Tests\Unit\ContentObject\FluidTemplateContentObjectTest\renderCallsStandardWrapForLayoutRootPath
‪renderCallsStandardWrapForLayoutRootPath()
Definition: FluidTemplateContentObjectTest.php:271
‪TYPO3\CMS\Frontend\Tests\Unit\ContentObject
Definition: CaseContentObjectTest.php:18
‪TYPO3\CMS\Frontend\Tests\Unit\ContentObject\FluidTemplateContentObjectTest\setUp
‪setUp()
Definition: FluidTemplateContentObjectTest.php:59
‪TYPO3\CMS\Frontend\Tests\Unit\ContentObject\FluidTemplateContentObjectTest\layoutRootPathsHasStdWrapSupport
‪layoutRootPathsHasStdWrapSupport()
Definition: FluidTemplateContentObjectTest.php:284
‪TYPO3\CMS\Frontend\Tests\Unit\ContentObject\FluidTemplateContentObjectTest\$resetSingletonInstances
‪bool $resetSingletonInstances
Definition: FluidTemplateContentObjectTest.php:38
‪TYPO3\CMS\Frontend\Tests\Unit\ContentObject\FluidTemplateContentObjectTest\renderCallsStandardWrapForExtbaseControllerActionName
‪renderCallsStandardWrapForExtbaseControllerActionName()
Definition: FluidTemplateContentObjectTest.php:583
‪TYPO3\CMS\Frontend\Tests\Unit\ContentObject\FluidTemplateContentObjectTest\renderCallsStandardWrapForPartialRootPath
‪renderCallsStandardWrapForPartialRootPath()
Definition: FluidTemplateContentObjectTest.php:379
‪TYPO3\CMS\Frontend\Tests\Unit\ContentObject\FluidTemplateContentObjectTest\partialRootPathsHasStdWrapSupport
‪partialRootPathsHasStdWrapSupport()
Definition: FluidTemplateContentObjectTest.php:356
‪TYPO3\CMS\Frontend\Tests\Unit\ContentObject\FluidTemplateContentObjectTest\renderSetsExtbasePluginNameInRequest
‪renderSetsExtbasePluginNameInRequest()
Definition: FluidTemplateContentObjectTest.php:448
‪TYPO3\CMS\Core\TypoScript\TypoScriptService
Definition: TypoScriptService.php:25
‪TYPO3\CMS\Frontend\ContentObject\FluidTemplateContentObject
Definition: FluidTemplateContentObject.php:31
‪TYPO3\CMS\Core\TypoScript\TemplateService
Definition: TemplateService.php:46
‪TYPO3\CMS\Frontend\Tests\Unit\ContentObject\FluidTemplateContentObjectTest\renderSetsPartialRootPathInView
‪renderSetsPartialRootPathInView()
Definition: FluidTemplateContentObjectTest.php:343
‪TYPO3\CMS\Fluid\View\StandaloneView
Definition: StandaloneView.php:34
‪TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController
Definition: TypoScriptFrontendController.php:98
‪$GLOBALS
‪$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['adminpanel']['modules']
Definition: ext_localconf.php:5
‪TYPO3\CMS\Frontend\Tests\Unit\ContentObject\FluidTemplateContentObjectTest\renderSetsTemplateFileByTemplateInView
‪renderSetsTemplateFileByTemplateInView()
Definition: FluidTemplateContentObjectTest.php:172
‪TYPO3\CMS\Core\Core\Environment
Definition: Environment.php:40
‪TYPO3\CMS\Frontend\Tests\Unit\ContentObject\FluidTemplateContentObjectTest\renderCallsInitializeStandaloneViewInstance
‪renderCallsInitializeStandaloneViewInstance()
Definition: FluidTemplateContentObjectTest.php:103
‪TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer
Definition: ContentObjectRenderer.php:97
‪TYPO3\CMS\Frontend\Tests\Unit\ContentObject\FluidTemplateContentObjectTest\renderCallsStandardWrapOnResultStringIfGivenInConfiguration
‪renderCallsStandardWrapOnResultStringIfGivenInConfiguration()
Definition: FluidTemplateContentObjectTest.php:769
‪TYPO3\CMS\Frontend\Tests\Unit\ContentObject\FluidTemplateContentObjectTest\renderThrowsExceptionForNotAllowedVariableData
‪renderThrowsExceptionForNotAllowedVariableData()
Definition: FluidTemplateContentObjectTest.php:644
‪TYPO3\CMS\Core\Utility\GeneralUtility
Definition: GeneralUtility.php:46
‪TYPO3\CMS\Frontend\Tests\Unit\ContentObject\FluidTemplateContentObjectTest\renderCallsRenderOnStandaloneView
‪renderCallsRenderOnStandaloneView()
Definition: FluidTemplateContentObjectTest.php:757
‪TYPO3\CMS\Frontend\Tests\Unit\ContentObject\FluidTemplateContentObjectTest\renderSetsLayoutRootPathInView
‪renderSetsLayoutRootPathInView()
Definition: FluidTemplateContentObjectTest.php:258
‪TYPO3\CMS\Extbase\Mvc\Request
Definition: Request.php:31
‪TYPO3\CMS\Frontend\Tests\Unit\ContentObject\FluidTemplateContentObjectTest\addMockViewToSubject
‪addMockViewToSubject()
Definition: FluidTemplateContentObjectTest.php:81
‪TYPO3\CMS\Frontend\Tests\Unit\ContentObject\FluidTemplateContentObjectTest\constructSetsContentObjectRenderer
‪constructSetsContentObjectRenderer()
Definition: FluidTemplateContentObjectTest.php:95
‪TYPO3\CMS\Frontend\Tests\Unit\ContentObject\FluidTemplateContentObjectTest\renderAssignsSettingsArrayToView
‪renderAssignsSettingsArrayToView()
Definition: FluidTemplateContentObjectTest.php:604
‪TYPO3\CMS\Frontend\Tests\Unit\ContentObject\FluidTemplateContentObjectTest\renderFluidTemplateAssetsIntoPageRendererRendersAndAttachesAssets
‪renderFluidTemplateAssetsIntoPageRendererRendersAndAttachesAssets( $viewMock, $expectedHeader, $expectedFooter)
Definition: FluidTemplateContentObjectTest.php:795
‪TYPO3\CMS\Frontend\Tests\Unit\ContentObject\FluidTemplateContentObjectTest\renderSetsTemplateFileByTemplateNameInView
‪renderSetsTemplateFileByTemplateNameInView()
Definition: FluidTemplateContentObjectTest.php:198