TYPO3CMS  8
 All Classes Namespaces Files Functions Variables Pages
AbstractConfigurationManagerTest Class Reference
Inheritance diagram for AbstractConfigurationManagerTest:
UnitTestCase BaseTestCase

Public Member Functions

 setConfigurationResetsConfigurationCache ()
 
 setConfigurationSetsExtensionAndPluginName ()
 
 setConfigurationConvertsTypoScriptArrayToPlainArray ()
 
 getConfigurationReturnsCachedResultOfCurrentPlugin ()
 
 getConfigurationReturnsCachedResultForGivenExtension ()
 
 getConfigurationRecursivelyMergesCurrentPluginConfigurationWithFrameworkConfiguration ()
 
 getConfigurationRecursivelyMergesPluginConfigurationOfSpecifiedPluginWithFrameworkConfiguration ()
 
 getConfigurationDoesNotOverrideConfigurationWithContextSpecificFrameworkConfigurationIfDifferentPluginIsSpecified ()
 
 getConfigurationOverridesConfigurationWithContextSpecificFrameworkConfigurationIfNoPluginWasSpecified ()
 
 getConfigurationOverridesConfigurationWithContextSpecificFrameworkConfigurationIfSpecifiedPluginIsTheCurrentPlugin ()
 
 getConfigurationStoresResultInConfigurationCache ()
 
 getConfigurationRetrievesStoragePidIncludingGivenStoragePidWithRecursiveSetForSingleStoragePid ()
 
 getConfigurationRetrievesStoragePidIncludingGivenStoragePidWithRecursiveSetForMultipleStoragePid ()
 
 orderOfActionsCanBeOverriddenForCurrentPlugin ()
 
 newActionsCanBeAddedForCurrentPlugin ()
 
 controllersCanNotBeOverridden ()
 
 cachingOfActionsCanNotBeChanged ()
 
 getContentObjectReturnsNullIfNoContentObjectHasBeenSet ()
 
 getContentObjectTheCurrentContentObject ()
 

Protected Member Functions

 setUp ()
 
- Protected Member Functions inherited from UnitTestCase
 tearDown ()
 
- Protected Member Functions inherited from BaseTestCase
 getAccessibleMock ($originalClassName, $methods=[], array $arguments=[], $mockClassName= '', $callOriginalConstructor=true, $callOriginalClone=true, $callAutoload=true)
 
 getAccessibleMockForAbstractClass ($originalClassName, array $arguments=[], $mockClassName= '', $callOriginalConstructor=true, $callOriginalClone=true, $callAutoload=true, $mockedMethods=[])
 
 buildAccessibleProxy ($className)
 
 callInaccessibleMethod ($object, $name,...$arguments)
 
 inject ($target, $name, $dependency)
 
 getUniqueId ($prefix= '')
 

Protected Attributes

 $abstractConfigurationManager
 
 $mockTypoScriptService
 
 $testTypoScriptSetup
 
 $testTypoScriptSetupConverted
 
 $testPluginConfiguration
 
 $testSwitchableControllerActions
 
- Protected Attributes inherited from UnitTestCase
 $backupGlobalsBlacklist = ['TYPO3_LOADED_EXT']
 
 $testFilesToDelete = []
 
- Protected Attributes inherited from BaseTestCase
 $backupGlobals = true
 
 $backupStaticAttributes = false
 

Detailed Description

Test case

Definition at line 20 of file AbstractConfigurationManagerTest.php.

Member Function Documentation

cachingOfActionsCanNotBeChanged ( )
Test:

Definition at line 481 of file AbstractConfigurationManagerTest.php.

controllersCanNotBeOverridden ( )
Test:

Definition at line 456 of file AbstractConfigurationManagerTest.php.

getConfigurationDoesNotOverrideConfigurationWithContextSpecificFrameworkConfigurationIfDifferentPluginIsSpecified ( )
Test:

Definition at line 255 of file AbstractConfigurationManagerTest.php.

getConfigurationOverridesConfigurationWithContextSpecificFrameworkConfigurationIfNoPluginWasSpecified ( )
Test:

Definition at line 264 of file AbstractConfigurationManagerTest.php.

getConfigurationOverridesConfigurationWithContextSpecificFrameworkConfigurationIfSpecifiedPluginIsTheCurrentPlugin ( )
Test:

