TYPO3 CMS  TYPO3_6-2
TYPO3\CMS\Core\Tests\Unit\Core\ApplicationContextTest Class Reference
Inheritance diagram for TYPO3\CMS\Core\Tests\Unit\Core\ApplicationContextTest:
TYPO3\CMS\Core\Tests\UnitTestCase TYPO3\CMS\Core\Tests\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 TYPO3\CMS\Core\Tests\UnitTestCase
 tearDown ()
 
- Protected Member Functions inherited from TYPO3\CMS\Core\Tests\BaseTestCase
 getAccessibleMock ( $originalClassName, array $methods=array(), array $arguments=array(), $mockClassName='', $callOriginalConstructor=TRUE, $callOriginalClone=TRUE, $callAutoload=TRUE)
 
 getAccessibleMockForAbstractClass ( $originalClassName, array $arguments=array(), $mockClassName='', $callOriginalConstructor=TRUE, $callOriginalClone=TRUE, $callAutoload=TRUE)
 
 buildAccessibleProxy ($className)
 
 callInaccessibleMethod ($object, $name)
 
 inject ($target, $name, $dependency)
 
 getUniqueId ($prefix='')
 
- Protected Attributes inherited from TYPO3\CMS\Core\Tests\UnitTestCase
 $backupGlobalsBlacklist = array('TYPO3_LOADED_EXT')
 
- Protected Attributes inherited from TYPO3\CMS\Core\Tests\BaseTestCase
 $backupGlobals = TRUE
 
 $backupStaticAttributes = FALSE
 

Detailed Description

Testcase for the ApplicationContext class

Definition at line 19 of file ApplicationContextTest.php.

Member Function Documentation

◆ allowedContexts()

TYPO3\CMS\Core\Tests\Unit\Core\ApplicationContextTest::allowedContexts ( )

Data provider with allowed contexts.

Returns
array

Definition at line 26 of file ApplicationContextTest.php.

◆ constructorThrowsExceptionIfMainContextIsForbidden()

TYPO3\CMS\Core\Tests\Unit\Core\ApplicationContextTest::constructorThrowsExceptionIfMainContextIsForbidden (   $forbiddenContext)
Test:
forbiddenContexts

Definition at line 66 of file ApplicationContextTest.php.

◆ contextMethodsReturnTheCorrectValues()

TYPO3\CMS\Core\Tests\Unit\Core\ApplicationContextTest::contextMethodsReturnTheCorrectValues (   $contextName,
  $isDevelopment,
  $isProduction,
  $isTesting,
  $parentContext 
)
Test:
isMethods

Definition at line 128 of file ApplicationContextTest.php.

◆ contextStringCanBeSetInConstructorAndReadByCallingToString()

TYPO3\CMS\Core\Tests\Unit\Core\ApplicationContextTest::contextStringCanBeSetInConstructorAndReadByCallingToString (   $allowedContext)
Test:
allowedContexts

Definition at line 42 of file ApplicationContextTest.php.

◆ forbiddenContexts()

TYPO3\CMS\Core\Tests\Unit\Core\ApplicationContextTest::forbiddenContexts ( )

Data provider with forbidden contexts.

Returns
array

Definition at line 52 of file ApplicationContextTest.php.

◆ isMethods()

TYPO3\CMS\Core\Tests\Unit\Core\ApplicationContextTest::isMethods ( )

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

Returns
array

Definition at line 75 of file ApplicationContextTest.php.

◆ parentContextIsConnectedRecursively()

TYPO3\CMS\Core\Tests\Unit\Core\ApplicationContextTest::parentContextIsConnectedRecursively ( )
Test:

Definition at line 139 of file ApplicationContextTest.php.