‪TYPO3CMS  11.5
TYPO3\CMS\Core\Tests\Unit\Core\ApplicationContextTest Class Reference
Inheritance diagram for TYPO3\CMS\Core\Tests\Unit\Core\ApplicationContextTest:

Public Member Functions

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

Detailed Description

Testcase for the ApplicationContext class

Definition at line 27 of file ApplicationContextTest.php.

Member Function Documentation

◆ allowedContexts()

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

Data provider with allowed contexts.

Definition at line 32 of file ApplicationContextTest.php.

◆ constructorThrowsExceptionIfMainContextIsForbidden()

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

Definition at line 74 of file ApplicationContextTest.php.

◆ contextMethodsReturnTheCorrectValues()

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

Definition at line 141 of file ApplicationContextTest.php.

◆ contextStringCanBeSetInConstructorAndReadByCallingToString()

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

Definition at line 49 of file ApplicationContextTest.php.

◆ forbiddenContexts()

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

Data provider with forbidden contexts.

Returns
‪array

Definition at line 60 of file ApplicationContextTest.php.

◆ isMethods()

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

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

Returns
‪array

Definition at line 87 of file ApplicationContextTest.php.

◆ parentContextIsConnectedRecursively()

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

Definition at line 153 of file ApplicationContextTest.php.