‪TYPO3CMS  9.5
AbstractConfigurationManagerTest.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 
22 use TYPO3\TestingFramework\Core\AccessibleObjectInterface;
23 use TYPO3\TestingFramework\Core\Unit\UnitTestCase;
24 
28 class ‪AbstractConfigurationManagerTest extends UnitTestCase
29 {
34 
38  protected ‪$mockTypoScriptService;
39 
43  protected ‪$testTypoScriptSetup = [
44  'foo.' => [
45  'bar' => 'baz'
46  ],
47  'config.' => [
48  'tx_extbase.' => [
49  'settings.' => [
50  'setting1' => 'value1',
51  'setting2' => 'value2'
52  ],
53  'view.' => [
54  'viewSub.' => [
55  'key1' => 'value1',
56  'key2' => 'value2'
57  ]
58  ]
59  ]
60  ]
61  ];
62 
67  'foo' => [
68  'bar' => 'baz'
69  ],
70  'config' => [
71  'tx_extbase' => [
72  'settings' => [
73  'setting1' => 'value1',
74  'setting2' => 'value2'
75  ],
76  'view' => [
77  'viewSub' => [
78  'key1' => 'value1',
79  'key2' => 'value2'
80  ]
81  ]
82  ]
83  ]
84  ];
85 
89  protected ‪$testPluginConfiguration = [
90  'settings' => [
91  'setting1' => 'overriddenValue1',
92  'setting3' => 'additionalValue'
93  ],
94  'view' => [
95  'viewSub' => [
96  'key1' => 'overridden',
97  'key3' => 'new key'
98  ]
99  ],
100  'persistence' => [
101  'storagePid' => '123'
102  ]
103  ];
104 
109  'Controller1' => [
110  'actions' => ['action1', 'action2', 'action3']
111  ],
112  'Controller2' => [
113  'actions' => ['action4', 'action5', 'action6'],
114  'nonCacheableActions' => ['action4', 'action6']
115  ]
116  ];
117 
121  protected function ‪setUp(): void
122  {
123  $this->abstractConfigurationManager = $this->getAccessibleMock(
124  AbstractConfigurationManager::class,
125  [
126  'getContextSpecificFrameworkConfiguration',
127  'getTypoScriptSetup',
128  'getPluginConfiguration',
129  'getSwitchableControllerActions',
130  'getRecursiveStoragePids'
131  ]
132  );
133  $this->mockTypoScriptService = $this->getAccessibleMock(TypoScriptService::class);
134  $this->abstractConfigurationManager->_set('typoScriptService', $this->mockTypoScriptService);
135  }
136 
140  public function ‪setConfigurationResetsConfigurationCache(): void
141  {
142  $this->abstractConfigurationManager->_set('configurationCache', ['foo' => 'bar']);
143  $this->abstractConfigurationManager->setConfiguration([]);
144  $this->assertEquals([], $this->abstractConfigurationManager->_get('configurationCache'));
145  }
146 
150  public function ‪setConfigurationSetsExtensionAndPluginName(): void
151  {
152  $configuration = [
153  'extensionName' => 'SomeExtensionName',
154  'pluginName' => 'SomePluginName'
155  ];
156  $this->abstractConfigurationManager->setConfiguration($configuration);
157  $this->assertEquals('SomeExtensionName', $this->abstractConfigurationManager->_get('extensionName'));
158  $this->assertEquals('SomePluginName', $this->abstractConfigurationManager->_get('pluginName'));
159  }
160 
165  {
166  $configuration = [
167  'foo' => 'bar',
168  'settings.' => ['foo' => 'bar'],
169  'view.' => ['subkey.' => ['subsubkey' => 'subsubvalue']]
170  ];
171  $expectedResult = [
172  'foo' => 'bar',
173  'settings' => ['foo' => 'bar'],
174  'view' => ['subkey' => ['subsubkey' => 'subsubvalue']]
175  ];
176  $this->mockTypoScriptService->expects($this->atLeastOnce())->method('convertTypoScriptArrayToPlainArray')->with($configuration)->will($this->returnValue($expectedResult));
177  $this->abstractConfigurationManager->setConfiguration($configuration);
178  $this->assertEquals($expectedResult, $this->abstractConfigurationManager->_get('configuration'));
179  }
180 
185  {
186  $this->abstractConfigurationManager->_set('extensionName', 'CurrentExtensionName');
187  $this->abstractConfigurationManager->_set('pluginName', 'CurrentPluginName');
188  $this->abstractConfigurationManager->_set('configurationCache', [
189  'currentextensionname_currentpluginname' => ['foo' => 'bar'],
190  'someotherextension_somepluginname' => ['baz' => 'shouldnotbereturned']
191  ]);
192  $expectedResult = ['foo' => 'bar'];
193  $actualResult = $this->abstractConfigurationManager->getConfiguration();
194  $this->assertEquals($expectedResult, $actualResult);
195  }
196 
201  {
202  $this->abstractConfigurationManager->_set('configurationCache', [
203  'someextensionname_somepluginname' => ['foo' => 'bar'],
204  'someotherextension_somepluginname' => ['baz' => 'shouldnotbereturned']
205  ]);
206  $expectedResult = ['foo' => 'bar'];
207  $actualResult = $this->abstractConfigurationManager->getConfiguration('SomeExtensionName', 'SomePluginName');
208  $this->assertEquals($expectedResult, $actualResult);
209  }
210 
215  {
216  $this->abstractConfigurationManager->_set('extensionName', 'CurrentExtensionName');
217  $this->abstractConfigurationManager->_set('pluginName', 'CurrentPluginName');
218  $this->abstractConfigurationManager->expects($this->once())->method('getTypoScriptSetup')->will($this->returnValue($this->testTypoScriptSetup));
219  $this->mockTypoScriptService->expects($this->atLeastOnce())->method('convertTypoScriptArrayToPlainArray')->with($this->testTypoScriptSetup['config.']['tx_extbase.'])->will($this->returnValue($this->testTypoScriptSetupConverted['config']['tx_extbase']));
220  $this->abstractConfigurationManager->expects($this->once())->method('getPluginConfiguration')->with(
221  'CurrentExtensionName',
222  'CurrentPluginName'
223  )->will($this->returnValue($this->testPluginConfiguration));
224  $expectedResult = [
225  'settings' => [
226  'setting1' => 'overriddenValue1',
227  'setting2' => 'value2',
228  'setting3' => 'additionalValue'
229  ],
230  'view' => [
231  'viewSub' => [
232  'key1' => 'overridden',
233  'key2' => 'value2',
234  'key3' => 'new key'
235  ]
236  ],
237  'persistence' => [
238  'storagePid' => '123'
239  ],
240  'controllerConfiguration' => null
241  ];
242  $this->abstractConfigurationManager->expects($this->once())->method('getContextSpecificFrameworkConfiguration')->with($expectedResult)->will($this->returnValue($expectedResult));
243  $actualResult = $this->abstractConfigurationManager->getConfiguration();
244  $this->assertEquals($expectedResult, $actualResult);
245  }
246 
251  ): void {
252  $this->abstractConfigurationManager->expects($this->once())->method('getTypoScriptSetup')->will($this->returnValue($this->testTypoScriptSetup));
253  $this->abstractConfigurationManager->expects($this->once())->method('getPluginConfiguration')->with(
254  'SomeExtensionName',
255  'SomePluginName'
256  )->will($this->returnValue($this->testPluginConfiguration));
257  $this->mockTypoScriptService->expects($this->atLeastOnce())->method('convertTypoScriptArrayToPlainArray')->with($this->testTypoScriptSetup['config.']['tx_extbase.'])->will($this->returnValue($this->testTypoScriptSetupConverted['config']['tx_extbase']));
258  $expectedResult = [
259  'settings' => [
260  'setting1' => 'overriddenValue1',
261  'setting2' => 'value2',
262  'setting3' => 'additionalValue'
263  ],
264  'view' => [
265  'viewSub' => [
266  'key1' => 'overridden',
267  'key2' => 'value2',
268  'key3' => 'new key'
269  ]
270  ],
271  'persistence' => [
272  'storagePid' => '123'
273  ],
274  'controllerConfiguration' => null
275  ];
276  $this->abstractConfigurationManager->expects($this->never())->method('getContextSpecificFrameworkConfiguration');
277  $actualResult = $this->abstractConfigurationManager->getConfiguration('SomeExtensionName', 'SomePluginName');
278  $this->assertEquals($expectedResult, $actualResult);
279  }
280 
285  ): void {
286  $this->abstractConfigurationManager->expects($this->never())->method('getContextSpecificFrameworkConfiguration');
287  $this->abstractConfigurationManager->getConfiguration('SomeExtensionName', 'SomePluginName');
288  }
289 
294  ): void {
295  $this->abstractConfigurationManager->expects($this->once())->method('getTypoScriptSetup')->will($this->returnValue($this->testTypoScriptSetup));
296  $this->abstractConfigurationManager->expects($this->once())->method('getPluginConfiguration')->with()->will($this->returnValue($this->testPluginConfiguration));
297  $contextSpecifixFrameworkConfiguration = [
298  'context' => [
299  'specific' => 'framwork',
300  'conf' => 'iguration'
301  ]
302  ];
303  $this->abstractConfigurationManager->expects($this->once())->method('getContextSpecificFrameworkConfiguration')->will($this->returnValue($contextSpecifixFrameworkConfiguration));
304  $actualResult = $this->abstractConfigurationManager->getConfiguration();
305  $this->assertEquals($contextSpecifixFrameworkConfiguration, $actualResult);
306  }
307 
312  ): void {
313  $this->abstractConfigurationManager->_set('extensionName', 'CurrentExtensionName');
314  $this->abstractConfigurationManager->_set('pluginName', 'CurrentPluginName');
315  $this->abstractConfigurationManager->expects($this->once())->method('getTypoScriptSetup')->will($this->returnValue($this->testTypoScriptSetup));
316  $this->abstractConfigurationManager->expects($this->once())->method('getPluginConfiguration')->with(
317  'CurrentExtensionName',
318  'CurrentPluginName'
319  )->will($this->returnValue($this->testPluginConfiguration));
320  $contextSpecifixFrameworkConfiguration = [
321  'context' => [
322  'specific' => 'framwork',
323  'conf' => 'iguration'
324  ]
325  ];
326  $this->abstractConfigurationManager->expects($this->once())->method('getContextSpecificFrameworkConfiguration')->will($this->returnValue($contextSpecifixFrameworkConfiguration));
327  $actualResult = $this->abstractConfigurationManager->getConfiguration(
328  'CurrentExtensionName',
329  'CurrentPluginName'
330  );
331  $this->assertEquals($contextSpecifixFrameworkConfiguration, $actualResult);
332  }
333 
338  {
339  $this->abstractConfigurationManager->_set('extensionName', 'CurrentExtensionName');
340  $this->abstractConfigurationManager->_set('pluginName', 'CurrentPluginName');
341  $this->abstractConfigurationManager->expects($this->any())->method('getPluginConfiguration')->will($this->returnValue(['foo' => 'bar']));
342  $this->abstractConfigurationManager->getConfiguration();
343  $this->abstractConfigurationManager->getConfiguration('SomeOtherExtensionName', 'SomeOtherCurrentPluginName');
344  $expectedResult = [
345  'currentextensionname_currentpluginname',
346  'someotherextensionname_someothercurrentpluginname'
347  ];
348  $actualResult = array_keys($this->abstractConfigurationManager->_get('configurationCache'));
349  $this->assertEquals($expectedResult, $actualResult);
350  }
351 
356  ): void {
357  $pluginConfiguration = [
358  'persistence' => [
359  'storagePid' => 1,
360  'recursive' => 99
361  ]
362  ];
363  $this->abstractConfigurationManager->expects($this->once())->method('getPluginConfiguration')->will($this->returnValue($pluginConfiguration));
364  $this->abstractConfigurationManager->expects($this->once())->method('getRecursiveStoragePids')->with('-1');
365  $this->abstractConfigurationManager->getConfiguration('SomeOtherExtensionName', 'SomeOtherCurrentPluginName');
366  }
367 
372  ): void {
373  $pluginConfiguration = [
374  'persistence' => [
375  'storagePid' => '1,25',
376  'recursive' => 99
377  ]
378  ];
379  $this->abstractConfigurationManager->expects($this->once())->method('getPluginConfiguration')->will($this->returnValue($pluginConfiguration));
380  $this->abstractConfigurationManager->expects($this->once())->method('getRecursiveStoragePids')->with('-1,-25');
381  $this->abstractConfigurationManager->getConfiguration('SomeOtherExtensionName', 'SomeOtherCurrentPluginName');
382  }
383 
391  {
393  ‪$abstractConfigurationManager = $this->getAccessibleMock(
394  AbstractConfigurationManager::class,
395  [
396  'overrideSwitchableControllerActions',
397  'getContextSpecificFrameworkConfiguration',
398  'getTypoScriptSetup',
399  'getPluginConfiguration',
400  'getSwitchableControllerActions',
401  'getRecursiveStoragePids'
402  ]
403  );
404  ‪$abstractConfigurationManager->_set('typoScriptService', $this->mockTypoScriptService);
405  ‪$abstractConfigurationManager->‪setConfiguration(['switchableControllerActions' => ['overriddenSwitchableControllerActions']]);
406  ‪$abstractConfigurationManager->expects($this->any())->method('getPluginConfiguration')->will($this->returnValue([]));
407  ‪$abstractConfigurationManager->expects($this->never())->method('overrideSwitchableControllerActions');
408  ‪$abstractConfigurationManager->‪getConfiguration('SomeExtensionName', 'SomePluginName');
409  }
410 
415  {
417  $configuration = [
418  'extensionName' => 'CurrentExtensionName',
419  'pluginName' => 'CurrentPluginName',
420  'switchableControllerActions' => ['overriddenSwitchableControllerActions']
421  ];
422  ‪$abstractConfigurationManager = $this->getAccessibleMock(
423  AbstractConfigurationManager::class,
424  [
425  'overrideSwitchableControllerActions',
426  'getContextSpecificFrameworkConfiguration',
427  'getTypoScriptSetup',
428  'getPluginConfiguration',
429  'getSwitchableControllerActions',
430  'getRecursiveStoragePids'
431  ]
432  );
433  $this->mockTypoScriptService->expects($this->any())->method('convertTypoScriptArrayToPlainArray')->with($configuration)->will($this->returnValue($configuration));
434  ‪$abstractConfigurationManager->_set('typoScriptService', $this->mockTypoScriptService);
436  ‪$abstractConfigurationManager->expects($this->any())->method('getPluginConfiguration')->will($this->returnValue([]));
437  ‪$abstractConfigurationManager->expects($this->once())->method('overrideSwitchableControllerActions');
438  ‪$abstractConfigurationManager->‪getConfiguration('CurrentExtensionName', 'CurrentPluginName');
439  }
440 
445  {
447  $configuration = ['switchableControllerActions' => ['overriddenSwitchableControllerActions']];
448  ‪$abstractConfigurationManager = $this->getAccessibleMock(
449  AbstractConfigurationManager::class,
450  [
451  'overrideSwitchableControllerActions',
452  'getContextSpecificFrameworkConfiguration',
453  'getTypoScriptSetup',
454  'getPluginConfiguration',
455  'getSwitchableControllerActions',
456  'getRecursiveStoragePids'
457  ]
458  );
459  $this->mockTypoScriptService->expects($this->any())->method('convertTypoScriptArrayToPlainArray')->with($configuration)->will($this->returnValue($configuration));
460  ‪$abstractConfigurationManager->_set('typoScriptService', $this->mockTypoScriptService);
462  ‪$abstractConfigurationManager->expects($this->any())->method('getPluginConfiguration')->will($this->returnValue([]));
463  ‪$abstractConfigurationManager->expects($this->once())->method('overrideSwitchableControllerActions');
465  }
466 
471  {
472  $configuration = [
473  'extensionName' => 'CurrentExtensionName',
474  'pluginName' => 'CurrentPluginName',
475  'switchableControllerActions' => [
476  'Controller1' => ['action2', 'action1', 'action3']
477  ]
478  ];
479  $this->mockTypoScriptService->expects($this->any())->method('convertTypoScriptArrayToPlainArray')->with($configuration)->will($this->returnValue($configuration));
480  $this->abstractConfigurationManager->setConfiguration($configuration);
481  $this->abstractConfigurationManager->expects($this->once())->method('getPluginConfiguration')->with(
482  'CurrentExtensionName',
483  'CurrentPluginName'
484  )->will($this->returnValue($this->testPluginConfiguration));
485  $this->abstractConfigurationManager->expects($this->once())->method('getSwitchableControllerActions')->with(
486  'CurrentExtensionName',
487  'CurrentPluginName'
488  )->will($this->returnValue($this->testSwitchableControllerActions));
489  $this->abstractConfigurationManager->expects($this->once())->method('getContextSpecificFrameworkConfiguration')->will($this->returnCallback(function (
490  $a
491  ) {
492  return $a;
493  }));
494  $mergedConfiguration = $this->abstractConfigurationManager->getConfiguration();
495  $expectedResult = [
496  'Controller1' => [
497  'actions' => ['action2', 'action1', 'action3']
498  ]
499  ];
500  $actualResult = $mergedConfiguration['controllerConfiguration'];
501  $this->assertEquals($expectedResult, $actualResult);
502  }
503 
507  public function ‪newActionsCanBeAddedForCurrentPlugin(): void
508  {
509  $configuration = [
510  'extensionName' => 'CurrentExtensionName',
511  'pluginName' => 'CurrentPluginName',
512  'switchableControllerActions' => [
513  'Controller1' => ['action2', 'action1', 'action3', 'newAction']
514  ]
515  ];
516  $this->mockTypoScriptService->expects($this->any())->method('convertTypoScriptArrayToPlainArray')->with($configuration)->will($this->returnValue($configuration));
517  $this->abstractConfigurationManager->setConfiguration($configuration);
518  $this->abstractConfigurationManager->expects($this->once())->method('getPluginConfiguration')->with(
519  'CurrentExtensionName',
520  'CurrentPluginName'
521  )->will($this->returnValue($this->testPluginConfiguration));
522  $this->abstractConfigurationManager->expects($this->once())->method('getSwitchableControllerActions')->with(
523  'CurrentExtensionName',
524  'CurrentPluginName'
525  )->will($this->returnValue($this->testSwitchableControllerActions));
526  $this->abstractConfigurationManager->expects($this->once())->method('getContextSpecificFrameworkConfiguration')->will($this->returnCallback(function (
527  $a
528  ) {
529  return $a;
530  }));
531  $mergedConfiguration = $this->abstractConfigurationManager->getConfiguration();
532  $expectedResult = [
533  'Controller1' => [
534  'actions' => ['action2', 'action1', 'action3', 'newAction']
535  ]
536  ];
537  $actualResult = $mergedConfiguration['controllerConfiguration'];
538  $this->assertEquals($expectedResult, $actualResult);
539  }
540 
544  public function ‪controllersCanNotBeOverridden(): void
545  {
546  $configuration = [
547  'extensionName' => 'CurrentExtensionName',
548  'pluginName' => 'CurrentPluginName',
549  'switchableControllerActions' => [
550  'NewController' => ['action1', 'action2']
551  ]
552  ];
553  $this->mockTypoScriptService->expects($this->any())->method('convertTypoScriptArrayToPlainArray')->with($configuration)->will($this->returnValue($configuration));
554  $this->abstractConfigurationManager->setConfiguration($configuration);
555  $this->abstractConfigurationManager->expects($this->once())->method('getPluginConfiguration')->with(
556  'CurrentExtensionName',
557  'CurrentPluginName'
558  )->will($this->returnValue($this->testPluginConfiguration));
559  $this->abstractConfigurationManager->expects($this->once())->method('getSwitchableControllerActions')->with(
560  'CurrentExtensionName',
561  'CurrentPluginName'
562  )->will($this->returnValue($this->testSwitchableControllerActions));
563  $this->abstractConfigurationManager->expects($this->once())->method('getContextSpecificFrameworkConfiguration')->will($this->returnCallback(function (
564  $a
565  ) {
566  return $a;
567  }));
568  $mergedConfiguration = $this->abstractConfigurationManager->getConfiguration();
569  $expectedResult = [];
570  $actualResult = $mergedConfiguration['controllerConfiguration'];
571  $this->assertEquals($expectedResult, $actualResult);
572  }
573 
577  public function ‪cachingOfActionsCanNotBeChanged(): void
578  {
579  $configuration = [
580  'extensionName' => 'CurrentExtensionName',
581  'pluginName' => 'CurrentPluginName',
582  'switchableControllerActions' => [
583  'Controller1' => ['newAction', 'action1'],
584  'Controller2' => ['newAction2', 'action4', 'action5']
585  ]
586  ];
587  $this->mockTypoScriptService->expects($this->any())->method('convertTypoScriptArrayToPlainArray')->with($configuration)->will($this->returnValue($configuration));
588  $this->abstractConfigurationManager->setConfiguration($configuration);
589  $this->abstractConfigurationManager->expects($this->once())->method('getPluginConfiguration')->with(
590  'CurrentExtensionName',
591  'CurrentPluginName'
592  )->will($this->returnValue($this->testPluginConfiguration));
593  $this->abstractConfigurationManager->expects($this->once())->method('getSwitchableControllerActions')->with(
594  'CurrentExtensionName',
595  'CurrentPluginName'
596  )->will($this->returnValue($this->testSwitchableControllerActions));
597  $this->abstractConfigurationManager->expects($this->once())->method('getContextSpecificFrameworkConfiguration')->will($this->returnCallback(function (
598  $a
599  ) {
600  return $a;
601  }));
602  $mergedConfiguration = $this->abstractConfigurationManager->getConfiguration();
603  $expectedResult = [
604  'Controller1' => [
605  'actions' => ['newAction', 'action1']
606  ],
607  'Controller2' => [
608  'actions' => ['newAction2', 'action4', 'action5'],
609  'nonCacheableActions' => ['action4']
610  ]
611  ];
612  $actualResult = $mergedConfiguration['controllerConfiguration'];
613  $this->assertEquals($expectedResult, $actualResult);
614  }
615 
620  {
621  $this->assertNull($this->abstractConfigurationManager->getContentObject());
622  }
623 
627  public function ‪getContentObjectTheCurrentContentObject(): void
628  {
630  $mockContentObject = $this->createMock(ContentObjectRenderer::class);
631  $this->abstractConfigurationManager->setContentObject($mockContentObject);
632  $this->assertSame($this->abstractConfigurationManager->getContentObject(), $mockContentObject);
633  }
634 }
‪TYPO3\CMS\Extbase\Tests\Unit\Configuration\AbstractConfigurationManagerTest\newActionsCanBeAddedForCurrentPlugin
‪newActionsCanBeAddedForCurrentPlugin()
Definition: AbstractConfigurationManagerTest.php:501
‪TYPO3\CMS\Extbase\Tests\Unit\Configuration\AbstractConfigurationManagerTest\getConfigurationRetrievesStoragePidIncludingGivenStoragePidWithRecursiveSetForMultipleStoragePid
‪getConfigurationRetrievesStoragePidIncludingGivenStoragePidWithRecursiveSetForMultipleStoragePid()
Definition: AbstractConfigurationManagerTest.php:365
‪TYPO3\CMS\Extbase\Tests\Unit\Configuration\AbstractConfigurationManagerTest
Definition: AbstractConfigurationManagerTest.php:29
‪TYPO3\CMS\Extbase\Tests\Unit\Configuration
Definition: AbstractConfigurationManagerTest.php:4
‪TYPO3\CMS\Extbase\Tests\Unit\Configuration\AbstractConfigurationManagerTest\getConfigurationRetrievesStoragePidIncludingGivenStoragePidWithRecursiveSetForSingleStoragePid
‪getConfigurationRetrievesStoragePidIncludingGivenStoragePidWithRecursiveSetForSingleStoragePid()
Definition: AbstractConfigurationManagerTest.php:349
‪TYPO3\CMS\Extbase\Tests\Unit\Configuration\AbstractConfigurationManagerTest\getConfigurationStoresResultInConfigurationCache
‪getConfigurationStoresResultInConfigurationCache()
Definition: AbstractConfigurationManagerTest.php:331
‪TYPO3\CMS\Extbase\Tests\Unit\Configuration\AbstractConfigurationManagerTest\getConfigurationOverridesConfigurationWithContextSpecificFrameworkConfigurationIfSpecifiedPluginIsTheCurrentPlugin
‪getConfigurationOverridesConfigurationWithContextSpecificFrameworkConfigurationIfSpecifiedPluginIsTheCurrentPlugin()
Definition: AbstractConfigurationManagerTest.php:305
‪TYPO3\CMS\Extbase\Tests\Unit\Configuration\AbstractConfigurationManagerTest\getContentObjectReturnsNullIfNoContentObjectHasBeenSet
‪getContentObjectReturnsNullIfNoContentObjectHasBeenSet()
Definition: AbstractConfigurationManagerTest.php:613
‪TYPO3\CMS\Extbase\Tests\Unit\Configuration\AbstractConfigurationManagerTest\getContentObjectTheCurrentContentObject
‪getContentObjectTheCurrentContentObject()
Definition: AbstractConfigurationManagerTest.php:621
‪TYPO3\CMS\Extbase\Tests\Unit\Configuration\AbstractConfigurationManagerTest\$testPluginConfiguration
‪array $testPluginConfiguration
Definition: AbstractConfigurationManagerTest.php:84
‪TYPO3\CMS\Extbase\Tests\Unit\Configuration\AbstractConfigurationManagerTest\getConfigurationOverridesConfigurationWithContextSpecificFrameworkConfigurationIfNoPluginWasSpecified
‪getConfigurationOverridesConfigurationWithContextSpecificFrameworkConfigurationIfNoPluginWasSpecified()
Definition: AbstractConfigurationManagerTest.php:287
‪TYPO3\CMS\Extbase\Tests\Unit\Configuration\AbstractConfigurationManagerTest\$mockTypoScriptService
‪TypoScriptService PHPUnit_Framework_MockObject_MockObject AccessibleObjectInterface $mockTypoScriptService
Definition: AbstractConfigurationManagerTest.php:36
‪TYPO3\CMS\Extbase\Tests\Unit\Configuration\AbstractConfigurationManagerTest\switchableControllerActionsAreOverriddenIfPluginNameIsNotSpecified
‪switchableControllerActionsAreOverriddenIfPluginNameIsNotSpecified()
Definition: AbstractConfigurationManagerTest.php:438
‪TYPO3\CMS\Extbase\Configuration\AbstractConfigurationManager
Definition: AbstractConfigurationManager.php:22
‪TYPO3\CMS\Extbase\Tests\Unit\Configuration\AbstractConfigurationManagerTest\setConfigurationConvertsTypoScriptArrayToPlainArray
‪setConfigurationConvertsTypoScriptArrayToPlainArray()
Definition: AbstractConfigurationManagerTest.php:158
‪TYPO3\CMS\Extbase\Tests\Unit\Configuration\AbstractConfigurationManagerTest\$testSwitchableControllerActions
‪array $testSwitchableControllerActions
Definition: AbstractConfigurationManagerTest.php:102
‪TYPO3\CMS\Extbase\Tests\Unit\Configuration\AbstractConfigurationManagerTest\setUp
‪setUp()
Definition: AbstractConfigurationManagerTest.php:115
‪TYPO3\CMS\Extbase\Tests\Unit\Configuration\AbstractConfigurationManagerTest\controllersCanNotBeOverridden
‪controllersCanNotBeOverridden()
Definition: AbstractConfigurationManagerTest.php:538
‪TYPO3\CMS\Extbase\Tests\Unit\Configuration\AbstractConfigurationManagerTest\cachingOfActionsCanNotBeChanged
‪cachingOfActionsCanNotBeChanged()
Definition: AbstractConfigurationManagerTest.php:571
‪TYPO3\CMS\Extbase\Tests\Unit\Configuration\AbstractConfigurationManagerTest\switchableControllerActionsAreOverriddenIfSpecifiedPluginIsTheCurrentPlugin
‪switchableControllerActionsAreOverriddenIfSpecifiedPluginIsTheCurrentPlugin()
Definition: AbstractConfigurationManagerTest.php:408
‪TYPO3\CMS\Extbase\Tests\Unit\Configuration\AbstractConfigurationManagerTest\getConfigurationReturnsCachedResultOfCurrentPlugin
‪getConfigurationReturnsCachedResultOfCurrentPlugin()
Definition: AbstractConfigurationManagerTest.php:178
‪TYPO3\CMS\Extbase\Tests\Unit\Configuration\AbstractConfigurationManagerTest\switchableControllerActionsAreNotOverriddenIfPluginNameIsSpecified
‪switchableControllerActionsAreNotOverriddenIfPluginNameIsSpecified()
Definition: AbstractConfigurationManagerTest.php:384
‪TYPO3\CMS\Extbase\Tests\Unit\Configuration\AbstractConfigurationManagerTest\setConfigurationSetsExtensionAndPluginName
‪setConfigurationSetsExtensionAndPluginName()
Definition: AbstractConfigurationManagerTest.php:144
‪TYPO3\CMS\Core\TypoScript\TypoScriptService
Definition: TypoScriptService.php:23
‪TYPO3\CMS\Extbase\Tests\Unit\Configuration\AbstractConfigurationManagerTest\setConfigurationResetsConfigurationCache
‪setConfigurationResetsConfigurationCache()
Definition: AbstractConfigurationManagerTest.php:134
‪TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer
Definition: ContentObjectRenderer.php:91
‪TYPO3\CMS\Extbase\Tests\Unit\Configuration\AbstractConfigurationManagerTest\orderOfActionsCanBeOverriddenForCurrentPlugin
‪orderOfActionsCanBeOverriddenForCurrentPlugin()
Definition: AbstractConfigurationManagerTest.php:464
‪TYPO3\CMS\Extbase\Tests\Unit\Configuration\AbstractConfigurationManagerTest\getConfigurationDoesNotOverrideConfigurationWithContextSpecificFrameworkConfigurationIfDifferentPluginIsSpecified
‪getConfigurationDoesNotOverrideConfigurationWithContextSpecificFrameworkConfigurationIfDifferentPluginIsSpecified()
Definition: AbstractConfigurationManagerTest.php:278
‪TYPO3\CMS\Extbase\Tests\Unit\Configuration\AbstractConfigurationManagerTest\$abstractConfigurationManager
‪AbstractConfigurationManager PHPUnit_Framework_MockObject_MockObject AccessibleObjectInterface $abstractConfigurationManager
Definition: AbstractConfigurationManagerTest.php:32
‪TYPO3\CMS\Extbase\Configuration\AbstractConfigurationManager\getConfiguration
‪array getConfiguration($extensionName=null, $pluginName=null)
Definition: AbstractConfigurationManager.php:136
‪TYPO3\CMS\Extbase\Tests\Unit\Configuration\AbstractConfigurationManagerTest\$testTypoScriptSetupConverted
‪array $testTypoScriptSetupConverted
Definition: AbstractConfigurationManagerTest.php:62
‪TYPO3\CMS\Extbase\Tests\Unit\Configuration\AbstractConfigurationManagerTest\getConfigurationReturnsCachedResultForGivenExtension
‪getConfigurationReturnsCachedResultForGivenExtension()
Definition: AbstractConfigurationManagerTest.php:194
‪TYPO3\CMS\Extbase\Tests\Unit\Configuration\AbstractConfigurationManagerTest\getConfigurationRecursivelyMergesCurrentPluginConfigurationWithFrameworkConfiguration
‪getConfigurationRecursivelyMergesCurrentPluginConfigurationWithFrameworkConfiguration()
Definition: AbstractConfigurationManagerTest.php:208
‪TYPO3\CMS\Extbase\Tests\Unit\Configuration\AbstractConfigurationManagerTest\$testTypoScriptSetup
‪array $testTypoScriptSetup
Definition: AbstractConfigurationManagerTest.php:40
‪TYPO3\CMS\Extbase\Configuration\AbstractConfigurationManager\setConfiguration
‪setConfiguration(array $configuration=[])
Definition: AbstractConfigurationManager.php:117
‪TYPO3\CMS\Extbase\Tests\Unit\Configuration\AbstractConfigurationManagerTest\getConfigurationRecursivelyMergesPluginConfigurationOfSpecifiedPluginWithFrameworkConfiguration
‪getConfigurationRecursivelyMergesPluginConfigurationOfSpecifiedPluginWithFrameworkConfiguration()
Definition: AbstractConfigurationManagerTest.php:244