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

Public Member Functions

 svgsAreRenderedWithTyposcript (array $expectedAssets)
 

Static Public Member Functions

static svgsAreRenderedWithTyposcriptDataProvider ()
 

Protected Member Functions

 setUp ()
 
 setTypoScriptConstantsToTemplateRecord (int $pageId, string $constants, bool $append=false)
 
 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)
 
 buildSiteConfiguration (int $rootPageId, string $base='')
 
 buildDefaultLanguageConfiguration (string $identifier, string $base)
 
 buildLanguageConfiguration (string $identifier, string $base, array $fallbackIdentifiers=[], string $fallbackType=null)
 
 buildErrorHandlingConfiguration (string $handler, array $codes)
 
mixed resolveLanguagePreset (string $identifier)
 
 applyInstructions (InternalRequest $request, AbstractInstruction ... $instructions)
 
 mergeInstruction (AbstractInstruction $current, AbstractInstruction $other)
 

Protected Attributes

array $pathsToProvideInTestInstance
 
array $additionalFoldersToCreate
 
array $coreExtensionsToLoad = ['rte_ckeditor']
 
const LANGUAGE_PRESETS
 

Private Attributes

array $definedResources
 

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 28 of file SvgImageRenderingTest.php.

Member Function Documentation

◆ compileTypoScriptConstants()

TYPO3\CMS\Frontend\Tests\Functional\Rendering\SvgImageRenderingTest::compileTypoScriptConstants ( array  $constants)
protected

◆ setTypoScriptConstantsToTemplateRecord()

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

Adds TypoScript constants snippet to the existing template record

Definition at line 156 of file SvgImageRenderingTest.php.

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

◆ setUp()

◆ svgsAreRenderedWithTyposcript()

TYPO3\CMS\Frontend\Tests\Functional\Rendering\SvgImageRenderingTest::svgsAreRenderedWithTyposcript ( array  $expectedAssets)

Definition at line 136 of file SvgImageRenderingTest.php.

◆ svgsAreRenderedWithTyposcriptDataProvider()

static TYPO3\CMS\Frontend\Tests\Functional\Rendering\SvgImageRenderingTest::svgsAreRenderedWithTyposcriptDataProvider ( )
static

Definition at line 93 of file SvgImageRenderingTest.php.

Member Data Documentation

◆ $additionalFoldersToCreate

array TYPO3\CMS\Frontend\Tests\Functional\Rendering\SvgImageRenderingTest::$additionalFoldersToCreate
protected
Initial value:
= [
'/fileadmin/user_upload',
]

Definition at line 59 of file SvgImageRenderingTest.php.

◆ $coreExtensionsToLoad

array TYPO3\CMS\Frontend\Tests\Functional\Rendering\SvgImageRenderingTest::$coreExtensionsToLoad = ['rte_ckeditor']
protected

Definition at line 63 of file SvgImageRenderingTest.php.

◆ $definedResources

array TYPO3\CMS\Frontend\Tests\Functional\Rendering\SvgImageRenderingTest::$definedResources
private
Initial value:
= [
'localImage1' => 'typo3/sysext/fluid/Tests/Functional/Fixtures/ViewHelpers/ImageViewHelperTest1.svg',
'localImage2' => 'typo3/sysext/fluid/Tests/Functional/Fixtures/ViewHelpers/ImageViewHelperTest2.svg',
'localImage3' => 'typo3/sysext/fluid/Tests/Functional/Fixtures/ViewHelpers/ImageViewHelperTest3.svg',
'localImage4' => 'typo3/sysext/fluid/Tests/Functional/Fixtures/ViewHelpers/ImageViewHelperTest4.svg',
'localImage1Uid' => '1',
'localImage2Uid' => '2',
'localImage3Uid' => '3',
'localImage4Uid' => '4',
'localImage1UidUncrop' => '6',
'localImage2UidUncrop' => '7',
'localImage3UidUncrop' => '8',
'localImage4UidUncrop' => '9',
]

Definition at line 34 of file SvgImageRenderingTest.php.

◆ $pathsToProvideInTestInstance

array TYPO3\CMS\Frontend\Tests\Functional\Rendering\SvgImageRenderingTest::$pathsToProvideInTestInstance
protected
Initial value:
= [
'typo3/sysext/fluid/Tests/Functional/Fixtures/ViewHelpers/ImageViewHelperTest1.svg' => 'fileadmin/user_upload/FALImageViewHelperTest1.svg',
'typo3/sysext/fluid/Tests/Functional/Fixtures/ViewHelpers/ImageViewHelperTest2.svg' => 'fileadmin/user_upload/FALImageViewHelperTest2.svg',
'typo3/sysext/fluid/Tests/Functional/Fixtures/ViewHelpers/ImageViewHelperTest3.svg' => 'fileadmin/user_upload/FALImageViewHelperTest3.svg',
'typo3/sysext/fluid/Tests/Functional/Fixtures/ViewHelpers/ImageViewHelperTest4.svg' => 'fileadmin/user_upload/FALImageViewHelperTest4.svg',
'typo3/sysext/fluid/Tests/Functional/Fixtures/ViewHelpers/ImageViewHelperTest5.svg' => 'fileadmin/user_upload/FALImageViewHelperTest5.svg',
]

Definition at line 51 of file SvgImageRenderingTest.php.

◆ LANGUAGE_PRESETS

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

Definition at line 65 of file SvgImageRenderingTest.php.