‪TYPO3CMS  10.4
TYPO3\CMS\Frontend\Tests\UnitDeprecated\ContentObject\ContentObjectRendererTest Class Reference
Inheritance diagram for TYPO3\CMS\Frontend\Tests\UnitDeprecated\ContentObject\ContentObjectRendererTest:
TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTestTrait

Public Member Functions

array _parseFuncReturnsCorrectHtmlDataProvider ()
 
 stdWrap_parseFuncReturnsParsedHtml ($value, $configuration, $expectedResult)
 
array _parseFuncParsesNestedTagsProperlyDataProvider ()
 
 parseFuncParsesNestedTagsProperly (string $value, array $configuration, string $expectedResult)
 

Protected Member Functions

 setUp ()
 

Protected Attributes

bool $resetSingletonInstances = true
 
 $backupEnvironment = true
 

Private Attributes

PHPUnit Framework MockObject MockObject AccessibleObjectInterface ContentObjectRenderer $subject
 
PHPUnit Framework MockObject MockObject TypoScriptFrontendController AccessibleObjectInterface $frontendControllerMock
 
PHPUnit Framework MockObject MockObject TemplateService $templateServiceMock
 
array $contentObjectMap
 
Prophecy Prophecy ObjectProphecy CacheManager $cacheManager
 

Detailed Description

Test case

Definition at line 54 of file ContentObjectRendererTest.php.

Member Function Documentation

◆ _parseFuncParsesNestedTagsProperlyDataProvider()

array TYPO3\CMS\Frontend\Tests\UnitDeprecated\ContentObject\ContentObjectRendererTest::_parseFuncParsesNestedTagsProperlyDataProvider ( )

Data provider for the parseFuncParsesNestedTagsProperly test

Returns
‪array multi-dimensional array with test data
See also
parseFuncParsesNestedTagsProperly

Definition at line 223 of file ContentObjectRendererTest.php.

◆ _parseFuncReturnsCorrectHtmlDataProvider()

array TYPO3\CMS\Frontend\Tests\UnitDeprecated\ContentObject\ContentObjectRendererTest::_parseFuncReturnsCorrectHtmlDataProvider ( )

◆ parseFuncParsesNestedTagsProperly()

TYPO3\CMS\Frontend\Tests\UnitDeprecated\ContentObject\ContentObjectRendererTest::parseFuncParsesNestedTagsProperly ( string  $value,
array  $configuration,
string  $expectedResult 
)
Test:
‪@dataProvider _parseFuncParsesNestedTagsProperlyDataProvider
Parameters
string$value
array$configuration
string$expectedResult

Definition at line 485 of file ContentObjectRendererTest.php.

◆ setUp()

◆ stdWrap_parseFuncReturnsParsedHtml()

TYPO3\CMS\Frontend\Tests\UnitDeprecated\ContentObject\ContentObjectRendererTest::stdWrap_parseFuncReturnsParsedHtml (   $value,
  $configuration,
  $expectedResult 
)
Test:
‪@dataProvider _parseFuncReturnsCorrectHtmlDataProvider
Parameters
string$value
array$configuration
string$expectedResult

Definition at line 212 of file ContentObjectRendererTest.php.

Member Data Documentation

◆ $backupEnvironment

TYPO3\CMS\Frontend\Tests\UnitDeprecated\ContentObject\ContentObjectRendererTest::$backupEnvironment = true
protected

Definition at line 103 of file ContentObjectRendererTest.php.

◆ $cacheManager

Prophecy Prophecy ObjectProphecy CacheManager TYPO3\CMS\Frontend\Tests\UnitDeprecated\ContentObject\ContentObjectRendererTest::$cacheManager
private

Definition at line 101 of file ContentObjectRendererTest.php.

◆ $contentObjectMap

array TYPO3\CMS\Frontend\Tests\UnitDeprecated\ContentObject\ContentObjectRendererTest::$contentObjectMap
private
Initial value:
= array(
'TEXT' => TextContentObject::class,
'CASE' => CaseContentObject::class,
'COBJ_ARRAY' => ContentObjectArrayContentObject::class,
'COA' => ContentObjectArrayContentObject::class,
'COA_INT' => ContentObjectArrayInternalContentObject::class,
'USER' => UserContentObject::class,
'USER_INT' => UserInternalContentObject::class,
'FILES' => FilesContentObject::class,
'IMAGE' => ImageContentObject::class,
'IMG_RESOURCE' => ImageResourceContentObject::class,
'CONTENT' => ContentContentObject::class,
'RECORDS' => RecordsContentObject::class,
'HMENU' => HierarchicalMenuContentObject::class,
'CASEFUNC' => CaseContentObject::class,
'LOAD_REGISTER' => LoadRegisterContentObject::class,
'RESTORE_REGISTER' => RestoreRegisterContentObject::class,
'FLUIDTEMPLATE' => FluidTemplateContentObject::class,
'SVG' => ScalableVectorGraphicsContentObject::class,
'EDITPANEL' => EditPanelContentObject::class
)

Default content object name -> class name map, shipped with TYPO3 CMS

Definition at line 77 of file ContentObjectRendererTest.php.

◆ $frontendControllerMock

PHPUnit Framework MockObject MockObject TypoScriptFrontendController AccessibleObjectInterface TYPO3\CMS\Frontend\Tests\UnitDeprecated\ContentObject\ContentObjectRendererTest::$frontendControllerMock
private

◆ $resetSingletonInstances

bool TYPO3\CMS\Frontend\Tests\UnitDeprecated\ContentObject\ContentObjectRendererTest::$resetSingletonInstances = true
protected

Reset singletons created by subject

Definition at line 59 of file ContentObjectRendererTest.php.

◆ $subject

PHPUnit Framework MockObject MockObject AccessibleObjectInterface ContentObjectRenderer TYPO3\CMS\Frontend\Tests\UnitDeprecated\ContentObject\ContentObjectRendererTest::$subject
private

Definition at line 63 of file ContentObjectRendererTest.php.

◆ $templateServiceMock

PHPUnit Framework MockObject MockObject TemplateService TYPO3\CMS\Frontend\Tests\UnitDeprecated\ContentObject\ContentObjectRendererTest::$templateServiceMock
private