Definition at line 282 of file AbstractConfigurationManagerTest.php.

getConfigurationRecursivelyMergesCurrentPluginConfigurationWithFrameworkConfiguration ( )
Test:

Definition at line 191 of file AbstractConfigurationManagerTest.php.

getConfigurationRecursivelyMergesPluginConfigurationOfSpecifiedPluginWithFrameworkConfiguration ( )
Test:

Definition at line 224 of file AbstractConfigurationManagerTest.php.

getConfigurationRetrievesStoragePidIncludingGivenStoragePidWithRecursiveSetForMultipleStoragePid ( )
Test:

Definition at line 333 of file AbstractConfigurationManagerTest.php.

getConfigurationRetrievesStoragePidIncludingGivenStoragePidWithRecursiveSetForSingleStoragePid ( )
Test:

Definition at line 317 of file AbstractConfigurationManagerTest.php.

getConfigurationReturnsCachedResultForGivenExtension ( )
Test:

Definition at line 180 of file AbstractConfigurationManagerTest.php.

getConfigurationReturnsCachedResultOfCurrentPlugin ( )
Test:

Definition at line 167 of file AbstractConfigurationManagerTest.php.

getConfigurationStoresResultInConfigurationCache ( )
Test:

Definition at line 302 of file AbstractConfigurationManagerTest.php.

getContentObjectReturnsNullIfNoContentObjectHasBeenSet ( )
Test:

Definition at line 515 of file AbstractConfigurationManagerTest.php.

getContentObjectTheCurrentContentObject ( )
Test:

Definition at line 523 of file AbstractConfigurationManagerTest.php.

newActionsCanBeAddedForCurrentPlugin ( )
Test:

Definition at line 427 of file AbstractConfigurationManagerTest.php.

orderOfActionsCanBeOverriddenForCurrentPlugin ( )
Test:

Definition at line 398 of file AbstractConfigurationManagerTest.php.

setConfigurationConvertsTypoScriptArrayToPlainArray ( )
Test:

Definition at line 147 of file AbstractConfigurationManagerTest.php.

setConfigurationResetsConfigurationCache ( )
Test:

Definition at line 123 of file AbstractConfigurationManagerTest.php.

setConfigurationSetsExtensionAndPluginName ( )
Test:

Definition at line 133 of file AbstractConfigurationManagerTest.php.

setUp ( )
protected

Sets up this testcase

Definition at line 113 of file AbstractConfigurationManagerTest.php.

References BaseTestCase\getAccessibleMock().

Member Data Documentation

$abstractConfigurationManager
protected

Definition at line 25 of file AbstractConfigurationManagerTest.php.

$mockTypoScriptService
protected

Definition at line 30 of file AbstractConfigurationManagerTest.php.

$testPluginConfiguration
protected
Initial value:
= [
'settings' => [
'setting1' => 'overriddenValue1'

Definition at line 81 of file AbstractConfigurationManagerTest.php.

$testSwitchableControllerActions
protected
Initial value:
= [
'Controller1' => [
'actions' => ['action1', 'action2', 'action3']
],
'Controller2' => [
'actions' => ['action4', 'action5', 'action6'],
'nonCacheableActions' => ['action4', 'action6']
]
]

Definition at line 100 of file AbstractConfigurationManagerTest.php.

$testTypoScriptSetup
protected
Initial value:
= [
'foo.' => [
'bar' => 'baz'
],
'config.' => [
'tx_extbase.' => [
'settings.' => [
'setting1' => 'value1',
'setting2' => 'value2'
],
'view.' => [
'viewSub.' => [
'key1' => 'value1',
'key2' => 'value2'
]
]
]
]
]

Definition at line 35 of file AbstractConfigurationManagerTest.php.

$testTypoScriptSetupConverted
protected
Initial value:
= [
'foo' => [
'bar' => 'baz'
],
'config' => [
'tx_extbase' => [
'settings' => [
'setting1' => 'value1',
'setting2' => 'value2'
],
'view' => [
'viewSub' => [
'key1' => 'value1',
'key2' => 'value2'
]
]
]
]
]

Definition at line 58 of file AbstractConfigurationManagerTest.php.