‪TYPO3CMS  11.5
TYPO3\CMS\Frontend\Tests\Functional\Rendering\UriPrefixRenderingTest Class Reference
Inheritance diagram for TYPO3\CMS\Frontend\Tests\Functional\Rendering\UriPrefixRenderingTest:
TYPO3\CMS\Core\Tests\Functional\SiteHandling\SiteBasedTestTrait

Public Member Functions

 urisAreRenderedUsingAbsRefPrefixDataProvider ()
 
 urisAreRenderedUsingAbsRefPrefix (string $absRefPrefixAspect, string $compressorAspect, array $expectations)
 

Protected Member Functions

 setUp ()
 
 setTypoScriptConstantsToTemplateRecord (int $pageId, string $constants, bool $append=false)
 
string compileTypoScriptConstants (array $constants)
 
- ‪Protected Member Functions inherited from ‪TYPO3\CMS\Core\Tests\Functional\SiteHandling\SiteBasedTestTrait
 writeSiteConfiguration (string $identifier, array $site=[], array $languages=[], array $errorHandling=[])
 
 mergeSiteConfiguration (string $identifier, array $overrides)
 
array buildSiteConfiguration (int $rootPageId, string $base='')
 
array buildDefaultLanguageConfiguration (string $identifier, string $base)
 
array buildLanguageConfiguration (string $identifier, string $base, array $fallbackIdentifiers=[], string $fallbackType=null)
 
array buildErrorHandlingConfiguration (string $handler, array $codes)
 
mixed resolveLanguagePreset (string $identifier)
 
InternalRequest applyInstructions (InternalRequest $request, AbstractInstruction ... $instructions)
 
AbstractInstruction mergeInstruction (AbstractInstruction $current, AbstractInstruction $other)
 

Protected Attributes

 $coreExtensionsToLoad = array( 'rte_ckeditor' )
 
 $configurationToUseInTestInstance
 
const LANGUAGE_PRESETS
 

Private Attributes

string[] $definedResources
 
string[] $resolvedResources
 

Additional Inherited Members

- ‪Static Protected Member Functions inherited from ‪TYPO3\CMS\Core\Tests\Functional\SiteHandling\SiteBasedTestTrait
static failIfArrayIsNotEmpty (array $items)
 

Detailed Description

Definition at line 26 of file UriPrefixRenderingTest.php.

Member Function Documentation

◆ compileTypoScriptConstants()

string TYPO3\CMS\Frontend\Tests\Functional\Rendering\UriPrefixRenderingTest::compileTypoScriptConstants ( array  $constants)
protected
Parameters
array$constants
Returns
‪string

Definition at line 398 of file UriPrefixRenderingTest.php.

Referenced by TYPO3\CMS\Frontend\Tests\Functional\Rendering\UriPrefixRenderingTest\setUp().

◆ setTypoScriptConstantsToTemplateRecord()

TYPO3\CMS\Frontend\Tests\Functional\Rendering\UriPrefixRenderingTest::setTypoScriptConstantsToTemplateRecord ( int  $pageId,
string  $constants,
bool  $append = false 
)
protected

Adds TypoScript constants snippet to the existing template record

Parameters
int$pageId
string$constants
bool$append

Definition at line 377 of file UriPrefixRenderingTest.php.

Referenced by TYPO3\CMS\Frontend\Tests\Functional\Rendering\UriPrefixRenderingTest\setUp().

◆ setUp()

◆ urisAreRenderedUsingAbsRefPrefix()

TYPO3\CMS\Frontend\Tests\Functional\Rendering\UriPrefixRenderingTest::urisAreRenderedUsingAbsRefPrefix ( string  $absRefPrefixAspect,
string  $compressorAspect,
array  $expectations 
)
Parameters
string$absRefPrefixAspect
string$compressorAspect
array$expectations
Test:
‪@dataProvider urisAreRenderedUsingAbsRefPrefixDataProvider

Definition at line 311 of file UriPrefixRenderingTest.php.

