TYPO3 CMS  TYPO3_7-6
TYPO3\CMS\Frontend\Tests\Unit\Controller\TypoScriptFrontendControllerTest Class Reference
Inheritance diagram for TYPO3\CMS\Frontend\Tests\Unit\Controller\TypoScriptFrontendControllerTest:
TYPO3\CMS\Core\Tests\UnitTestCase TYPO3\CMS\Core\Tests\BaseTestCase

Public Member Functions

 headerAndFooterMarkersAreReplacedDuringIntProcessing ()
 
 INTincScript_processCallback ()
 
 localizationReturnsUnchangedStringIfNotLocallangLabel ()
 
 getSysDomainCacheDataProvider ()
 
 getSysDomainCacheReturnsCurrentDomainRecord ($currentDomain)
 
 getSysDomainCacheReturnsForcedDomainRecord ($currentDomain)
 
 domainNameMatchesCurrentRequestDataProvider ()
 
 domainNameMatchesCurrentRequest ($currentDomain, $domainRecord, $scriptName, $expectedResult)
 
 baseUrlWrapHandlesDifferentUrlsDataProvider ()
 
 baseUrlWrapHandlesDifferentUrls ($baseUrl, $url, $expected)
 

Protected Member Functions

 setUp ()
 
- Protected Member Functions inherited from TYPO3\CMS\Core\Tests\UnitTestCase
 tearDown ()
 
- Protected Member Functions inherited from TYPO3\CMS\Core\Tests\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)
 
 inject ($target, $name, $dependency)
 
 getUniqueId ($prefix='')
 

Protected Attributes

 $subject
 
- Protected Attributes inherited from TYPO3\CMS\Core\Tests\UnitTestCase
 $backupGlobalsBlacklist = ['TYPO3_LOADED_EXT']
 
 $testFilesToDelete = []
 
- Protected Attributes inherited from TYPO3\CMS\Core\Tests\BaseTestCase
 $backupGlobals = true
 
 $backupStaticAttributes = false
 

Detailed Description

Testcase for TYPO3

Definition at line 26 of file TypoScriptFrontendControllerTest.php.

Member Function Documentation

◆ baseUrlWrapHandlesDifferentUrls()

TYPO3\CMS\Frontend\Tests\Unit\Controller\TypoScriptFrontendControllerTest::baseUrlWrapHandlesDifferentUrls (   $baseUrl,
  $url,
  $expected 
)

baseUrlWrapHandlesDifferentUrlsDataProvider

Test:
Parameters
string$baseUrl
string$url
string$expected

Definition at line 303 of file TypoScriptFrontendControllerTest.php.

◆ baseUrlWrapHandlesDifferentUrlsDataProvider()

TYPO3\CMS\Frontend\Tests\Unit\Controller\TypoScriptFrontendControllerTest::baseUrlWrapHandlesDifferentUrlsDataProvider ( )
Returns
array

Definition at line 270 of file TypoScriptFrontendControllerTest.php.

◆ domainNameMatchesCurrentRequest()

TYPO3\CMS\Frontend\Tests\Unit\Controller\TypoScriptFrontendControllerTest::domainNameMatchesCurrentRequest (   $currentDomain,
  $domainRecord,
  $scriptName,
  $expectedResult 
)
Parameters
string$currentDomain
string$domainRecord
string$scriptName
bool$expectedResult
Test:
domainNameMatchesCurrentRequestDataProvider

Definition at line 260 of file TypoScriptFrontendControllerTest.php.

◆ domainNameMatchesCurrentRequestDataProvider()

TYPO3\CMS\Frontend\Tests\Unit\Controller\TypoScriptFrontendControllerTest::domainNameMatchesCurrentRequestDataProvider ( )

Tests concerning domainNameMatchesCurrentRequest

Returns
array

Definition at line 216 of file TypoScriptFrontendControllerTest.php.

◆ getSysDomainCacheDataProvider()

TYPO3\CMS\Frontend\Tests\Unit\Controller\TypoScriptFrontendControllerTest::getSysDomainCacheDataProvider ( )

Tests concerning getSysDomainCache

Returns
array

Definition at line 120 of file TypoScriptFrontendControllerTest.php.

◆ getSysDomainCacheReturnsCurrentDomainRecord()

TYPO3\CMS\Frontend\Tests\Unit\Controller\TypoScriptFrontendControllerTest::getSysDomainCacheReturnsCurrentDomainRecord (   $currentDomain)
Parameters
string$currentDomain
Test:
getSysDomainCacheDataProvider

Definition at line 140 of file TypoScriptFrontendControllerTest.php.

References $GLOBALS, and TYPO3\CMS\Core\Utility\GeneralUtility\makeInstance().

◆ getSysDomainCacheReturnsForcedDomainRecord()

TYPO3\CMS\Frontend\Tests\Unit\Controller\TypoScriptFrontendControllerTest::getSysDomainCacheReturnsForcedDomainRecord (   $currentDomain)
Parameters
string$currentDomain
Test:
getSysDomainCacheDataProvider

Definition at line 177 of file TypoScriptFrontendControllerTest.php.

References $GLOBALS, and TYPO3\CMS\Core\Utility\GeneralUtility\makeInstance().

◆ headerAndFooterMarkersAreReplacedDuringIntProcessing()

TYPO3\CMS\Frontend\Tests\Unit\Controller\TypoScriptFrontendControllerTest::headerAndFooterMarkersAreReplacedDuringIntProcessing ( )

Tests concerning rendering content

Test:

Definition at line 51 of file TypoScriptFrontendControllerTest.php.

References $GLOBALS.

◆ INTincScript_processCallback()

TYPO3\CMS\Frontend\Tests\Unit\Controller\TypoScriptFrontendControllerTest::INTincScript_processCallback ( )

This is the callback that mimics a USER_INT extension

Definition at line 62 of file TypoScriptFrontendControllerTest.php.

References $GLOBALS.

◆ localizationReturnsUnchangedStringIfNotLocallangLabel()

TYPO3\CMS\Frontend\Tests\Unit\Controller\TypoScriptFrontendControllerTest::localizationReturnsUnchangedStringIfNotLocallangLabel ( )

◆ setUp()

TYPO3\CMS\Frontend\Tests\Unit\Controller\TypoScriptFrontendControllerTest::setUp ( )
protected

Member Data Documentation

◆ $subject

TYPO3\CMS\Frontend\Tests\Unit\Controller\TypoScriptFrontendControllerTest::$subject
protected

Definition at line 31 of file TypoScriptFrontendControllerTest.php.