‪TYPO3CMS  ‪main
TYPO3\CMS\Frontend\Tests\Unit\Http\RequestHandlerTest Class Reference
Inheritance diagram for TYPO3\CMS\Frontend\Tests\Unit\Http\RequestHandlerTest:

Public Member Functions

 generateHtmlTagIncludesAllPossibilities (array $htmlTagAttributes, array $configuration, string $expectedResult)
 
 generateMetaTagExpectExceptionOnBogusTags ()
 
 generateMetaTagHtmlGeneratesCorrectTags (array $typoScript, string $stdWrapResult, array $expectedTags)
 
 generateMetaTagHtmlGenerateNoTagWithEmptyContent ()
 
 generateMultipleMetaTags (array $typoScript, string $stdWrapResult, array $expectedTags)
 
 resetGlobalsToCurrentRequestDoesNotModifyAnything ()
 
 resetGlobalsToCurrentRequestWithModifiedRequestOverridesGlobals ()
 

Static Public Member Functions

static generateHtmlTagIncludesAllPossibilitiesDataProvider ()
 
static generateMetaTagHtmlGeneratesCorrectTagsDataProvider ()
 
static generateMultipleMetaTagsDataProvider ()
 

Protected Attributes

bool $resetSingletonInstances = true
 

Private Member Functions

 createSiteWithLanguage ()
 

Detailed Description

Todo:
‪: It looks as if these unit tests should be turned into functional tests

Definition at line 47 of file RequestHandlerTest.php.

Member Function Documentation

◆ createSiteWithLanguage()

◆ generateHtmlTagIncludesAllPossibilities()

TYPO3\CMS\Frontend\Tests\Unit\Http\RequestHandlerTest::generateHtmlTagIncludesAllPossibilities ( array  $htmlTagAttributes,
array  $configuration,
string  $expectedResult 
)

Does not test stdWrap functionality.

Definition at line 102 of file RequestHandlerTest.php.

◆ generateHtmlTagIncludesAllPossibilitiesDataProvider()

static TYPO3\CMS\Frontend\Tests\Unit\Http\RequestHandlerTest::generateHtmlTagIncludesAllPossibilitiesDataProvider ( )
static

Definition at line 51 of file RequestHandlerTest.php.

◆ generateMetaTagExpectExceptionOnBogusTags()

TYPO3\CMS\Frontend\Tests\Unit\Http\RequestHandlerTest::generateMetaTagExpectExceptionOnBogusTags ( )

◆ generateMetaTagHtmlGenerateNoTagWithEmptyContent()

TYPO3\CMS\Frontend\Tests\Unit\Http\RequestHandlerTest::generateMetaTagHtmlGenerateNoTagWithEmptyContent ( )

◆ generateMetaTagHtmlGeneratesCorrectTags()

TYPO3\CMS\Frontend\Tests\Unit\Http\RequestHandlerTest::generateMetaTagHtmlGeneratesCorrectTags ( array  $typoScript,
string  $stdWrapResult,
array  $expectedTags 
)

◆ generateMetaTagHtmlGeneratesCorrectTagsDataProvider()

static TYPO3\CMS\Frontend\Tests\Unit\Http\RequestHandlerTest::generateMetaTagHtmlGeneratesCorrectTagsDataProvider ( )
static

Definition at line 169 of file RequestHandlerTest.php.

◆ generateMultipleMetaTags()

TYPO3\CMS\Frontend\Tests\Unit\Http\RequestHandlerTest::generateMultipleMetaTags ( array  $typoScript,
string  $stdWrapResult,
array  $expectedTags 
)

◆ generateMultipleMetaTagsDataProvider()

static TYPO3\CMS\Frontend\Tests\Unit\Http\RequestHandlerTest::generateMultipleMetaTagsDataProvider ( )
static

Definition at line 373 of file RequestHandlerTest.php.

◆ resetGlobalsToCurrentRequestDoesNotModifyAnything()

TYPO3\CMS\Frontend\Tests\Unit\Http\RequestHandlerTest::resetGlobalsToCurrentRequestDoesNotModifyAnything ( )

Test if the method is called, and the globals are still the same after calling the method

Definition at line 492 of file RequestHandlerTest.php.

References $_SERVER, and TYPO3\CMS\Core\Http\ServerRequestFactory\fromGlobals().

◆ resetGlobalsToCurrentRequestWithModifiedRequestOverridesGlobals()

TYPO3\CMS\Frontend\Tests\Unit\Http\RequestHandlerTest::resetGlobalsToCurrentRequestWithModifiedRequestOverridesGlobals ( )

Test if the method is called, and the globals are still the same after calling the method

Definition at line 513 of file RequestHandlerTest.php.

References $_SERVER, and TYPO3\CMS\Core\Http\ServerRequestFactory\fromGlobals().

Member Data Documentation

◆ $resetSingletonInstances

bool TYPO3\CMS\Frontend\Tests\Unit\Http\RequestHandlerTest::$resetSingletonInstances = true
protected

Definition at line 49 of file RequestHandlerTest.php.