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

Public Member Functions

 allowedContexts ()
 
 contextStringCanBeSetInConstructorAndReadByCallingToString ($allowedContext)
 
 forbiddenContexts ()
 
 constructorThrowsExceptionIfMainContextIsForbidden ($forbiddenContext)
 
 isMethods ()
 
 contextMethodsReturnTheCorrectValues ($contextName, $isDevelopment, $isProduction, $isTesting, $parentContext)
 
 parentContextIsConnectedRecursively ()
 

Additional Inherited Members

- 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 inherited from UnitTestCase
 $backupGlobalsBlacklist = ['TYPO3_LOADED_EXT']
 
 $testFilesToDelete = []
 
- Protected Attributes inherited from BaseTestCase
 $backupGlobals = true
 
 $backupStaticAttributes = false
 

Detailed Description

Testcase for the ApplicationContext class

Definition at line 19 of file ApplicationContextTest.php.

Member Function Documentation

allowedContexts ( )

Data provider with allowed contexts.

Returns
array

Definition at line 26 of file ApplicationContextTest.php.

constructorThrowsExceptionIfMainContextIsForbidden (   $forbiddenContext)
Test:
forbiddenContexts

Definition at line 68 of file ApplicationContextTest.php.

contextMethodsReturnTheCorrectValues (   $contextName,
  $isDevelopment,
  $isProduction,
  $isTesting,
  $parentContext 
)
Test:
isMethods

Definition at line 135 of file ApplicationContextTest.php.

contextStringCanBeSetInConstructorAndReadByCallingToString (   $allowedContext)
Test:
allowedContexts

Definition at line 43 of file ApplicationContextTest.php.

forbiddenContexts ( )

Data provider with forbidden contexts.

Returns
array

Definition at line 54 of file ApplicationContextTest.php.

isMethods ( )

Data provider with expected is*() values for various contexts.

Returns
array

Definition at line 81 of file ApplicationContextTest.php.

parentContextIsConnectedRecursively ( )
Test:

Definition at line 147 of file ApplicationContextTest.php.