◆ urisAreRenderedUsingAbsRefPrefixDataProvider()

TYPO3\CMS\Frontend\Tests\Functional\Rendering\UriPrefixRenderingTest::urisAreRenderedUsingAbsRefPrefixDataProvider ( )

Definition at line 98 of file UriPrefixRenderingTest.php.

Member Data Documentation

◆ $configurationToUseInTestInstance

TYPO3\CMS\Frontend\Tests\Functional\Rendering\UriPrefixRenderingTest::$configurationToUseInTestInstance
protected
Initial value:
= array(
'FE' => [
'cacheHash' => [
'excludedParameters' => ['testAbsRefPrefix', 'testCompressor'],
],
],
'SC_OPTIONS' => [
'Core/TypoScript/TemplateService' => [
'runThroughTemplatesPostProcessing' => [
'FunctionalTest' => \‪TYPO3\TestingFramework\Core\Functional\Framework\Frontend\Hook\TypoScriptInstructionModifier::class . '->apply',
],
],
],
)

Definition at line 57 of file UriPrefixRenderingTest.php.

◆ $coreExtensionsToLoad

TYPO3\CMS\Frontend\Tests\Functional\Rendering\UriPrefixRenderingTest::$coreExtensionsToLoad = array( 'rte_ckeditor' )
protected

Definition at line 55 of file UriPrefixRenderingTest.php.

◆ $definedResources

string [] TYPO3\CMS\Frontend\Tests\Functional\Rendering\UriPrefixRenderingTest::$definedResources
private
Initial value:
= array(
'absoluteCSS' => '/typo3/sysext/backend/Resources/Public/Css/backend.css',
'relativeCSS' => 'typo3/sysext/backend/Resources/Public/Css/backend.css',
'extensionCSS' => 'EXT:rte_ckeditor/Resources/Public/Css/contents.css',
'externalCSS' => 'https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css',
'absoluteJS' => '/typo3/sysext/backend/Resources/Public/JavaScript/backend.js',
'relativeJS' => 'typo3/sysext/core/Resources/Public/JavaScript/Contrib/autosize.js',
'extensionJS' => 'EXT:core/Resources/Public/JavaScript/Contrib/jquery.autocomplete.js',
'externalJS' => 'https://cdnjs.cloudflare.com/ajax/libs/handlebars.js/4.0.11/handlebars.min.js',
'localImage' => 'typo3/sysext/frontend/Resources/Public/Icons/Extension.svg',
)

Definition at line 31 of file UriPrefixRenderingTest.php.

◆ $resolvedResources

string [] TYPO3\CMS\Frontend\Tests\Functional\Rendering\UriPrefixRenderingTest::$resolvedResources
private
Initial value:
= array(
'relativeCSS' => 'typo3/sysext/backend/Resources/Public/Css/backend.css',
'extensionCSS' => 'typo3/sysext/rte_ckeditor/Resources/Public/Css/contents.css',
'externalCSS' => 'https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css',
'relativeJS' => 'typo3/sysext/core/Resources/Public/JavaScript/Contrib/autosize.js',
'extensionJS' => 'typo3/sysext/core/Resources/Public/JavaScript/Contrib/jquery.autocomplete.js',
'externalJS' => 'https://cdnjs.cloudflare.com/ajax/libs/handlebars.js/4.0.11/handlebars.min.js',
'localImage' => 'typo3/sysext/frontend/Resources/Public/Icons/Extension.svg',
)

Definition at line 45 of file UriPrefixRenderingTest.php.

◆ LANGUAGE_PRESETS

const TYPO3\CMS\Frontend\Tests\Functional\Rendering\UriPrefixRenderingTest::LANGUAGE_PRESETS
protected
Initial value:
= [
'EN' => ['id' => 0, 'title' => 'English', 'locale' => 'en_US.UTF8', 'iso' => 'en', 'hrefLang' => 'en-US'],
]

Definition at line 72 of file UriPrefixRenderingTest.php.

‪TYPO3