‪TYPO3CMS  9.5
FrontendConfigurationManagerTest.php
Go to the documentation of this file.
1 <?php
2 declare(strict_types = 1);
3 
5 
6 /*
7  * This file is part of the TYPO3 CMS project.
8  *
9  * It is free software; you can redistribute it and/or modify it under
10  * the terms of the GNU General Public License, either version 2
11  * of the License, or any later version.
12  *
13  * For the full copyright and license information, please read the
14  * LICENSE.txt file that was distributed with this source code.
15  *
16  * The TYPO3 project - inspiring people to share!
17  */
18 
24 use TYPO3\TestingFramework\Core\AccessibleObjectInterface;
25 use TYPO3\TestingFramework\Core\Unit\UnitTestCase;
26 
30 class ‪FrontendConfigurationManagerTest extends UnitTestCase
31 {
35  protected ‪$mockContentObject;
36 
41 
45  protected ‪$mockTypoScriptService;
46 
50  protected function ‪setUp(): void
51  {
52  ‪$GLOBALS['TSFE'] = new \stdClass();
53  ‪$GLOBALS['TSFE']->tmpl = new \stdClass();
54  $this->mockContentObject = $this->getMockBuilder(ContentObjectRenderer::class)
55  ->setMethods(['getTreeList'])
56  ->getMock();
57  $this->frontendConfigurationManager = $this->getAccessibleMock(FrontendConfigurationManager::class, ['dummy']);
58  $this->frontendConfigurationManager->_set('contentObject', $this->mockContentObject);
59  $this->mockTypoScriptService = $this->getAccessibleMock(TypoScriptService::class);
60  $this->frontendConfigurationManager->_set('typoScriptService', $this->mockTypoScriptService);
61  }
62 
66  public function ‪getTypoScriptSetupReturnsSetupFromTsfe(): void
67  {
68  ‪$GLOBALS['TSFE']->tmpl->setup = ['foo' => 'bar'];
69  $this->assertEquals(['foo' => 'bar'], $this->frontendConfigurationManager->_call('getTypoScriptSetup'));
70  }
71 
76  {
77  ‪$GLOBALS['TSFE']->tmpl->setup = ['foo' => 'bar'];
78  $expectedResult = [];
79  $actualResult = $this->frontendConfigurationManager->_call(
80  'getPluginConfiguration',
81  'SomeExtensionName',
82  'SomePluginName'
83  );
84  $this->assertEquals($expectedResult, $actualResult);
85  }
86 
91  {
92  $testSettings = [
93  'settings.' => [
94  'foo' => 'bar'
95  ]
96  ];
97  $testSettingsConverted = [
98  'settings' => [
99  'foo' => 'bar'
100  ]
101  ];
102  $testSetup = [
103  'plugin.' => [
104  'tx_someextensionname.' => $testSettings
105  ]
106  ];
107  $this->mockTypoScriptService->expects($this->any())->method('convertTypoScriptArrayToPlainArray')->with($testSettings)->will($this->returnValue($testSettingsConverted));
108  ‪$GLOBALS['TSFE']->tmpl->setup = $testSetup;
109  $expectedResult = [
110  'settings' => [
111  'foo' => 'bar'
112  ]
113  ];
114  $actualResult = $this->frontendConfigurationManager->_call('getPluginConfiguration', 'SomeExtensionName');
115  $this->assertEquals($expectedResult, $actualResult);
116  }
117 
122  {
123  $testSettings = [
124  'settings.' => [
125  'foo' => 'bar'
126  ]
127  ];
128  $testSettingsConverted = [
129  'settings' => [
130  'foo' => 'bar'
131  ]
132  ];
133  $testSetup = [
134  'plugin.' => [
135  'tx_someextensionname_somepluginname.' => $testSettings
136  ]
137  ];
138  $this->mockTypoScriptService->expects($this->any())->method('convertTypoScriptArrayToPlainArray')->with($testSettings)->will($this->returnValue($testSettingsConverted));
139  ‪$GLOBALS['TSFE']->tmpl->setup = $testSetup;
140  $expectedResult = [
141  'settings' => [
142  'foo' => 'bar'
143  ]
144  ];
145  $actualResult = $this->frontendConfigurationManager->_call(
146  'getPluginConfiguration',
147  'SomeExtensionName',
148  'SomePluginName'
149  );
150  $this->assertEquals($expectedResult, $actualResult);
151  }
152 
157  {
158  $testExtensionSettings = [
159  'settings.' => [
160  'foo' => 'bar',
161  'some.' => [
162  'nested' => 'value'
163  ]
164  ]
165  ];
166  $testExtensionSettingsConverted = [
167  'settings' => [
168  'foo' => 'bar',
169  'some' => [
170  'nested' => 'value'
171  ]
172  ]
173  ];
174  $testPluginSettings = [
175  'settings.' => [
176  'some.' => [
177  'nested' => 'valueOverridde',
178  'new' => 'value'
179  ]
180  ]
181  ];
182  $testPluginSettingsConverted = [
183  'settings' => [
184  'some' => [
185  'nested' => 'valueOverridde',
186  'new' => 'value'
187  ]
188  ]
189  ];
190  $testSetup = [
191  'plugin.' => [
192  'tx_someextensionname.' => $testExtensionSettings,
193  'tx_someextensionname_somepluginname.' => $testPluginSettings
194  ]
195  ];
196  $this->mockTypoScriptService->expects($this->at(0))->method('convertTypoScriptArrayToPlainArray')->with($testExtensionSettings)->will($this->returnValue($testExtensionSettingsConverted));
197  $this->mockTypoScriptService->expects($this->at(1))->method('convertTypoScriptArrayToPlainArray')->with($testPluginSettings)->will($this->returnValue($testPluginSettingsConverted));
198  ‪$GLOBALS['TSFE']->tmpl->setup = $testSetup;
199  $expectedResult = [
200  'settings' => [
201  'foo' => 'bar',
202  'some' => [
203  'nested' => 'valueOverridde',
204  'new' => 'value'
205  ]
206  ]
207  ];
208  $actualResult = $this->frontendConfigurationManager->_call(
209  'getPluginConfiguration',
210  'SomeExtensionName',
211  'SomePluginName'
212  );
213  $this->assertEquals($expectedResult, $actualResult);
214  }
215 
220  {
221  ‪$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['extbase'] = null;
222  $expectedResult = [];
223  $actualResult = $this->frontendConfigurationManager->_call(
224  'getSwitchableControllerActions',
225  'SomeExtensionName',
226  'SomePluginName'
227  );
228  $this->assertEquals($expectedResult, $actualResult);
229  }
230 
235  {
236  $testSwitchableControllerActions = [
237  'Controller1' => [
238  'actions' => [
239  'action1',
240  'action2'
241  ],
242  'nonCacheableActions' => [
243  'action1'
244  ]
245  ],
246  'Controller2' => [
247  'actions' => [
248  'action3',
249  'action4'
250  ]
251  ]
252  ];
253  ‪$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['extbase']['extensions']['SomeExtensionName']['plugins']['SomePluginName']['controllers'] = $testSwitchableControllerActions;
254  $expectedResult = $testSwitchableControllerActions;
255  $actualResult = $this->frontendConfigurationManager->_call(
256  'getSwitchableControllerActions',
257  'SomeExtensionName',
258  'SomePluginName'
259  );
260  $this->assertEquals($expectedResult, $actualResult);
261  }
262 
267  ): void {
268  $frameworkConfiguration = [
269  'pluginName' => 'Pi1',
270  'extensionName' => 'SomeExtension',
271  'controllerConfiguration' => [
272  'Controller1' => [
273  'controller' => 'Controller1',
274  'actions' => 'action1 , action2'
275  ],
276  'Controller2' => [
277  'controller' => 'Controller2',
278  'actions' => 'action2 , action1,action3',
279  'nonCacheableActions' => 'action2, action3'
280  ]
281  ]
282  ];
283  $flexFormConfiguration = [];
284  $actualResult = $this->frontendConfigurationManager->_call(
285  'overrideSwitchableControllerActionsFromFlexForm',
286  $frameworkConfiguration,
287  $flexFormConfiguration
288  );
289  $this->assertSame($frameworkConfiguration, $actualResult);
290  }
291 
296  {
297  $frameworkConfiguration = [
298  'pluginName' => 'Pi1',
299  'extensionName' => 'SomeExtension',
300  'controllerConfiguration' => [
301  'Controller1' => [
302  'actions' => ['action1 , action2']
303  ],
304  'Controller2' => [
305  'actions' => ['action2', 'action1', 'action3'],
306  'nonCacheableActions' => ['action2', 'action3']
307  ]
308  ]
309  ];
310  $flexFormConfiguration = [
311  'switchableControllerActions' => 'Controller1 -> action2;Controller2->action3; Controller2->action1'
312  ];
313  $expectedResult = [
314  'pluginName' => 'Pi1',
315  'extensionName' => 'SomeExtension',
316  'controllerConfiguration' => [
317  'Controller1' => [
318  'actions' => ['action2']
319  ],
320  'Controller2' => [
321  'actions' => ['action3', 'action1'],
322  'nonCacheableActions' => [1 => 'action3']
323  ]
324  ]
325  ];
326  $actualResult = $this->frontendConfigurationManager->_call(
327  'overrideSwitchableControllerActionsFromFlexForm',
328  $frameworkConfiguration,
329  $flexFormConfiguration
330  );
331  $this->assertEquals($expectedResult, $actualResult);
332  }
333 
338  {
339  $this->expectException(ParseErrorException::class);
340  $this->expectExceptionCode(1257146403);
341  $frameworkConfiguration = [
342  'pluginName' => 'Pi1',
343  'extensionName' => 'SomeExtension',
344  'controllerConfiguration' => [
345  'Controller1' => [
346  'actions' => ['action1 , action2']
347  ],
348  'Controller2' => [
349  'actions' => ['action2', 'action1', 'action3'],
350  'nonCacheableActions' => ['action2', 'action3']
351  ]
352  ]
353  ];
354  $flexFormConfiguration = [
355  'switchableControllerActions' => 'Controller1->;Controller2->action3;Controller2->action1'
356  ];
357  $this->frontendConfigurationManager->_call(
358  'overrideSwitchableControllerActionsFromFlexForm',
359  $frameworkConfiguration,
360  $flexFormConfiguration
361  );
362  }
363 
368  {
369  $frameworkConfiguration = [
370  'some' => [
371  'framework' => 'configuration'
372  ]
373  ];
375  ‪$frontendConfigurationManager = $this->getAccessibleMock(FrontendConfigurationManager::class, [
376  'overrideStoragePidIfStartingPointIsSet',
377  'overrideConfigurationFromPlugin',
378  'overrideConfigurationFromFlexForm'
379  ]);
380  ‪$frontendConfigurationManager->expects($this->at(0))->method('overrideStoragePidIfStartingPointIsSet')->with($frameworkConfiguration)->will($this->returnValue(['overridden' => 'storagePid']));
381  ‪$frontendConfigurationManager->expects($this->at(1))->method('overrideConfigurationFromPlugin')->with(['overridden' => 'storagePid'])->will($this->returnValue(['overridden' => 'pluginConfiguration']));
382  ‪$frontendConfigurationManager->expects($this->at(2))->method('overrideConfigurationFromFlexForm')->with(['overridden' => 'pluginConfiguration'])->will($this->returnValue(['overridden' => 'flexFormConfiguration']));
383  $expectedResult = ['overridden' => 'flexFormConfiguration'];
384  $actualResult = ‪$frontendConfigurationManager->_call(
385  'getContextSpecificFrameworkConfiguration',
386  $frameworkConfiguration
387  );
388  $this->assertEquals($expectedResult, $actualResult);
389  }
390 
395  {
396  $storagePid = '3,5,9';
397  $recursive = 99;
399  $abstractConfigurationManager = $this->getAccessibleMock(FrontendConfigurationManager::class, [
400  'overrideSwitchableControllerActions',
401  'getContextSpecificFrameworkConfiguration',
402  'getTypoScriptSetup',
403  'getPluginConfiguration',
404  'getSwitchableControllerActions'
405  ]);
407  $cObjectMock = $this->createMock(ContentObjectRenderer::class);
408  $cObjectMock->expects($this->any())
409  ->method('getTreeList')
410  ->will($this->onConsecutiveCalls('4', '', '898,12'));
411  $abstractConfigurationManager->setContentObject($cObjectMock);
412 
413  $expectedResult = '4,898,12';
414  $actualResult = $abstractConfigurationManager->_call('getRecursiveStoragePids', $storagePid, $recursive);
415  $this->assertEquals($expectedResult, $actualResult);
416  }
417 
422  {
423  $storagePid = '-3,5,9';
424  $recursive = 99;
426  $abstractConfigurationManager = $this->getAccessibleMock(FrontendConfigurationManager::class, [
427  'overrideSwitchableControllerActions',
428  'getContextSpecificFrameworkConfiguration',
429  'getTypoScriptSetup',
430  'getPluginConfiguration',
431  'getSwitchableControllerActions'
432  ]);
434  $cObjectMock = $this->createMock(ContentObjectRenderer::class);
435  $cObjectMock->expects($this->any())
436  ->method('getTreeList')
437  ->will($this->onConsecutiveCalls('3,4', '', '898,12'));
438  $abstractConfigurationManager->setContentObject($cObjectMock);
439 
440  $expectedResult = '3,4,898,12';
441  $actualResult = $abstractConfigurationManager->_call('getRecursiveStoragePids', $storagePid, $recursive);
442  $this->assertEquals($expectedResult, $actualResult);
443  }
444 
449  {
450  $storagePid = '1,2,3';
451 
453  $abstractConfigurationManager = $this->getAccessibleMock(FrontendConfigurationManager::class, [
454  'overrideSwitchableControllerActions',
455  'getContextSpecificFrameworkConfiguration',
456  'getTypoScriptSetup',
457  'getPluginConfiguration',
458  'getSwitchableControllerActions'
459  ]);
461  $cObjectMock = $this->createMock(ContentObjectRenderer::class);
462  $cObjectMock->expects($this->never())->method('getTreeList');
463  $abstractConfigurationManager->setContentObject($cObjectMock);
464 
465  $expectedResult = '1,2,3';
466  $actualResult = $abstractConfigurationManager->_call('getRecursiveStoragePids', $storagePid);
467  $this->assertEquals($expectedResult, $actualResult);
468  }
469 
474  {
475  $storagePid = '1,2,3';
476  $recursive = 0;
477 
478  $abstractConfigurationManager = $this->getAccessibleMock(FrontendConfigurationManager::class, [
479  'overrideSwitchableControllerActions',
480  'getContextSpecificFrameworkConfiguration',
481  'getTypoScriptSetup',
482  'getPluginConfiguration',
483  'getSwitchableControllerActions'
484  ]);
485 
487  $cObjectMock = $this->createMock(ContentObjectRenderer::class);
488  $cObjectMock->expects($this->never())->method('getTreeList');
489  $abstractConfigurationManager->setContentObject($cObjectMock);
490 
491  $expectedResult = '1,2,3';
492  $actualResult = $abstractConfigurationManager->_call('getRecursiveStoragePids', $storagePid, $recursive);
493  $this->assertEquals($expectedResult, $actualResult);
494  }
495 
500  {
501  $configuration = [
502  'persistence' => [
503  'storagePid' => '0,1,2,3'
504  ]
505  ];
506 
507  $frameworkConfiguration = ['persistence' => ['storagePid' => '98']];
508  $this->assertSame(
509  ['persistence' => ['storagePid' => '0,1,2,3']],
510  $this->frontendConfigurationManager->_call(
511  'mergeConfigurationIntoFrameworkConfiguration',
512  $frameworkConfiguration,
513  $configuration,
514  'persistence'
515  )
516  );
517  }
518 
523  {
524  $this->mockContentObject->expects($this->any())->method('getTreeList')->will($this->returnValue('1,2,3'));
525  $this->mockContentObject->data = ['pages' => '0', 'recursive' => 1];
526 
527  $frameworkConfiguration = ['persistence' => ['storagePid' => '98']];
528  $this->assertSame(
529  ['persistence' => ['storagePid' => '0,1,2,3']],
530  $this->frontendConfigurationManager->_call(
531  'overrideStoragePidIfStartingPointIsSet',
532  $frameworkConfiguration
533  )
534  );
535  }
536 
541  {
542  $this->mockContentObject->expects($this->any())->method('getTreeList')->will($this->returnValue(''));
543  $this->mockContentObject->data = ['pages' => '0', 'recursive' => 1];
544 
545  $frameworkConfiguration = ['persistence' => ['storagePid' => '98']];
546  $this->assertSame(
547  ['persistence' => ['storagePid' => '0']],
548  $this->frontendConfigurationManager->_call(
549  'overrideStoragePidIfStartingPointIsSet',
550  $frameworkConfiguration
551  )
552  );
553  }
554 
559  {
561  $flexFormService = $this->getMockBuilder(FlexFormService::class)
562  ->setMethods(['convertFlexFormContentToArray'])
563  ->getMock();
564  $flexFormService->expects($this->once())->method('convertFlexFormContentToArray')->will($this->returnValue([
565  'persistence' => [
566  'storagePid' => '0,1,2,3'
567  ]
568  ]));
569 
570  $this->frontendConfigurationManager->_set('flexFormService', $flexFormService);
571  $this->mockContentObject->data = ['pi_flexform' => '<XML_ARRAY>'];
572 
573  $frameworkConfiguration = ['persistence' => ['storagePid' => '98']];
574  $this->assertSame(
575  ['persistence' => ['storagePid' => '0,1,2,3']],
576  $this->frontendConfigurationManager->_call('overrideConfigurationFromFlexForm', $frameworkConfiguration)
577  );
578  }
579 
584  {
586  $flexFormService = $this->getMockBuilder(FlexFormService::class)
587  ->setMethods(['convertFlexFormContentToArray'])
588  ->getMock();
589  $flexFormService->expects($this->never())->method('convertFlexFormContentToArray');
590 
591  $this->frontendConfigurationManager->_set('flexFormService', $flexFormService);
592  $this->mockContentObject->data = ['pi_flexform' => ''];
593 
594  $frameworkConfiguration = ['persistence' => ['storagePid' => '98']];
595  $this->assertSame(
596  ['persistence' => ['storagePid' => '98']],
597  $this->frontendConfigurationManager->_call('overrideConfigurationFromFlexForm', $frameworkConfiguration)
598  );
599  }
600 
605  {
607  $flexFormService = $this->getMockBuilder(FlexFormService::class)
608  ->setMethods(['convertFlexFormContentToArray'])
609  ->getMock();
610  $flexFormService->expects($this->never())->method('convertFlexFormContentToArray');
611 
612  $this->frontendConfigurationManager->_set('flexFormService', $flexFormService);
613  $this->mockContentObject->data = ['pi_flexform' => ['persistence' => ['storagePid' => '0,1,2,3']]];
614 
615  $frameworkConfiguration = ['persistence' => ['storagePid' => '98']];
616  $this->assertSame(
617  ['persistence' => ['storagePid' => '0,1,2,3']],
618  $this->frontendConfigurationManager->_call('overrideConfigurationFromFlexForm', $frameworkConfiguration)
619  );
620  }
621 
626  {
628  $flexFormService = $this->getMockBuilder(FlexFormService::class)
629  ->setMethods(['convertFlexFormContentToArray'])
630  ->getMock();
631  $flexFormService->expects($this->never())->method('convertFlexFormContentToArray');
632 
633  $this->frontendConfigurationManager->_set('flexFormService', $flexFormService);
634  $this->mockContentObject->data = ['pi_flexform' => []];
635 
636  $frameworkConfiguration = ['persistence' => ['storagePid' => '98']];
637  $this->assertSame(
638  ['persistence' => ['storagePid' => '98']],
639  $this->frontendConfigurationManager->_call('overrideConfigurationFromFlexForm', $frameworkConfiguration)
640  );
641  }
642 
647  {
649  ‪$frontendConfigurationManager = $this->getAccessibleMock(
650  FrontendConfigurationManager::class,
651  ['getTypoScriptSetup']
652  );
653  ‪$frontendConfigurationManager->_set('contentObject', $this->mockContentObject);
654  ‪$frontendConfigurationManager->_set('typoScriptService', $this->mockTypoScriptService);
655 
656  $this->mockTypoScriptService->expects($this->once())->method('convertTypoScriptArrayToPlainArray')->will($this->returnValue([
657  'persistence' => [
658  'storagePid' => '0,1,2,3'
659  ],
660  'settings' => [
661  'foo' => 'bar'
662  ],
663  'view' => [
664  'foo' => 'bar'
665  ],
666  ]));
667  ‪$frontendConfigurationManager->expects($this->any())->method('getTypoScriptSetup')->will($this->returnValue([
668  'plugin.' => [
669  'tx_ext_pi1.' => [
670  'persistence.' => [
671  'storagePid' => '0,1,2,3'
672  ],
673  'settings.' => [
674  'foo' => 'bar'
675  ],
676  'view.' => [
677  'foo' => 'bar'
678  ],
679  ]
680  ]
681  ]));
682 
683  $frameworkConfiguration = [
684  'extensionName' => 'ext',
685  'pluginName' => 'pi1',
686  'persistence' => [
687  'storagePid' => '1'
688  ],
689  'settings' => [
690  'foo' => 'qux'
691  ],
692  'view' => [
693  'foo' => 'qux'
694  ],
695  ];
696  $this->assertSame(
697  [
698  'extensionName' => 'ext',
699  'pluginName' => 'pi1',
700  'persistence' => [
701  'storagePid' => '0,1,2,3',
702  ],
703  'settings' => [
704  'foo' => 'bar'
705  ],
706  'view' => [
707  'foo' => 'bar'
708  ],
709  ],
710  ‪$frontendConfigurationManager->_call('overrideConfigurationFromPlugin', $frameworkConfiguration)
711  );
712  }
713 }
‪TYPO3\CMS\Extbase\Tests\Unit\Configuration
Definition: AbstractConfigurationManagerTest.php:4
‪TYPO3\CMS\Extbase\Tests\Unit\Configuration\FrontendConfigurationManagerTest\getSwitchableControllerActionsReturnsEmptyArrayByDefault
‪getSwitchableControllerActionsReturnsEmptyArrayByDefault()
Definition: FrontendConfigurationManagerTest.php:216
‪TYPO3\CMS\Extbase\Tests\Unit\Configuration\FrontendConfigurationManagerTest\storagePidsAreNotExtendedIfRecursiveSearchIsNotConfigured
‪storagePidsAreNotExtendedIfRecursiveSearchIsNotConfigured()
Definition: FrontendConfigurationManagerTest.php:445
‪TYPO3\CMS\Extbase\Tests\Unit\Configuration\FrontendConfigurationManagerTest\overrideStoragePidIfStartingPointIsSetOverridesCorrectly
‪overrideStoragePidIfStartingPointIsSetOverridesCorrectly()
Definition: FrontendConfigurationManagerTest.php:519
‪TYPO3\CMS\Extbase\Tests\Unit\Configuration\FrontendConfigurationManagerTest\$mockContentObject
‪ContentObjectRenderer PHPUnit_Framework_MockObject_MockObject $mockContentObject
Definition: FrontendConfigurationManagerTest.php:34
‪TYPO3\CMS\Extbase\Tests\Unit\Configuration\FrontendConfigurationManagerTest\storagePidsAreExtendedIfRecursiveSearchIsConfigured
‪storagePidsAreExtendedIfRecursiveSearchIsConfigured()
Definition: FrontendConfigurationManagerTest.php:391
‪TYPO3\CMS\Extbase\Tests\Unit\Configuration\FrontendConfigurationManagerTest\overrideSwitchableControllerActionsFromFlexFormReturnsUnchangedFrameworkConfigurationIfNoFlexFormConfigurationIsFound
‪overrideSwitchableControllerActionsFromFlexFormReturnsUnchangedFrameworkConfigurationIfNoFlexFormConfigurationIsFound()
Definition: FrontendConfigurationManagerTest.php:263
‪TYPO3\CMS\Extbase\Tests\Unit\Configuration\FrontendConfigurationManagerTest\overrideSwitchableControllerActionsFromFlexFormMergesNonCacheableActions
‪overrideSwitchableControllerActionsFromFlexFormMergesNonCacheableActions()
Definition: FrontendConfigurationManagerTest.php:292
‪TYPO3\CMS\Extbase\Tests\Unit\Configuration\FrontendConfigurationManagerTest\overrideConfigurationFromFlexFormChecksForDataIsStringAndEmpty
‪overrideConfigurationFromFlexFormChecksForDataIsStringAndEmpty()
Definition: FrontendConfigurationManagerTest.php:580
‪TYPO3\CMS\Extbase\Tests\Unit\Configuration\FrontendConfigurationManagerTest\getPluginConfigurationRecursivelyMergesExtensionAndPluginConfiguration
‪getPluginConfigurationRecursivelyMergesExtensionAndPluginConfiguration()
Definition: FrontendConfigurationManagerTest.php:153
‪TYPO3\CMS\Extbase\Tests\Unit\Configuration\FrontendConfigurationManagerTest\getPluginConfigurationReturnsPluginConfiguration
‪getPluginConfigurationReturnsPluginConfiguration()
Definition: FrontendConfigurationManagerTest.php:118
‪TYPO3\CMS\Extbase\Tests\Unit\Configuration\FrontendConfigurationManagerTest\mergeConfigurationIntoFrameworkConfigurationWorksAsExpected
‪mergeConfigurationIntoFrameworkConfigurationWorksAsExpected()
Definition: FrontendConfigurationManagerTest.php:496
‪TYPO3\CMS\Core\Service\FlexFormService
Definition: FlexFormService.php:21
‪TYPO3\CMS\Extbase\Tests\Unit\Configuration\FrontendConfigurationManagerTest\getContextSpecificFrameworkConfigurationCorrectlyCallsOverrideMethods
‪getContextSpecificFrameworkConfigurationCorrectlyCallsOverrideMethods()
Definition: FrontendConfigurationManagerTest.php:364
‪TYPO3\CMS\Extbase\Tests\Unit\Configuration\FrontendConfigurationManagerTest\overrideConfigurationFromPluginOverridesCorrectly
‪overrideConfigurationFromPluginOverridesCorrectly()
Definition: FrontendConfigurationManagerTest.php:643
‪TYPO3\CMS\Extbase\Tests\Unit\Configuration\FrontendConfigurationManagerTest
Definition: FrontendConfigurationManagerTest.php:31
‪TYPO3\CMS\Extbase\Configuration\FrontendConfigurationManager
Definition: FrontendConfigurationManager.php:27
‪TYPO3\CMS\Extbase\Tests\Unit\Configuration\FrontendConfigurationManagerTest\overrideConfigurationFromFlexFormChecksForDataIsString
‪overrideConfigurationFromFlexFormChecksForDataIsString()
Definition: FrontendConfigurationManagerTest.php:555
‪TYPO3\CMS\Extbase\Tests\Unit\Configuration\FrontendConfigurationManagerTest\getPluginConfigurationReturnsEmptyArrayIfNoPluginConfigurationWasFound
‪getPluginConfigurationReturnsEmptyArrayIfNoPluginConfigurationWasFound()
Definition: FrontendConfigurationManagerTest.php:72
‪TYPO3\CMS\Extbase\Tests\Unit\Configuration\FrontendConfigurationManagerTest\$frontendConfigurationManager
‪FrontendConfigurationManager PHPUnit_Framework_MockObject_MockObject AccessibleObjectInterface $frontendConfigurationManager
Definition: FrontendConfigurationManagerTest.php:38
‪TYPO3\CMS\Extbase\Tests\Unit\Configuration\FrontendConfigurationManagerTest\setUp
‪setUp()
Definition: FrontendConfigurationManagerTest.php:47
‪TYPO3\CMS\Extbase\Configuration\Exception\ParseErrorException
Definition: ParseErrorException.php:21
‪TYPO3\CMS\Extbase\Tests\Unit\Configuration\FrontendConfigurationManagerTest\getSwitchableControllerActionsReturnsConfigurationStoredInExtconf
‪getSwitchableControllerActionsReturnsConfigurationStoredInExtconf()
Definition: FrontendConfigurationManagerTest.php:231
‪TYPO3\CMS\Core\TypoScript\TypoScriptService
Definition: TypoScriptService.php:23
‪TYPO3\CMS\Extbase\Tests\Unit\Configuration\FrontendConfigurationManagerTest\overrideConfigurationFromFlexFormChecksForDataIsArray
‪overrideConfigurationFromFlexFormChecksForDataIsArray()
Definition: FrontendConfigurationManagerTest.php:601
‪TYPO3\CMS\Extbase\Tests\Unit\Configuration\FrontendConfigurationManagerTest\overrideSwitchableControllerActionsThrowsExceptionIfFlexFormConfigurationIsInvalid
‪overrideSwitchableControllerActionsThrowsExceptionIfFlexFormConfigurationIsInvalid()
Definition: FrontendConfigurationManagerTest.php:334
‪$GLOBALS
‪$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['adminpanel']['modules']
Definition: ext_localconf.php:5
‪TYPO3\CMS\Extbase\Tests\Unit\Configuration\FrontendConfigurationManagerTest\getTypoScriptSetupReturnsSetupFromTsfe
‪getTypoScriptSetupReturnsSetupFromTsfe()
Definition: FrontendConfigurationManagerTest.php:63
‪TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer
Definition: ContentObjectRenderer.php:91
‪TYPO3\CMS\Extbase\Tests\Unit\Configuration\FrontendConfigurationManagerTest\getPluginConfigurationReturnsExtensionConfiguration
‪getPluginConfigurationReturnsExtensionConfiguration()
Definition: FrontendConfigurationManagerTest.php:87
‪TYPO3\CMS\Extbase\Tests\Unit\Configuration\FrontendConfigurationManagerTest\storagePidsAreNotExtendedIfRecursiveSearchIsConfiguredForZeroLevels
‪storagePidsAreNotExtendedIfRecursiveSearchIsConfiguredForZeroLevels()
Definition: FrontendConfigurationManagerTest.php:470
‪TYPO3\CMS\Extbase\Tests\Unit\Configuration\FrontendConfigurationManagerTest\$mockTypoScriptService
‪TypoScriptService PHPUnit_Framework_MockObject_MockObject AccessibleObjectInterface $mockTypoScriptService
Definition: FrontendConfigurationManagerTest.php:42
‪TYPO3\CMS\Extbase\Tests\Unit\Configuration\FrontendConfigurationManagerTest\overrideConfigurationFromFlexFormChecksForDataIsArrayAndEmpty
‪overrideConfigurationFromFlexFormChecksForDataIsArrayAndEmpty()
Definition: FrontendConfigurationManagerTest.php:622
‪TYPO3\CMS\Extbase\Tests\Unit\Configuration\FrontendConfigurationManagerTest\overrideStoragePidIfStartingPointIsSetCorrectlyHandlesEmptyValuesFromGetTreeList
‪overrideStoragePidIfStartingPointIsSetCorrectlyHandlesEmptyValuesFromGetTreeList()
Definition: FrontendConfigurationManagerTest.php:537
‪TYPO3\CMS\Extbase\Tests\Unit\Configuration\FrontendConfigurationManagerTest\storagePidsAreExtendedIfRecursiveSearchIsConfiguredAndWithPidIncludedForNegativePid
‪storagePidsAreExtendedIfRecursiveSearchIsConfiguredAndWithPidIncludedForNegativePid()
Definition: FrontendConfigurationManagerTest.php:418