TYPO3CMS  8
 All Classes Namespaces Files Functions Variables Pages
ContentObjectRendererTest Class Reference
Inheritance diagram for ContentObjectRendererTest:
UnitTestCase BaseTestCase

Public Member Functions

 getImgResourceCallsGetImgResourcePostProcessHook ()
 
 isGetImgResourceHookCalledCallback ($file, $fileArray, $imageResource, $parent)
 
 getContentObjectValidContentObjectsDataProvider ()
 
 getContentObjectCallsMakeInstanceForNewContentObjectInstance ($name, $fullClassName)
 
 getQueryArgumentsExcludesParameters ()
 
 getQueryArgumentsExcludesGetParameters ()
 
 getQueryArgumentsOverrulesSingleParameter ()
 
 getQueryArgumentsOverrulesMultiDimensionalParameters ()
 
 getQueryArgumentsOverrulesMultiDimensionalForcedParameters ()
 
 getQueryArgumentsWithMethodPostGetMergesParameters ()
 
 getQueryArgumentsWithMethodGetPostMergesParameters ()
 
 cropIsMultibyteSafe ()
 
 cropHTMLDataProvider ()
 
 cropHTML ($expect, $content, $conf)
 
 roundDataProvider ()
 
 round ($expect, $content, $conf)
 
 recursiveStdWrapProperlyRendersBasicString ()
 
 recursiveStdWrapIsOnlyCalledOnce ()
 
 numberFormatDataProvider ()
 
 numberFormat ($expects, $content, $conf)
 
 replacementDataProvider ()
 
 replacement ($expects, $content, $conf)
 
 calcAgeDataProvider ()
 
 calcAge ($expect, $timestamp, $labels)
 
 stdWrapReturnsExpectationDataProvider ()
 
 stdWrapReturnsExpectation ($content, array $configuration, $expectation)
 
 substringDataProvider ()
 
 substring ($expect, $content, $conf)
 
 getDataWithTypeGpDataProvider ()
 
 getDataWithTypeGp ($key, $expectedValue)
 
 getDataWithTypeTsfe ()
 
 getDataWithTypeGetenv ()
 
 getDataWithTypeGetindpenv ()
 
 getDataWithTypeField ()
 
 getDataWithTypeFieldAndFieldIsMultiDimensional ()
 
 getDataWithTypeFileReturnsUidOfFileObject ()
 
 getDataWithTypeParameters ()
 
 getDataWithTypeRegister ()
 
 getDataWithTypeLevel ()
 
 getDataWithTypeGlobal ()
 
 getDataWithTypeLeveltitle ()
 
 getDataWithTypeLevelmedia ()
 
 getDataWithTypeLeveluid ()
 
 getDataWithTypeLevelfield ()
 
 getDataWithTypeFullrootline ()
 
 getDataWithTypeDate ()
 
 getDataWithTypePage ()
 
 getDataWithTypeCurrent ()
 
 getDataWithTypeDb ()
 
 getDataWithTypeLll ()
 
 getDataWithTypePath ()
 
 getDataWithTypeParentRecordNumber ()
 
 getDataWithTypeDebugRootline ()
 
 getDataWithTypeDebugFullRootline ()
 
 getDataWithTypeDebugData ()
 
 getDataWithTypeDebugRegister ()
 
 getDataWithTypeDebugPage ()
 
 aTagParamsHasLeadingSpaceIfNotEmpty ()
 
 aTagParamsHaveSpaceBetweenLocalAndGlobalParams ()
 
 aTagParamsHasNoLeadingSpaceIfEmpty ()
 
 getImageTagTemplateFallsBackToDefaultTemplateIfNoTemplateIsFoundDataProvider ()
 
 getImageTagTemplateFallsBackToDefaultTemplateIfNoTemplateIsFound ($key, $configuration)
 
 getImageTagTemplateReturnTemplateElementIdentifiedByKeyDataProvider ()
 
 getImageTagTemplateReturnTemplateElementIdentifiedByKey ($key, $configuration, $expectation)
 
 getImageSourceCollectionReturnsEmptyStringIfNoSourcesAreDefinedDataProvider ()
 
 getImageSourceCollectionReturnsEmptyStringIfNoSourcesAreDefined ($layoutKey, $configuration, $file)
 
 getImageSourceCollectionRendersDefinedLayoutKeyDataDefaultProvider ()
 
 getImageSourceCollectionRendersDefinedLayoutKeyDataDataProvider ()
 
 getImageSourceCollectionHookCalled ()
 
 isGetOneSourceCollectionCalledCallback ($sourceRenderConfiguration, $sourceConfiguration, $oneSourceCollection, $parent)
 
 forceAbsoluteUrlReturnsCorrectAbsoluteUrl ($expected, $url, array $configuration)
 
 forceAbsoluteUrlReturnsCorrectAbsoluteUrlDataProvider ()
 
 renderingContentObjectThrowsException ()
 
 exceptionHandlerIsEnabledByDefaultInProductionContext ()
 
 renderingContentObjectDoesNotThrowExceptionIfExceptionHandlerIsConfiguredLocally ()
 
 renderingContentObjectDoesNotThrowExceptionIfExceptionHandlerIsConfiguredGlobally ()
 
 globalExceptionHandlerConfigurationCanBeOverriddenByLocalConfiguration ()
 
 renderedErrorMessageCanBeCustomized ()
 
 localConfigurationOverridesGlobalConfiguration ()
 
 specificExceptionsCanBeIgnoredByExceptionHandler ()
 
 forceAbsoluteUrlReturnsCorrectAbsoluteUrlWithSubfolder ()
 
 _parseFuncReturnsCorrectHtmlDataProvider ()
 
 stdWrap_parseFuncReturnsParsedHtml ($value, $configuration, $expectedResult)
 
 typolinkReturnsCorrectLinksForEmailsAndUrlsDataProvider ()
 
 typolinkReturnsCorrectLinksForEmailsAndUrls ($linkText, $configuration, $expectedResult)
 
 typoLinkEncodesMailAddressForSpamProtection (array $settings, $linkText, $mailAddress, $expected)
 
 typoLinkEncodesMailAddressForSpamProtectionDataProvider ()
 
 typolinkReturnsCorrectLinksFilesDataProvider ()
 
 typolinkReturnsCorrectLinksFiles ($linkText, $configuration, $expectedResult)
 
 typolinkReturnsCorrectLinksForFilesWithAbsRefPrefixDataProvider ()
 
 typolinkReturnsCorrectLinksForFilesWithAbsRefPrefix ($linkText, $configuration, $absRefPrefix, $expectedResult)
 
 stdWrap_splitObjReturnsCount ()
 
 filelinkCreatesCorrectUrlForFileWithUrlEncodedSpecialChars ()
 
 substituteMarkerArrayCachedReturnsExpectedContentDataProvider ()
 
 calculateCacheKeyDataProvider ()
 
 calculateCacheKey ($expect, $conf, $times, $with, $withWrap, $will)
 
 getFromCacheDtataProvider ()
 
 getFromCache ($expect, $conf, $cacheKey, $times, $cached)
 
 getFieldValDataProvider ()
 
 getFieldVal ($expect, $fields)
 
 caseshiftDataProvider ()
 
 caseshift ($expect, $content, $case)
 
 HTMLcaseshiftDataProvider ()
 
 HTMLcaseshift ($expect, $content, $case, $with, $will)
 
 allStdWrapProcessorsAreCallable ()
 
 notAllStdWrapProcessorsAreCallableWithEmptyConfiguration ()
 
 fourTypesOfStdWrapHookObjectProcessorsDataProvider ()
 
 fourTypesOfStdWrapHookObjectProcessors ($stdWrapMethod, $hookObjectCall)
 
 stdWrap_HTMLparserDataProvider ()
 
 stdWrap_HTMLparser ($expect, $content, $conf, $times, $will)
 
 stdWrap_TCAselectItemDataProvider ()
 
 stdWrap_TCAselectItem ($expect, $content, $conf, $times, $will)
 
 stdWrap_addPageCacheTagsAddsPageTagsDataProvider ()
 
 stdWrap_addPageCacheTagsAddsPageTags (array $expectedTags, array $configuration)
 
 stdWrap_addParams ()
 
 stdWrap_age ()
 
 stdWrap_append ()
 
 stdWrapBrDataProvider ()
 
 stdWrap_br ($expected, $input, $xhtmlDoctype)
 
 stdWrapBrTagDataProvider ()
 
 stdWrap_brTag ($input, $expected, $config)
 
 stdWrap_bytesDataProvider ()
 
 stdWrap_bytes ($expect, $content, $conf)
 
 stdWrap_cObject ()
 
 stdWrap_orderedStdWrapDataProvider ()
 
 stdWrap_orderedStdWrap ($firstConf, $secondConf, $conf)
 
 stdWrap_cacheReadDataProvider ()
 
 stdWrap_cacheRead ($expect, $input, $conf, $times, $with, $will)
 
 stdWrap_cacheStoreDataProvider ()
 
 stdWrap_cacheStore ($confCache, $timesCCK, $key, $times)
 
 stdWrap_case ()
 
 stdWrap_char ()
 
 stdWrap_crop ()
 
 stdWrap_cropHTML ()
 
 stdWrap_csConvDataProvider ()
 
 stdWrap_csConv ($expected, $input, $conf)
 
 stdWrap_current ()
 
 stdWrap_dataDataProvider ()
 
 stdWrap_data ($expect, $data, $alt)
 
 stdWrap_dataWrap ()
 
 stdWrap_dateDataProvider ()
 
 stdWrap_date ($expected, $content, $conf, $now)
 
 stdWrap_debug ()
 
 stdWrap_debugData ()
 
 stdWrap_debugFuncDataProvider ()
 
 stdWrap_debugFunc ($expectArray, $confDebugFunc)
 
 stdWrapDoubleBrTagDataProvider ()
 
 stdWrap_doubleBrTag ($expected, $input, $config)
 
 stdWrap_editIconsDataProvider ()
 
 stdWrap_editIcons ($expect, $content, $conf, $login, $times, $param3, $will)
 
 stdWrap_encapsLines ()
 
 stdWrap_editPanelDataProvider ()
 
 stdWrap_editPanel ($expect, $content, $login, $times, $will)
 
 stdWrap_encodeForJavaScriptValueDataProvider ()
 
 stdWrap_encodeForJavaScriptValue ($expect, $content)
 
 stdWrap_expandListDataProvider ()
 
 stdWrap_expandList ($expected, $content)
 
 stdWrap_field ()
 
 stdWrap_fieldRequiredDataProvider ()
 
 stdWrap_fieldRequired ($expect, $stop, $content, $conf)
 
 stdWrap_filelink ()
 
 stdWrap_filelist ()
 
 hashDataProvider ()
 
 stdWrap_hash ($expect, $content, $conf)
 
 stdWrap_htmlSpecialCharsDataProvider ()
 
 stdWrap_htmlSpecialChars ($expected, $input, $conf)
 
 stdWrap_ifDataProvider ()
 
 stdWrap_if ($expect, $stop, $content, $conf, $times, $will)
 
 stdWrap_ifBlankDataProvider ()
 
 stdWrap_ifBlank ($expect, $content, $conf)
 
 stdWrap_ifEmptyDataProvider ()
 
 stdWrap_ifEmpty ($expect, $content, $conf)
 
 stdWrap_ifNullDataProvider ()
 
 stdWrap_ifNull ($expect, $content, $conf)
 
 stdWrap_innerWrapDataProvider ()
 
 stdWrap_innerWrap ($expected, $input, $conf)
 
 stdWrap_innerWrap2DataProvider ()
 
 stdWrap_innerWrap2 ($expected, $input, $conf)
 
 stdWrap_insertData ()
 
 stdWrap_intvalDataProvider ()
 
 stdWrap_intval ($expect, $content)
 
 stdWrapKeywordsDataProvider ()
 
 stdWrap_keywords ($expected, $input)
 
 stdWrap_langDataProvider ()
 
 stdWrap_lang ($expected, $input, $conf, $language)
 
 stdWrap_listNum ()
 
 stdWrap_noTrimWrapDataProvider ()
 
 stdWrap_noTrimWrap ($expect, $content, $conf)
 
 stdWrap_numRows ()
 
 stdWrap_numberFormat ()
 
 stdWrap_outerWrapDataProvider ()
 
 stdWrap_outerWrap ($expected, $input, $conf)
 
 stdWrap_overrideDataProvider ()
 
 stdWrap_override ($expect, $content, $conf)
 
 stdWrap_parseFunc ()
 
 stdWrap_postCObject ()
 
 stdWrap_postUserFunc ()
 
 stdWrap_postUserFuncInt ()
 
 stdWrap_preCObject ()
 
 stdWrap_preIfEmptyListNum ()
 
 stdWrap_prefixCommentDataProvider ()
 
 stdWrap_prefixComment ($expect, $content, $conf, $disable, $times, $will)
 
 stdWrap_prepend ()
 
 stdWrap_prioriCalcDataProvider ()
 
 stdWrap_prioriCalc ($expect, $content, $conf)
 
 stdWrap_preUserFunc ()
 
 stdWrap_rawUrlEncodeDataProvider ()
 
 stdWrap_rawUrlEncode ($expect, $content)
 
 stdWrap_replacement ()
 
 stdWrap_requiredDataProvider ()
 
 stdWrap_required ($expect, $stop, $content)
 
 stdWrap_round ()
 
 stdWrap_setContentToCurrent ()
 
 stdWrap_setCurrentDataProvider ()
 
 stdWrap_setCurrent ($input, $conf)
 
 stdWrap_space ()
 
 stdWrap_spaceAfter ()
 
 stdWrap_spaceBefore ()
 
 stdWrap_split ()
 
 stdWrap_stdWrap ()
 
 stdWrap_stdWrapValueDataProvider ()
 
 stdWrap_stdWrapValue ($key, array $configuration, $defaultValue, $expected)
 
 stdWrap_strPadDataProvider ()
 
 stdWrap_strPad ($expect, $content, $conf)
 
 stdWrap_strftimeDataProvider ()
 
 stdWrap_strftime ($expect, $content, $conf, $now)
 
 stdWrap_stripHtml ()
 
 stdWrap_strtotimeDataProvider ()
 
 stdWrap_strtotime ($expect, $content, $conf)
 
 stdWrap_substring ()
 
 stdWrap_trimDataProvider ()
 
 stdWrap_trim ($expect, $content)
 
 stdWrap_typolink ()
 
 stdWrap_wrapDataProvider ()
 
 stdWrap_wrap ($expected, $input, $conf)
 
 stdWrap_wrap2DataProvider ()
 
 stdWrap_wrap2 ($expected, $input, $conf)
 
 stdWrap_wrap3DataProvider ()
 
 stdWrap_wrap3 ($expected, $input, $conf)
 
 stdWrap_wrapAlignDataProvider ()
 
 stdWrap_wrapAlign ($expect, $content, $wrapAlignConf)
 

Protected Member Functions

 setUp ()
 
 tearDown ()
 
 getFrontendController ()
 
 createMockedLoggerAndLogManager ()
 
 handleCharset (&$subject, &$expected)
 
 createContentObjectThrowingExceptionFixture ()
 
 getLibParseTarget ()
 
 getLibParseFunc ()
 
 getLibParseFunc_RTE ()
 
- Protected Member Functions inherited from UnitTestCase
 tearDown ()
 
- Protected Member Functions inherited from 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,...$arguments)
 
 inject ($target, $name, $dependency)
 
 getUniqueId ($prefix= '')
 

Protected Attributes

 $singletonInstances = []
 
 $subject = null
 
 $frontendControllerMock = null
 
 $templateServiceMock = null
 
 $contentObjectMap
 
- Protected Attributes inherited from UnitTestCase
 $backupGlobalsBlacklist = ['TYPO3_LOADED_EXT']
 
 $testFilesToDelete = []
 
- Protected Attributes inherited from BaseTestCase
 $backupGlobals = true
 
 $backupStaticAttributes = false
 

Private Member Functions

 rawUrlEncodeSquareBracketsInUrl ($string)
 

Detailed Description

Testcase for TYPO3

Definition at line 58 of file Unit/ContentObject/ContentObjectRendererTest.php.

Member Function Documentation

_parseFuncReturnsCorrectHtmlDataProvider ( )
allStdWrapProcessorsAreCallable ( )

Check that all registered stdWrap processors are callable.

Show:

  • The given invalidProcessor is counted as not callable.
  • All stdWrap processors are counted as callable.
  • Their amount is 91.
Test:
Returns
void

Definition at line 3688 of file Unit/ContentObject/ContentObjectRendererTest.php.

References ContentObjectRendererTest\$subject.

aTagParamsHasLeadingSpaceIfNotEmpty ( )
aTagParamsHasNoLeadingSpaceIfEmpty ( )
Test:

Definition at line 1624 of file Unit/ContentObject/ContentObjectRendererTest.php.

References $GLOBALS.

aTagParamsHaveSpaceBetweenLocalAndGlobalParams ( )
Test:

Definition at line 1614 of file Unit/ContentObject/ContentObjectRendererTest.php.

References $GLOBALS.

calcAge (   $expect,
  $timestamp,
  $labels 
)

Check if calcAge works properly.

Test:
calcAgeDataProvider
Parameters
int$expect
int$timestamp
string$labels
Returns
void

Definition at line 1051 of file Unit/ContentObject/ContentObjectRendererTest.php.

calcAgeDataProvider ( )

Data provider for calcAge.

Returns
array [$expect, $timestamp, $labels]

Definition at line 1008 of file Unit/ContentObject/ContentObjectRendererTest.php.

calculateCacheKey (   $expect,
  $conf,
  $times,
  $with,
  $withWrap,
  $will 
)

Check if calculateCacheKey works properly.

  • takes key from $conf['key']
  • processes key with stdWrap based on $conf['key.']
Test:
calculateCacheKeyDataProvider
Parameters
string$expectExpected result.
array$confProperties 'key', 'key.'
int$timesTimes called mocked method.
array$withParameter passed to mocked method.
string$willReturn value of mocked method.
Returns
void

Definition at line 3399 of file Unit/ContentObject/ContentObjectRendererTest.php.

References ContentObjectRendererTest\$subject, and BaseTestCase\getAccessibleMock().

calculateCacheKeyDataProvider ( )

Check if calculateCacheKey works properly.

Returns
array Order: expect, conf, times, with, withWrap, will

Definition at line 3339 of file Unit/ContentObject/ContentObjectRendererTest.php.

References BaseTestCase\getUniqueId().

caseshift (   $expect,
  $content,
  $case 
)

Check if caseshift works properly.

Test:
caseshiftDataProvider
Parameters
string$expectThe expected output.
string$contentThe given input.
string$caseThe given type of conversion.

Definition at line 3589 of file Unit/ContentObject/ContentObjectRendererTest.php.

caseshiftDataProvider ( )

Data provider for caseshift.

Returns
array [$expect, $content, $case]

Definition at line 3567 of file Unit/ContentObject/ContentObjectRendererTest.php.

createMockedLoggerAndLogManager ( )
protected

Avoid logging to the file system (file writer is currently the only configured writer)

Definition at line 163 of file Unit/ContentObject/ContentObjectRendererTest.php.

References GeneralUtility\setSingletonInstance().

Referenced by ContentObjectRendererTest\setUp().

cropHTML (   $expect,
  $content,
  $conf 
)

Check if cropHTML works properly.

Test:
cropHTMLDataProvider
Parameters
string$expectThe expected cropped output.
string$contentThe given input.
string$confThe given configuration.
Returns
void

Definition at line 759 of file Unit/ContentObject/ContentObjectRendererTest.php.

References ContentObjectRendererTest\handleCharset().

cropHTMLDataProvider ( )

Data provider for cropHTML.

Provides combinations of text type and configuration.

Returns
array [$expect, $conf, $content]

Definition at line 521 of file Unit/ContentObject/ContentObjectRendererTest.php.

cropIsMultibyteSafe ( )
filelinkCreatesCorrectUrlForFileWithUrlEncodedSpecialChars ( )
forceAbsoluteUrlReturnsCorrectAbsoluteUrl (   $expected,
  $url,
array  $configuration 
)
Parameters
string$expectedThe expected URL
string$urlThe URL to parse and manipulate
array$configurationThe configuration array
Test:
forceAbsoluteUrlReturnsCorrectAbsoluteUrlDataProvider

Definition at line 2065 of file Unit/ContentObject/ContentObjectRendererTest.php.

References $GLOBALS.

forceAbsoluteUrlReturnsCorrectAbsoluteUrlDataProvider ( )
Returns
array The test data for forceAbsoluteUrlReturnsAbsoluteUrl

Definition at line 2082 of file Unit/ContentObject/ContentObjectRendererTest.php.

forceAbsoluteUrlReturnsCorrectAbsoluteUrlWithSubfolder ( )
fourTypesOfStdWrapHookObjectProcessors (   $stdWrapMethod,
  $hookObjectCall 
)

Check if stdWrapHookObject processors work properly.

Checks:

  • stdWrap_stdWrapPreProcess
  • stdWrap_stdWrapOverride
  • stdWrap_stdWrapProcess
  • stdWrap_stdWrapPostProcess
Test:
fourTypesOfStdWrapHookObjectProcessorsDataProvider
Parameters
string$stdWrapMethod,The method to cover.
string$hookObjectCall,The expected hook object call.
Returns
void

Definition at line 3803 of file Unit/ContentObject/ContentObjectRendererTest.php.

References BaseTestCase\getUniqueId().

fourTypesOfStdWrapHookObjectProcessorsDataProvider ( )

Data provider for fourTypesOfStdWrapHookObjectProcessors

Returns
array Order: stdWrap, hookObjectCall

Definition at line 3769 of file Unit/ContentObject/ContentObjectRendererTest.php.

getContentObjectCallsMakeInstanceForNewContentObjectInstance (   $name,
  $fullClassName 
)
Test:
getContentObjectValidContentObjectsDataProvider
Parameters
string$nameTypoScript name of content object
string$fullClassNameExpected class name

Definition at line 255 of file Unit/ContentObject/ContentObjectRendererTest.php.

References GeneralUtility\addInstance().

getContentObjectValidContentObjectsDataProvider ( )
getDataWithTypeCurrent ( )

Checks if getData() works with type "current"

Test:

Definition at line 1421 of file Unit/ContentObject/ContentObjectRendererTest.php.

References BaseTestCase\getUniqueId().

getDataWithTypeDate ( )

Checks if getData() works with type "date"

Test:

Definition at line 1395 of file Unit/ContentObject/ContentObjectRendererTest.php.

References $GLOBALS.

getDataWithTypeDb ( )

Checks if getData() works with type "db"

Test:

Definition at line 1435 of file Unit/ContentObject/ContentObjectRendererTest.php.

References $GLOBALS.

getDataWithTypeDebugData ( )

Checks if getData() works with type "debug:data"

Test:

Definition at line 1539 of file Unit/ContentObject/ContentObjectRendererTest.php.

References BaseTestCase\getUniqueId(), and DebugUtility\useAnsiColor().

getDataWithTypeDebugFullRootline ( )

Checks if getData() works with type "debug:fullRootLine"

Test:

Definition at line 1514 of file Unit/ContentObject/ContentObjectRendererTest.php.

References $GLOBALS, and DebugUtility\useAnsiColor().

getDataWithTypeDebugPage ( )

Checks if getData() works with type "data:page"

Test:

Definition at line 1585 of file Unit/ContentObject/ContentObjectRendererTest.php.

References $GLOBALS, and DebugUtility\useAnsiColor().

getDataWithTypeDebugRegister ( )

Checks if getData() works with type "debug:register"

Test:

Definition at line 1562 of file Unit/ContentObject/ContentObjectRendererTest.php.

References $GLOBALS, BaseTestCase\getUniqueId(), and DebugUtility\useAnsiColor().

getDataWithTypeDebugRootline ( )

Checks if getData() works with type "debug:rootLine"

Test:

Definition at line 1489 of file Unit/ContentObject/ContentObjectRendererTest.php.

References $GLOBALS, and DebugUtility\useAnsiColor().

getDataWithTypeField ( )

Checks if getData() works with type "field"

Test:

Definition at line 1201 of file Unit/ContentObject/ContentObjectRendererTest.php.

getDataWithTypeFieldAndFieldIsMultiDimensional ( )

Checks if getData() works with type "field" of the field content is multi-dimensional (e.g. an array)

Test:

Definition at line 1216 of file Unit/ContentObject/ContentObjectRendererTest.php.

getDataWithTypeFileReturnsUidOfFileObject ( )

Basic check if getData gets the uid of a file object

Test:

Definition at line 1230 of file Unit/ContentObject/ContentObjectRendererTest.php.

References BaseTestCase\getUniqueId().

getDataWithTypeFullrootline ( )

Checks if getData() works with type "fullrootline"

Test:

Definition at line 1374 of file Unit/ContentObject/ContentObjectRendererTest.php.

References $GLOBALS.

getDataWithTypeGetenv ( )

Checks if getData() works with type "getenv"

Test:

Definition at line 1176 of file Unit/ContentObject/ContentObjectRendererTest.php.

References BaseTestCase\getUniqueId().

getDataWithTypeGetindpenv ( )

Checks if getData() works with type "getindpenv"

Test:

Definition at line 1189 of file Unit/ContentObject/ContentObjectRendererTest.php.

getDataWithTypeGlobal ( )

Checks if getData() works with type "global"

Test:

Definition at line 1289 of file Unit/ContentObject/ContentObjectRendererTest.php.

References $GLOBALS.

getDataWithTypeGp (   $key,
  $expectedValue 
)

Checks if getData() works with type "gp"

Test:
getDataWithTypeGpDataProvider

Definition at line 1148 of file Unit/ContentObject/ContentObjectRendererTest.php.

getDataWithTypeGpDataProvider ( )
Returns
array

Definition at line 1133 of file Unit/ContentObject/ContentObjectRendererTest.php.

getDataWithTypeLevel ( )

Checks if getData() works with type "level"

Test:

Definition at line 1272 of file Unit/ContentObject/ContentObjectRendererTest.php.

References $GLOBALS.

getDataWithTypeLevelfield ( )

Checks if getData() works with type "levelfield"

Test:

Definition at line 1356 of file Unit/ContentObject/ContentObjectRendererTest.php.

References $GLOBALS.

getDataWithTypeLevelmedia ( )

Checks if getData() works with type "levelmedia"

Test:

Definition at line 1318 of file Unit/ContentObject/ContentObjectRendererTest.php.

References $GLOBALS.

getDataWithTypeLeveltitle ( )

Checks if getData() works with type "leveltitle"

Test:

Definition at line 1299 of file Unit/ContentObject/ContentObjectRendererTest.php.

References $GLOBALS.

getDataWithTypeLeveluid ( )

Checks if getData() works with type "leveluid"

Test:

Definition at line 1337 of file Unit/ContentObject/ContentObjectRendererTest.php.

References $GLOBALS.

getDataWithTypeLll ( )

Checks if getData() works with type "lll"

Test:

Definition at line 1448 of file Unit/ContentObject/ContentObjectRendererTest.php.

References $GLOBALS, and BaseTestCase\getUniqueId().

getDataWithTypePage ( )

Checks if getData() works with type "page"

Test:

Definition at line 1409 of file Unit/ContentObject/ContentObjectRendererTest.php.

References $GLOBALS.

getDataWithTypeParameters ( )

Checks if getData() works with type "parameters"

Test:

Definition at line 1244 of file Unit/ContentObject/ContentObjectRendererTest.php.

References BaseTestCase\getUniqueId().

getDataWithTypeParentRecordNumber ( )

Checks if getData() works with type "parentRecordNumber"

Test:

Definition at line 1477 of file Unit/ContentObject/ContentObjectRendererTest.php.

getDataWithTypePath ( )

Checks if getData() works with type "path"

Test:

Definition at line 1464 of file Unit/ContentObject/ContentObjectRendererTest.php.

References BaseTestCase\getUniqueId().

getDataWithTypeRegister ( )

Checks if getData() works with type "register"

Test:

Definition at line 1258 of file Unit/ContentObject/ContentObjectRendererTest.php.

References $GLOBALS, and BaseTestCase\getUniqueId().

getDataWithTypeTsfe ( )

Checks if getData() works with type "tsfe"

Test:

Definition at line 1166 of file Unit/ContentObject/ContentObjectRendererTest.php.

References $GLOBALS.

getFieldVal (   $expect,
  $fields 
)

Check that getFieldVal works properly.

Show:

  • Returns the field from $this->data.
  • The keys are trimmed.
  • For a single key (no //) returns the field as is:
    • '' => ''
    • null => null
    • false => false
    • true => true
    • 0 => 0
    • 1 => 1
    • 'string' => 'string'
  • If '//' is present, explodes key candidates.
  • Returns the first field, that is not "empty".
  • "Empty" is checked after type cast to string by comparing to ''.
  • The winning non-empty value is returned as is.
  • The fallback, if all evals to empty, is the empty string ''.
  • '//' with single elements and empty string fallback results in:
    • '' => ''
    • null => ''
    • false => ''
    • true => true
    • 0 => 0
    • 1 => 1
    • 'string' => 'string'
Test:
getFieldValDataProvider
Parameters
string$expectThe expected string.
string$fieldsField names divides by //.
Returns
void

Definition at line 3545 of file Unit/ContentObject/ContentObjectRendererTest.php.

References $fields.

getFieldValDataProvider ( )

Data provider for getFieldVal

Returns
array [$expect, $fields]

Definition at line 3475 of file Unit/ContentObject/ContentObjectRendererTest.php.

getFromCache (   $expect,
  $conf,
  $cacheKey,
  $times,
  $cached 
)

Check if getFromCache works properly.

  • CalculateCacheKey is called to calc the cache key.
  • $conf is passed on as parameter
  • CacheFrontend is created and called if $cacheKey is not empty.
  • Else false is returned.
Test:
getFromCacheDtataProvider
Parameters
string$expectExpected result.
array$confConfiguration to pass to calculateCacheKey mock.
string$cacheKeyReturn from calculateCacheKey mock.
int$timesTimes the cache is expected to be called (0 or 1).
string$cachedReturn from cacheFrontend mock.
Returns
void

Definition at line 3446 of file Unit/ContentObject/ContentObjectRendererTest.php.

References ContentObjectRendererTest\$subject, BaseTestCase\getAccessibleMock(), and GeneralUtility\setSingletonInstance().

getFromCacheDtataProvider ( )

Data provider for getFromCache

Returns
array Order: expect, conf, cacheKey, times, cached.

Definition at line 3416 of file Unit/ContentObject/ContentObjectRendererTest.php.

References BaseTestCase\getUniqueId().

getFrontendController ( )
protected
Returns
TypoScriptFrontendController

Definition at line 155 of file Unit/ContentObject/ContentObjectRendererTest.php.

References $GLOBALS.

Referenced by ContentObjectRendererTest\typoLinkEncodesMailAddressForSpamProtection().

getImageSourceCollectionHookCalled ( )

Make sure the hook in get sourceCollection is called

Test:

Definition at line 1985 of file Unit/ContentObject/ContentObjectRendererTest.php.

References $GLOBALS, GeneralUtility\addInstance(), BaseTestCase\getAccessibleMock(), and BaseTestCase\getUniqueId().

getImageSourceCollectionRendersDefinedLayoutKeyDataDataProvider ( )

Data provider for the getImageSourceCollectionRendersDefinedLayoutKeyData test

Returns
array multi-dimensional array with the second level like this:
See also
getImageSourceCollectionRendersDefinedLayoutKeyData
See also
css_styled_content/static/setup.txt

Definition at line 1854 of file Unit/ContentObject/ContentObjectRendererTest.php.

getImageSourceCollectionRendersDefinedLayoutKeyDataDefaultProvider ( )

Data provider for the getImageSourceCollectionRendersDefinedLayoutKeyDefault test

Returns
array multi-dimensional array with the second level like this:
See also
getImageSourceCollectionRendersDefinedLayoutKeyDefault
See also
css_styled_content/static/setup.txt

Definition at line 1780 of file Unit/ContentObject/ContentObjectRendererTest.php.

getImageSourceCollectionReturnsEmptyStringIfNoSourcesAreDefined (   $layoutKey,
  $configuration,
  $file 
)

Make sure the source collection is empty if no valid configuration or source collection is defined

Test:
getImageSourceCollectionReturnsEmptyStringIfNoSourcesAreDefinedDataProvider
Parameters
string$layoutKey
array$configuration
string$file

Definition at line 1717 of file Unit/ContentObject/ContentObjectRendererTest.php.

getImageSourceCollectionReturnsEmptyStringIfNoSourcesAreDefinedDataProvider ( )
Returns
array

Definition at line 1699 of file Unit/ContentObject/ContentObjectRendererTest.php.

getImageTagTemplateFallsBackToDefaultTemplateIfNoTemplateIsFound (   $key,
  $configuration 
)

Make sure that the rendering falls back to the classic <img style if nothing else is found

Test:
getImageTagTemplateFallsBackToDefaultTemplateIfNoTemplateIsFoundDataProvider
Parameters
string$key
array$configuration

Definition at line 1653 of file Unit/ContentObject/ContentObjectRendererTest.php.

getImageTagTemplateFallsBackToDefaultTemplateIfNoTemplateIsFoundDataProvider ( )
Returns
array

Definition at line 1635 of file Unit/ContentObject/ContentObjectRendererTest.php.

getImageTagTemplateReturnTemplateElementIdentifiedByKey (   $key,
  $configuration,
  $expectation 
)

Assure if a layoutKey and layout is given the selected layout is returned

Test:
getImageTagTemplateReturnTemplateElementIdentifiedByKeyDataProvider
Parameters
string$key
array$configuration
string$expectation

Definition at line 1690 of file Unit/ContentObject/ContentObjectRendererTest.php.

getImageTagTemplateReturnTemplateElementIdentifiedByKeyDataProvider ( )
Returns
array

Definition at line 1663 of file Unit/ContentObject/ContentObjectRendererTest.php.

getImgResourceCallsGetImgResourcePostProcessHook ( )
getLibParseFunc_RTE ( )
protected
getLibParseTarget ( )
protected
getQueryArgumentsExcludesGetParameters ( )
getQueryArgumentsExcludesParameters ( )
getQueryArgumentsOverrulesMultiDimensionalForcedParameters ( )
getQueryArgumentsOverrulesMultiDimensionalParameters ( )
getQueryArgumentsOverrulesSingleParameter ( )
getQueryArgumentsWithMethodGetPostMergesParameters ( )
getQueryArgumentsWithMethodPostGetMergesParameters ( )
globalExceptionHandlerConfigurationCanBeOverriddenByLocalConfiguration ( )
handleCharset ( $subject,
$expected 
)
protected

Converts the subject and the expected result into utf-8.

Parameters
string$subjectthe subject, will be modified
string$expectedthe expected result, will be modified

Definition at line 179 of file Unit/ContentObject/ContentObjectRendererTest.php.

References ContentObjectRendererTest\$subject.

Referenced by ContentObjectRendererTest\cropHTML().

hashDataProvider ( )

Data provider for the hash test

Returns
array [$expect, $content, $conf]

Definition at line 5466 of file Unit/ContentObject/ContentObjectRendererTest.php.

HTMLcaseshift (   $expect,
  $content,
  $case,
  $with,
  $will 
)

Check if HTMLcaseshift works properly.

Show:

  • Only shifts the case of characters not part of tags.
  • Delegates to the method caseshift.
Test:
HTMLcaseshiftDataProvider
Parameters
string$expectThe expected output.
string$contentThe given input.
string$caseThe given type of conversion.
array$withConsecutive args expected by caseshift.
array$willConsecutive return values of caseshfit.
Returns
void

Definition at line 3659 of file Unit/ContentObject/ContentObjectRendererTest.php.

References ContentObjectRendererTest\$subject.

HTMLcaseshiftDataProvider ( )

Data provider for HTMLcaseshift.

Returns
array [$expect, $content, $case, $with, $will]

Definition at line 3600 of file Unit/ContentObject/ContentObjectRendererTest.php.

References BaseTestCase\getUniqueId().

isGetImgResourceHookCalledCallback (   $file,
  $fileArray,
  $imageResource,
  $parent 
)

Handles the arguments that have been sent to the getImgResource hook.

Parameters
string$file
array$fileArray
$imageResource
\TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer$parent
Returns
array
See also
getImgResourceHookGetsCalled

Definition at line 227 of file Unit/ContentObject/ContentObjectRendererTest.php.

isGetOneSourceCollectionCalledCallback (   $sourceRenderConfiguration,
  $sourceConfiguration,
  $oneSourceCollection,
  $parent 
)

Handles the arguments that have been sent to the getImgResource hook.

Parameters
array$sourceRenderConfiguration
array$sourceConfiguration
$oneSourceCollection
$parent
Returns
string
See also
getImageSourceCollectionHookCalled

Definition at line 2051 of file Unit/ContentObject/ContentObjectRendererTest.php.

localConfigurationOverridesGlobalConfiguration ( )
notAllStdWrapProcessorsAreCallableWithEmptyConfiguration ( )

Check which stdWrap functions are callable with empty parameters.

Show:

  • Almost all stdWrap_[type] are callable if called with 2 parameters:
    • string $content Empty string.
    • array $conf ['type' => '', 'type.' => []].
  • Exeptions: stdWrap_numRows, stdWrap_split
  • The overall count is 91.

    Note:

    The two exceptions break, if the configuration is empty. This test just tracks the different behaviour to gain information. It doesn't mean that it is an issue.

Test:
Returns
void

Definition at line 3728 of file Unit/ContentObject/ContentObjectRendererTest.php.

numberFormat (   $expects,
  $content,
  $conf 
)

Check if numberFormat works properly.

numberFormatDataProvider

Test:

Definition at line 928 of file Unit/ContentObject/ContentObjectRendererTest.php.

numberFormatDataProvider ( )

Data provider for numberFormat.

Returns
array [$expect, $content, $conf]

Definition at line 889 of file Unit/ContentObject/ContentObjectRendererTest.php.

recursiveStdWrapIsOnlyCalledOnce ( )
recursiveStdWrapProperlyRendersBasicString ( )
renderingContentObjectDoesNotThrowExceptionIfExceptionHandlerIsConfiguredGlobally ( )
renderingContentObjectDoesNotThrowExceptionIfExceptionHandlerIsConfiguredLocally ( )
renderingContentObjectThrowsException ( )
replacement (   $expects,
  $content,
  $conf 
)

Check if stdWrap.replacement and all of its properties work properly

Test:
replacementDataProvider
Parameters
string$contentThe given input.
string$expectsThe expected result.
array$confThe given configuration.
Returns
void

Definition at line 997 of file Unit/ContentObject/ContentObjectRendererTest.php.

replacementDataProvider ( )

Data provider replacement

Returns
array [$expect, $content, $conf]

Definition at line 939 of file Unit/ContentObject/ContentObjectRendererTest.php.

round (   $expect,
  $content,
  $conf 
)

Check if round works properly

Show:

  • Different types of input are casted to float.
  • Configuration ceil rounds like ceil().
  • Configuration floor rounds like floor().
  • Otherwise rounds like round() and decimals can be applied.
  • Always returns float.
Parameters
float$expectedThe expected output.
mixed$contentThe given content.
array$confThe given configuration of 'round.'.
Returns
void roundDataProvider
Test:

Definition at line 831 of file Unit/ContentObject/ContentObjectRendererTest.php.

roundDataProvider ( )

Data provider for round

Returns
array [$expect, $contet, $conf]

Definition at line 771 of file Unit/ContentObject/ContentObjectRendererTest.php.

specificExceptionsCanBeIgnoredByExceptionHandler ( )
stdWrap_addPageCacheTagsAddsPageTags ( array  $expectedTags,
array  $configuration 
)
Parameters
array$expectedTags
array$configuration
Test:
stdWrap_addPageCacheTagsAddsPageTagsDataProvider

Definition at line 3983 of file Unit/ContentObject/ContentObjectRendererTest.php.

stdWrap_addPageCacheTagsAddsPageTagsDataProvider ( )
Returns
array

Definition at line 3956 of file Unit/ContentObject/ContentObjectRendererTest.php.

stdWrap_addParams ( )

Check that stdWrap_addParams works properly.

Show:

  • Delegates to method addParams.
  • Parameter 1 is $content.
  • Parameter 2 is $conf['addParams.'].
  • Returns the return value.
Test:
Returns
void.

Definition at line 4002 of file Unit/ContentObject/ContentObjectRendererTest.php.

References ContentObjectRendererTest\$subject, and BaseTestCase\getUniqueId().

stdWrap_age ( )

Check if stdWrap_age works properly.

Show:

  • Delegates to calcAge.
  • Parameter 1 is the difference between $content and EXEC_TIME.
  • Parameter 2 is $conf['age'].
  • Returns the return value.
Test:
Returns
void

Definition at line 4034 of file Unit/ContentObject/ContentObjectRendererTest.php.

References $GLOBALS, ContentObjectRendererTest\$subject, and BaseTestCase\getUniqueId().

stdWrap_append ( )

Check if stdWrap_append works properly.

Show:

  • Delegates to the method cObjGetSingle().
  • First parameter is $conf['append'].
  • Second parameter is $conf['append.'].
  • Third parameter is '/stdWrap/.append'.
  • Returns the return value appended to $content.
Test:
Returns
void

Definition at line 4066 of file Unit/ContentObject/ContentObjectRendererTest.php.

References ContentObjectRendererTest\$subject, and BaseTestCase\getUniqueId().

stdWrap_br (   $expected,
  $input,
  $xhtmlDoctype 
)

Test that stdWrap_br works as expected.

Parameters
string$expectedThe expected value.
string$inputThe input value.
string$xhtmlDoctypeXhtml document type.
Returns
void
Test:
stdWrapBrDataProvider

Definition at line 4127 of file Unit/ContentObject/ContentObjectRendererTest.php.

References $GLOBALS.

stdWrap_brTag (   $input,
  $expected,
  $config 
)

Check if brTag works properly

Test:
stdWrapBrTagDataProvider

Definition at line 4167 of file Unit/ContentObject/ContentObjectRendererTest.php.

stdWrap_bytes (   $expect,
  $content,
  $conf 
)

Check if stdWrap_bytes works properly.

Show:

  • Delegates to GeneralUtility::formatSize
  • Parameter 1 is $conf['bytes.'][labels'].
  • Parameter 2 is $conf['bytes.'][base'].
  • Returns the return value.

Note: As PHPUnit can't mock static methods, the call to GeneralUtility::formatSize can't be easily intercepted. The test is done by testing input/output pairs instead. To not duplicate the testing of formatSize just a few smoke tests are done here.

Test:
stdWrap_bytesDataProvider
Parameters
string$expectThe expected output.
string$contentThe given input.
array$confThe given configuration for 'bytes.'.
Returns
void

Definition at line 4229 of file Unit/ContentObject/ContentObjectRendererTest.php.

stdWrap_bytesDataProvider ( )

Data provider for stdWrap_bytes.

Returns
array [$expect, $content, $conf]

Definition at line 4177 of file Unit/ContentObject/ContentObjectRendererTest.php.

stdWrap_cacheRead (   $expect,
  $input,
  $conf,
  $times,
  $with,
  $will 
)

Check if stdWrap_cacheRead works properly.

  • the method branches correctly
  • getFromCache is called to fetch from cache
  • $conf['cache.'] is passed on as parameter
Test:
stdWrap_cacheReadDataProvider
Parameters
string$expectExpected result.
string$inputGiven input string.
array$confProperty 'cache.'
int$timesTimes called mocked method.
array$withParameter passed to mocked method.
string | false$willReturn value of mocked method.
Returns
void

Definition at line 4390 of file Unit/ContentObject/ContentObjectRendererTest.php.

References ContentObjectRendererTest\$subject, and BaseTestCase\getAccessibleMock().

stdWrap_cacheReadDataProvider ( )

Data provider for stdWrap_cacheRead

Returns
array Order: expect, input, conf, times, with, will

Definition at line 4349 of file Unit/ContentObject/ContentObjectRendererTest.php.

References BaseTestCase\getUniqueId().

stdWrap_cacheStore (   $confCache,
  $timesCCK,
  $key,
  $times 
)

Check if stdWrap_cacheStore works properly.

Show:

  • Returns $content as is.
  • Returns immediate if $conf['cache.'] is not set.
  • Returns immediate if calculateCacheKey returns an empty value.
  • Calls calculateCacheKey with $conf['cache.'].
  • Calls calculateCacheTags with $conf['cache.'].
  • Calls calculateCacheLifetime with $conf['cache.'].
  • Calls all configured user functions with $params, $this.
  • Calls set on the cache frontent with $key, $content, $tags, $lifetime.
Test:
stdWrap_cacheStoreDataProvider
Parameters
array$confCacheConfiguration of 'cache.'
int$timesCCKTimes calculateCacheKey is called.
string$keyThe return value of calculateCacheKey.
int$timesTimes the other methods are called.
Returns
void

Definition at line 4448 of file Unit/ContentObject/ContentObjectRendererTest.php.

References $GLOBALS, ContentObjectRendererTest\$subject, BaseTestCase\getAccessibleMock(), BaseTestCase\getUniqueId(), and GeneralUtility\setSingletonInstance().

stdWrap_cacheStoreDataProvider ( )

Data provider for stdWrap_cacheStore.

Returns
array [$confCache, $timesCCK, $key, $times]

Definition at line 4409 of file Unit/ContentObject/ContentObjectRendererTest.php.

References BaseTestCase\getUniqueId().

stdWrap_case ( )

Check if stdWrap_case works properly.

Show:

  • Delegates to method HTMLcaseshift.
  • Parameter 1 is $content.
  • Parameter 2 is $conf['case'].
  • Returns the return value.
Test:
Returns
void

Definition at line 4513 of file Unit/ContentObject/ContentObjectRendererTest.php.

References ContentObjectRendererTest\$subject, and BaseTestCase\getUniqueId().

stdWrap_char ( )

Check if stdWrap_char works properly.

Test:
Returns
void

Definition at line 4538 of file Unit/ContentObject/ContentObjectRendererTest.php.

stdWrap_cObject ( )

Check if stdWrap_cObject works properly.

Show:

  • Delegates to the method cObjGetSingle().
  • Parameter 1 is $conf['cObject'].
  • Parameter 2 is $conf['cObject.'].
  • Parameter 3 is '/stdWrap/.cObject'.
  • Returns the return value.
Test:
Returns
void

Definition at line 4256 of file Unit/ContentObject/ContentObjectRendererTest.php.

References ContentObjectRendererTest\$subject, and BaseTestCase\getUniqueId().

stdWrap_crop ( )

Check if stdWrap_crop works properly.

Show:

  • Delegates to method listNum.
  • Parameter 1 is $content.
  • Parameter 2 is $conf['crop'].
  • Returns the return value.
Test:
Returns
void

Definition at line 4558 of file Unit/ContentObject/ContentObjectRendererTest.php.

References ContentObjectRendererTest\$subject, and BaseTestCase\getUniqueId().

stdWrap_cropHTML ( )

Check if stdWrap_cropHTML works properly.

Show:

  • Delegates to method cropHTML.
  • Parameter 1 is $content.
  • Parameter 2 is $conf['cropHTML'].
  • Returns the return value.
Test:
Returns
void

Definition at line 4590 of file Unit/ContentObject/ContentObjectRendererTest.php.

References ContentObjectRendererTest\$subject, and BaseTestCase\getUniqueId().

stdWrap_csConv (   $expected,
  $input,
  $conf 
)

Check if stdWrap_csConv works properly.

Test:
stdWrap_csConvDataProvider
Parameters
string$expectedThe expected value.
string$valueThe input value.
array$confProperty: csConv
Returns
void

Definition at line 4660 of file Unit/ContentObject/ContentObjectRendererTest.php.

stdWrap_csConvDataProvider ( )

Data provider for stdWrap_csConv

Returns
array Order expected, input, conf

Definition at line 4614 of file Unit/ContentObject/ContentObjectRendererTest.php.

stdWrap_current ( )

Check if stdWrap_current works properly.

Show:

  • current is returned from $this->data
  • the key is stored in $this->currentValKey
  • the key defaults to 'currentValue_kidjls9dksoje'
Test:
Returns
void

Definition at line 4678 of file Unit/ContentObject/ContentObjectRendererTest.php.

stdWrap_data (   $expect,
  $data,
  $alt 
)

Checks that stdWrap_data works properly.

Show:

  • Delegates to method getData.
  • Parameter 1 is $conf['data'].
  • Parameter 2 is property data by default.
  • Parameter 2 is property alternativeData, if set as array.
  • Property alternativeData is always unset to ''.
  • Returns the return value.
Test:
stdWrap_dataDataProvider
Parameters
mixed$expectExpect either $data or $alternativeData.
array$dataThe data.
mixed$altThe alternativeData.
Returns
void

Definition at line 4733 of file Unit/ContentObject/ContentObjectRendererTest.php.

References ContentObjectRendererTest\$subject, BaseTestCase\getAccessibleMock(), and BaseTestCase\getUniqueId().

stdWrap_dataDataProvider ( )

Data provider for stdWrap_data.

Returns
array [$expect, $data, $alt]

Definition at line 4699 of file Unit/ContentObject/ContentObjectRendererTest.php.

References BaseTestCase\getUniqueId().

stdWrap_dataWrap ( )

Check that stdWrap_dataWrap works properly.

Show:

  • Delegates to method dataWrap.
  • Parameter 1 is $content.
  • Parameter 2 is $conf['dataWrap'].
  • Returns the return value.
Test:
Returns
void.

Definition at line 4763 of file Unit/ContentObject/ContentObjectRendererTest.php.

References ContentObjectRendererTest\$subject, and BaseTestCase\getUniqueId().

stdWrap_date (   $expected,
  $content,
  $conf,
  $now 
)

Check if stdWrap_date works properly.

Test:
stdWrap_dateDataProvider
Parameters
string$expectedThe expected output.
mixed$contentThe given input.
array$confThe given configuration.
int$nowFictive execution time.
Returns
void

Definition at line 4833 of file Unit/ContentObject/ContentObjectRendererTest.php.

References $GLOBALS.

stdWrap_dateDataProvider ( )

Data provider for the stdWrap_date test

Returns
array [$expect, $content, $conf, $now]

Definition at line 4787 of file Unit/ContentObject/ContentObjectRendererTest.php.

stdWrap_debug ( )

Check if stdWrap_debug works properly.

Test:
Returns
void

Definition at line 4846 of file Unit/ContentObject/ContentObjectRendererTest.php.

stdWrap_debugData ( )

Check if stdWrap_debug works properly.

Show:

  • Calls the function debug.
  • Parameter 1 is $this->data.
  • Parameter 2 is the string '$cObj->data:'.
  • If $this->alternativeData is an array the same is repeated with:
  • Parameter 1 is $this->alternativeData.
  • Parameter 2 is the string '$cObj->alternativeData:'.
  • Returns $content as is.

Note 1:

As PHPUnit can't mock PHP function calls, the call to debug can't be easily intercepted. The test is done indirectly by catching the frontend output of debug.

Note 2:

The second parameter to the debug function isn't used by the current implementation at all. It can't even indirectly be tested.

Test:
Returns
void

Definition at line 4881 of file Unit/ContentObject/ContentObjectRendererTest.php.

References $GLOBALS, and BaseTestCase\getUniqueId().

stdWrap_debugFunc (   $expectArray,
  $confDebugFunc 
)

Check if stdWrap_debugFunc works properly.

Show:

  • Calls the function debug with one parameter.
  • The parameter is the given $content string.
  • The string is casted to array before, if (int)$conf['debugFunc'] is 2.
  • Returns $content as is.

Note 1:

As PHPUnit can't mock PHP function calls, the call to debug can't be easily intercepted. The test is done indirectly by catching the frontend output of debug.

Test:
stdWrap_debugFuncDataProvider
Parameters
bool$expectArrayIf cast to array is expected.
mixed$confDebugFuncThe configuration for $conf['debugFunc'].
Returns
void

Definition at line 4943 of file Unit/ContentObject/ContentObjectRendererTest.php.

References $GLOBALS, and BaseTestCase\getUniqueId().

stdWrap_debugFuncDataProvider ( )
stdWrap_doubleBrTag (   $expected,
  $input,
  $config 
)

Check if doubleBrTag works properly

Test:
stdWrapDoubleBrTagDataProvider
Parameters
string$expectedThe expected value.
string$inputThe input value.
array$configThe property 'doubleBrTag'.
Returns
void

Definition at line 5031 of file Unit/ContentObject/ContentObjectRendererTest.php.

stdWrap_editIcons (   $expect,
  $content,
  $conf,
  $login,
  $times,
  $param3,
  $will 
)

Check if stdWrap_editIcons works properly.

Show:

  • Returns $content as is if:
    • beUserLogin is not set
    • (bool)$conf['editIcons'] is false
  • Otherwise:
    • Delegates to method editIcons.
    • Parameter 1 is $content.
    • Parameter 2 is $conf['editIcons'].
    • Parameter 3 is $conf['editIcons.'].
    • If $conf['editIcons.'] is no array at all, the empty array is used.
    • Returns the return value.
Test:
stdWrap_editIconsDataProvider
Parameters
string$expectThe expected output.
string$contentThe given content.
array$confThe given configuration.
bool$loginSimulate backend user login.
int$timesTimes editIcons is called (0 or 1).
array$param3The expected third parameter.
string$willReturn value of editIcons.
Returns
void

Definition at line 5108 of file Unit/ContentObject/ContentObjectRendererTest.php.

References $GLOBALS, and ContentObjectRendererTest\$subject.

stdWrap_editIconsDataProvider ( )

Data provider for stdWrap_editIcons.

Returns
[$expect, $content, $conf, $login, $times, $param3, $will]

Definition at line 5041 of file Unit/ContentObject/ContentObjectRendererTest.php.

References BaseTestCase\getUniqueId().

stdWrap_editPanel (   $expect,
  $content,
  $login,
  $times,
  $will 
)

Check if stdWrap_editPanel works properly.

Show:

  • Returns $content as is if:
    • beUserLogin is not set
  • Otherwise:
    • Delegates to method editPanel.
    • Parameter 1 is $content.
    • Parameter 2 is $conf['editPanel'].
    • Returns the return value.
Test:
stdWrap_editPanelDataProvider
Parameters
string$expectThe expected output.
string$contentThe given content.
bool$loginSimulate backend user login.
int$timesTimes editPanel is called (0 or 1).
string$willReturn value of editPanel.
Returns
void

Definition at line 5196 of file Unit/ContentObject/ContentObjectRendererTest.php.

References $GLOBALS, ContentObjectRendererTest\$subject, and BaseTestCase\getUniqueId().

stdWrap_editPanelDataProvider ( )

Data provider for stdWrap_editPanel.

Returns
[$expect, $content, $login, $times, $will]

Definition at line 5160 of file Unit/ContentObject/ContentObjectRendererTest.php.

References BaseTestCase\getUniqueId().

stdWrap_encapsLines ( )

Check if stdWrap_encapsLines works properly.

Show:

  • Delegates to method encaps_lineSplit.
  • Parameter 1 is $content.
  • Prameter 2 is $conf['encapsLines'].
  • Returns the return value.
Test:
Returns
void

Definition at line 5136 of file Unit/ContentObject/ContentObjectRendererTest.php.

References ContentObjectRendererTest\$subject, and BaseTestCase\getUniqueId().

stdWrap_encodeForJavaScriptValue (   $expect,
  $content 
)

Check if encodeForJavaScriptValue works properly.

Test:
stdWrap_encodeForJavaScriptValueDataProvider
Parameters
string$expectThe expected output.
string$contentThe given input.
Returns
void

Definition at line 5253 of file Unit/ContentObject/ContentObjectRendererTest.php.

stdWrap_encodeForJavaScriptValueDataProvider ( )

Data provider for stdWrap_encodeForJavaScriptValue.

Returns
array []

Definition at line 5217 of file Unit/ContentObject/ContentObjectRendererTest.php.

stdWrap_expandList (   $expected,
  $content 
)

Test for the stdWrap function "expandList"

The method simply delegates to GeneralUtility::expandList. There is no need to repeat the full set of tests of this method here. As PHPUnit can't mock static methods, to prove they are called, all we do here is to provide a few smoke tests.

Test:
stdWrap_expandListDataProvider
Parameters
string$expectedThe expeced output.
string$contentThe given content.
Returns
void

Definition at line 5287 of file Unit/ContentObject/ContentObjectRendererTest.php.

stdWrap_expandListDataProvider ( )

Data provider for expandList

Returns
array [$expect, $content]

Definition at line 5264 of file Unit/ContentObject/ContentObjectRendererTest.php.

stdWrap_field ( )

Check if stdWrap_field works properly.

Show:

  • calls getFieldVal
  • passes conf['field'] as parameter
Test:
Returns
void

Definition at line 5304 of file Unit/ContentObject/ContentObjectRendererTest.php.

References ContentObjectRendererTest\$subject, and BaseTestCase\getUniqueId().

stdWrap_fieldRequired (   $expect,
  $stop,
  $content,
  $conf 
)

Check if stdWrap_fieldRequired works properly.

Show:

  • The value is taken from property array data.
  • The key is taken from $conf['fieldRequired'].
  • The value is casted to string by trim() and trimmed.
  • It is further casted to boolean by if().
  • False triggers a stop of further rendering.
  • False returns '', true the given content as is.
Test:
stdWrap_fieldRequiredDataProvider
Parameters
mixed$expectThe expected output.
bool$stopExpect stop further rendering.
mixed$contentThe given input.
array$confThe given configuration.
Returns
void

Definition at line 5384 of file Unit/ContentObject/ContentObjectRendererTest.php.

References ContentObjectRendererTest\$subject.

stdWrap_fieldRequiredDataProvider ( )

Data provider for stdWrap_fieldRequired.

Returns
array [$expect, $stop, $content, $conf]

Definition at line 5324 of file Unit/ContentObject/ContentObjectRendererTest.php.

References BaseTestCase\getUniqueId().

stdWrap_filelink ( )

Check if stdWrap_filelink works properly.

Show:

  • Delegates to method filelink.
  • Parameter 1 is $content.
  • Parameter 2 is $conf['filelink.'].
  • Returns the return value.
Test:
Returns
void

Definition at line 5420 of file Unit/ContentObject/ContentObjectRendererTest.php.

References ContentObjectRendererTest\$subject, and BaseTestCase\getUniqueId().

stdWrap_filelist ( )

Check if stdWrap_filelist works properly.

Show:

  • Delegates to method filelist.
  • Parameter is $conf['filelist'].
  • Returns the return value.
Test:
Returns
void

Definition at line 5447 of file Unit/ContentObject/ContentObjectRendererTest.php.

References ContentObjectRendererTest\$subject, and BaseTestCase\getUniqueId().

stdWrap_hash (   $expect,
  $content,
  $conf 
)

Check if stdWrap_hash works properly.

Show:

  • Algorithms: sha1, md5
  • Returns '' for invalid algorithm.
  • Value can be processed by stdWrap.
Test:
hashDataProvider
Parameters
string$expectThe expected output.
string$contentThe given content.
array$confThe given configuration.
Returns
void

Definition at line 5511 of file Unit/ContentObject/ContentObjectRendererTest.php.

stdWrap_HTMLparser (   $expect,
  $content,
  $conf,
  $times,
  $will 
)

Check if stdWrap_HTMLparser works properly

Show:

  • Checks if $conf['HTMLparser.'] is an array.
  • No:
    • Returns $content as is.
  • Yes:
    • Delegates to method HTMLparser_TSbridge.
    • Parameter 1 is $content.
    • Parameter 2 is $conf['HTMLparser'].
    • Returns the return value.
Test:
stdWrap_HTMLparserDataProvider
Parameters
string$expectThe expected output.
string$contentThe given content.
array$confThe given configuration.
int$timesTimes HTMLparser_TSbridge is called (0 or 1).
string$willReturn of HTMLparser_TSbridge.
Returns
void.

Definition at line 3876 of file Unit/ContentObject/ContentObjectRendererTest.php.

References ContentObjectRendererTest\$subject.

stdWrap_HTMLparserDataProvider ( )

Data provider for stdWrap_HTMLparser

Returns
array [$expect, $content, $conf, $times, $will].

Definition at line 3833 of file Unit/ContentObject/ContentObjectRendererTest.php.

References BaseTestCase\getUniqueId().

stdWrap_htmlSpecialChars (   $expected,
  $input,
  $conf 
)

Check if stdWrap_htmlSpecialChars works properly

Test:
stdWrap_htmlSpecialCharsDataProvider
Parameters
string$expectedThe expected value.
string$inputThe input value.
array$confhtmlSpecialChars.preserveEntities
Returns
void

Definition at line 5558 of file Unit/ContentObject/ContentObjectRendererTest.php.

stdWrap_htmlSpecialCharsDataProvider ( )

Data provider for stdWrap_htmlSpecialChars

Returns
array Order: expected, input, conf

Definition at line 5522 of file Unit/ContentObject/ContentObjectRendererTest.php.

stdWrap_if (   $expect,
  $stop,
  $content,
  $conf,
  $times,
  $will 
)

Check if stdWrap_if works properly.

Show:

  • Delegates to the method checkIf to check for 'true'.
  • The parameter to checkIf is $conf['if.'].
  • Is also 'true' if $conf['if.'] is empty (PHP method empty).
  • 'False' triggers a stop of further rendering.
  • Returns the content as is or '' if false.
Test:
stdWrap_ifDataProvider
Parameters
mixed$expectThe expected output.
bool$stopExpect stop further rendering.
mixed$contentThe given content.
mixed$configThe given configuration.
int$timesTimes checkIf is called (0 or 1).
bool | null$willReturn of checkIf (null if not called).
Returns
void

Definition at line 5624 of file Unit/ContentObject/ContentObjectRendererTest.php.

References ContentObjectRendererTest\$subject, and BaseTestCase\getAccessibleMock().

stdWrap_ifBlank (   $expect,
  $content,
  $conf 
)

Check that stdWrap_ifBlank works properly.

Show:

  • The content is returned if not blank.
  • Otherwise $conf['ifBlank'] is returned.
  • The check for blank is done by comparing the trimmed content with the empty string for equality.
Test:
stdWrap_ifBlankDataProvider
Parameters
mixed$expectedThe expected output.
mixed$contentThe given input.
array$confThe given configuration.
Returns
void

Definition at line 5680 of file Unit/ContentObject/ContentObjectRendererTest.php.

stdWrap_ifBlankDataProvider ( )

Data provider for stdWrap_ifBlank.

Returns
array [$expect, $content, $conf]

Definition at line 5644 of file Unit/ContentObject/ContentObjectRendererTest.php.

References BaseTestCase\getUniqueId().

stdWrap_ifDataProvider ( )

Data provider for stdWrap_if.

Returns
array [$expect, $stop, $content, $conf, $times, $will]

Definition at line 5569 of file Unit/ContentObject/ContentObjectRendererTest.php.

References BaseTestCase\getUniqueId().

stdWrap_ifEmpty (   $expect,
  $content,
  $conf 
)

Check that stdWrap_ifEmpty works properly.

Show:

  • Returns the content, if not empty.
  • Otherwise returns $conf['ifEmpty'].
  • Empty is checked by cast to boolean after trimming.
Test:
stdWrap_ifEmptyDataProvider
Parameters
mixed$expectThe expected output.
mixed$contentThe given content.
array$confThe given configuration.
Returns
void

Definition at line 5733 of file Unit/ContentObject/ContentObjectRendererTest.php.

stdWrap_ifEmptyDataProvider ( )

Data provider for stdWrap_ifEmpty.

Returns
array [$expect, $content, $conf]

Definition at line 5691 of file Unit/ContentObject/ContentObjectRendererTest.php.

References BaseTestCase\getUniqueId().

stdWrap_ifNull (   $expect,
  $content,
  $conf 
)

Check that stdWrap_ifNull works properly.

Show:

  • Returns the content, if not null.
  • Otherwise returns $conf['ifNull'].
  • Null is strictly checked by identiy with null.
Test:
stdWrap_ifNullDataProvider
Parameters
mixed$expectedThe expected output.
mixed$contentThe given input.
array$confThe given configuration.
Returns
void

Definition at line 5776 of file Unit/ContentObject/ContentObjectRendererTest.php.

stdWrap_ifNullDataProvider ( )

Data provider for stdWrap_ifNull.

Returns
array [$expect, $content, $conf]

Definition at line 5744 of file Unit/ContentObject/ContentObjectRendererTest.php.

References BaseTestCase\getUniqueId().

stdWrap_innerWrap (   $expected,
  $input,
  $conf 
)

Check if stdWrap_innerWrap works properly.

Parameters
string$expectedThe expected value.
string$inputThe input value.
array$confProperty: innerWrap
Returns
void
Test:
stdWrap_innerWrapDataProvider

Definition at line 5831 of file Unit/ContentObject/ContentObjectRendererTest.php.

stdWrap_innerWrap2 (   $expected,
  $input,
  $conf 
)

Check if stdWrap_innerWrap2 works properly.

Parameters
string$expectedThe expected value.
string$inputThe input value.
array$confProperty: innerWrap2
Returns
void
Test:
stdWrap_innerWrap2DataProvider

Definition at line 5886 of file Unit/ContentObject/ContentObjectRendererTest.php.

stdWrap_innerWrap2DataProvider ( )

Data provider for stdWrap_innerWrap2

Returns
array Order expected, input, conf

Definition at line 5842 of file Unit/ContentObject/ContentObjectRendererTest.php.

stdWrap_innerWrapDataProvider ( )

Data provider for stdWrap_innerWrap

Returns
array Order expected, input, conf

Definition at line 5787 of file Unit/ContentObject/ContentObjectRendererTest.php.

stdWrap_insertData ( )

Check if stdWrap_insertData works properly.

Show:

  • Delegates to method insertData.
  • Parameter 1 is $content.
  • Returns the return value.
Test:
Returns
void

Definition at line 5904 of file Unit/ContentObject/ContentObjectRendererTest.php.

References ContentObjectRendererTest\$subject, and BaseTestCase\getUniqueId().

stdWrap_intval (   $expect,
  $content 
)

Check that stdWrap_intval works properly.

Show:

  • It does not round up.
  • All types of input is casted to int:
    • null: 0
    • false: 0
    • true: 1
Test:
stdWrap_intvalDataProvider
Parameters
int$expectThe expected output.
string$contentThe given input.
Returns
void

Definition at line 5967 of file Unit/ContentObject/ContentObjectRendererTest.php.

stdWrap_intvalDataProvider ( )

Data provider for stdWrap_intval

Returns
array [$expect, $content]

Definition at line 5922 of file Unit/ContentObject/ContentObjectRendererTest.php.

stdWrap_keywords (   $expected,
  $input 
)

Check if stdWrap_keywords works properly.

Parameters
string$expectedThe expected value.
string$inputThe input value.
Returns
void
Test:
stdWrapKeywordsDataProvider

Definition at line 6026 of file Unit/ContentObject/ContentObjectRendererTest.php.

stdWrap_lang (   $expected,
  $input,
  $conf,
  $language 
)

Check if stdWrap_lang works properly.

Parameters
string$expectedThe expected value.
string$inputThe input value.
array$confProperties: lang.xy.
string$languageFor $TSFE->config[config][language].
Returns
void
Test:
stdWrap_langDataProvider

Definition at line 6103 of file Unit/ContentObject/ContentObjectRendererTest.php.

stdWrap_langDataProvider ( )

Data provider for stdWrap_lang

Returns
array Order expected, input, conf, language

Definition at line 6036 of file Unit/ContentObject/ContentObjectRendererTest.php.

stdWrap_listNum ( )

Check if stdWrap_listNum works properly.

Show:

  • Delegates to method listNum.
  • Parameter 1 is $content.
  • Parameter 2 is $conf['listNum'].
  • Parameter 3 is $conf['listNum.']['splitChar'].
  • Returns the return value.
Test:
Returns
void

Definition at line 6127 of file Unit/ContentObject/ContentObjectRendererTest.php.

References ContentObjectRendererTest\$subject, and BaseTestCase\getUniqueId().

stdWrap_noTrimWrap (   $expect,
  $content,
  $conf 
)

Check if stdWrap_noTrimWrap works properly.

Test:
stdWrap_noTrimWrapDataProvider
Parameters
string$expectThe expected output.
string$contentThe given input.
array$confThe given configuration.
Returns
void

Definition at line 6231 of file Unit/ContentObject/ContentObjectRendererTest.php.

stdWrap_noTrimWrapDataProvider ( )

Data provider for stdWrap_noTrimWrap.

Returns
array [$expect, $content, $conf]

Definition at line 6157 of file Unit/ContentObject/ContentObjectRendererTest.php.

stdWrap_numberFormat ( )

Check if stdWrap_numberFormat works properly.

Show:

  • Delegates to the method numberFormat.
  • Parameter 1 is $content.
  • Parameter 2 is $conf['numberFormat.'].
  • Returns the return value.
Test:
Returns
void

Definition at line 6276 of file Unit/ContentObject/ContentObjectRendererTest.php.

References ContentObjectRendererTest\$subject, and BaseTestCase\getUniqueId().

stdWrap_numRows ( )

Check if stdWrap_numRows works properly.

Show:

  • Delegates to method numRows.
  • Parameter is $conf['numRows.'].
  • Returns the return value.
Test:
Returns
void

Definition at line 6249 of file Unit/ContentObject/ContentObjectRendererTest.php.

References ContentObjectRendererTest\$subject, and BaseTestCase\getUniqueId().

stdWrap_orderedStdWrap (   $firstConf,
  $secondConf,
  $conf 
)

Check if stdWrap_orderedStdWrap works properly.

Show:

  • For each entry of $conf['orderedStdWrap.'] stdWrap is applied to $content.
  • The order is defined by the keys, after they have been casted to integers.
  • Returns the processed $content after all entries have been applied.

Each test calls stdWrap two times. First $content is processed to $between, second $between is processed to $expect, the final return value. It is checked, if the expected parameters are given in the right consecutive order to stdWrap.

Test:
stdWrap_orderedStdWrapDataProvider
Parameters
array$firstConfParameter 2 expected by first call to stdWrap.
array$secondConfParameter 2 expected by second call to stdWrap.
array$confThe given configuration.
Returns
void

Definition at line 4327 of file Unit/ContentObject/ContentObjectRendererTest.php.

References ContentObjectRendererTest\$subject, and BaseTestCase\getUniqueId().

stdWrap_orderedStdWrapDataProvider ( )

Data provider for stdWrap_orderedStdWrap.

Returns
array [$firstConf, $secondConf, $conf]

Definition at line 4281 of file Unit/ContentObject/ContentObjectRendererTest.php.

References BaseTestCase\getUniqueId().

stdWrap_outerWrap (   $expected,
  $input,
  $conf 
)

Check if stdWrap_outerWrap works properly.

Parameters
string$expectedThe expected value.
string$inputThe input value.
array$confProperty: outerWrap
Returns
void
Test:
stdWrap_outerWrapDataProvider

Definition at line 6344 of file Unit/ContentObject/ContentObjectRendererTest.php.

stdWrap_outerWrapDataProvider ( )

Data provider for stdWrap_outerWrap

Returns
array Order expected, input, conf

Definition at line 6300 of file Unit/ContentObject/ContentObjectRendererTest.php.

stdWrap_override (   $expect,
  $content,
  $conf 
)

Check if stdWrap_override works properly.

Test:
stdWrap_overrideDataProvider
Parameters
string$inputThe input value.
array$confProperty: setCurrent
Returns
void

Definition at line 6406 of file Unit/ContentObject/ContentObjectRendererTest.php.

stdWrap_overrideDataProvider ( )

Data provider for stdWrap_csConv

Returns
array Order expected, input, conf

Definition at line 6355 of file Unit/ContentObject/ContentObjectRendererTest.php.

stdWrap_parseFunc ( )

Check if stdWrap_parseFunc works properly.

Show:

  • Delegates to method parseFunc.
  • Parameter 1 is $content.
  • Parameter 2 is $conf['parseFunc.'].
  • Parameter 3 is $conf['parseFunc'].
  • Returns the return.
Test:
Returns
void

Definition at line 6426 of file Unit/ContentObject/ContentObjectRendererTest.php.

References ContentObjectRendererTest\$subject, and BaseTestCase\getUniqueId().

stdWrap_parseFuncReturnsParsedHtml (   $value,
  $configuration,
  $expectedResult 
)
Test:
_parseFuncReturnsCorrectHtmlDataProvider
Parameters
string$value
array$configuration
string$expectedResult

Definition at line 2617 of file Unit/ContentObject/ContentObjectRendererTest.php.

stdWrap_postCObject ( )

Check if stdWrap_postCObject works properly.

Show:

  • Delegates to the method cObjGetSingle().
  • Parameter 1 is $conf['postCObject'].
  • Parameter 2 is $conf['postCObject.'].
  • Parameter 3 is '/stdWrap/.postCObject'.
  • Returns the return value appended by $content.
Test:
Returns
void

Definition at line 6459 of file Unit/ContentObject/ContentObjectRendererTest.php.

References ContentObjectRendererTest\$subject, and BaseTestCase\getUniqueId().

stdWrap_postUserFunc ( )

Check that stdWrap_postUserFunc works properly.

Show:

  • Delegates to method callUserFunction.
  • Parameter 1 is $conf['postUserFunc'].
  • Parameter 2 is $conf['postUserFunc.'].
  • Returns the return value.
Test:
Returns
void.

Definition at line 6491 of file Unit/ContentObject/ContentObjectRendererTest.php.

References ContentObjectRendererTest\$subject, and BaseTestCase\getUniqueId().

stdWrap_postUserFuncInt ( )

Check if stdWrap_postUserFuncInt works properly.

Show:

  • Calls frontend controller method uniqueHash.
  • Concatenates "INT_SCRIPT." and the returned hash to $substKey.
  • Configures the frontend controller for 'INTincScript.$substKey'.
  • The configuration array contains:
    • content: $content
    • postUserFunc: $conf['postUserFuncInt']
    • conf: $conf['postUserFuncInt.']
    • type: 'POSTUSERFUNC'
    • cObj: serialized content renderer object
  • Returns "<!-- $substKey -->".
Test:
Returns
void

Definition at line 6529 of file Unit/ContentObject/ContentObjectRendererTest.php.

References ContentObjectRendererTest\$subject, BaseTestCase\getAccessibleMock(), and BaseTestCase\getUniqueId().

stdWrap_preCObject ( )

Check if stdWrap_preCObject works properly.

Show:

  • Delegates to the method cObjGetSingle().
  • Parameter 1 is $conf['preCObject'].
  • Parameter 2 is $conf['preCObject.'].
  • Parameter 3 is '/stdWrap/.preCObject'.
  • Returns the return value appended by $content.
Test:
Returns
void

Definition at line 6574 of file Unit/ContentObject/ContentObjectRendererTest.php.

References ContentObjectRendererTest\$subject, and BaseTestCase\getUniqueId().

stdWrap_prefixComment (   $expect,
  $content,
  $conf,
  $disable,
  $times,
  $will 
)

Check that stdWrap_prefixComment works properly.

Show:

  • Delegates to method prefixComment.
  • Parameter 1 is $conf['prefixComment'].
  • Parameter 2 is [].
  • Parameter 3 is $content.
  • Returns the return value.
  • Returns $content as is,
    • if $conf['prefixComment'] is empty.
    • if 'config.disablePrefixComment' is configured by the frontend.
Test:
stdWrap_prefixCommentDataProvider
Returns
void

Definition at line 6672 of file Unit/ContentObject/ContentObjectRendererTest.php.

References ContentObjectRendererTest\$subject.

stdWrap_prefixCommentDataProvider ( )

Data provider for stdWrap_prefixComment.

array [$expect, $content, $conf, $disable, $times, $will]

Definition at line 6638 of file Unit/ContentObject/ContentObjectRendererTest.php.

References BaseTestCase\getUniqueId().

stdWrap_preIfEmptyListNum ( )

Check if stdWrap_preIfEmptyListNum works properly.

Show:

  • Delegates to method listNum.
  • Parameter 1 is $content.
  • Parameter 2 is $conf['preIfEmptyListNum'].
  • Parameter 3 is $conf['preIfEmptyListNum.']['splitChar'].
  • Returns the return value.
Test:
Returns
void

Definition at line 6608 of file Unit/ContentObject/ContentObjectRendererTest.php.

References ContentObjectRendererTest\$subject, and BaseTestCase\getUniqueId().

stdWrap_prepend ( )

Check if stdWrap_prepend works properly.

Show:

  • Delegates to the method cObjGetSingle().
  • First parameter is $conf['prepend'].
  • Second parameter is $conf['prepend.'].
  • Third parameter is '/stdWrap/.prepend'.
  • Returns the return value prepended to $content.
Test:
Returns
void

Definition at line 6702 of file Unit/ContentObject/ContentObjectRendererTest.php.

References ContentObjectRendererTest\$subject, and BaseTestCase\getUniqueId().

stdWrap_preUserFunc ( )

Check if stdWrap_preUserFunc works properly.

Show:

  • Delegates to method callUserFunction.
  • Parameter 1 is $conf['preUserFunc'].
  • Parameter 2 is $conf['preUserFunc.'].
  • Parameter 3 is $content.
  • Returns the return value.
Test:
Returns
void

Definition at line 6779 of file Unit/ContentObject/ContentObjectRendererTest.php.

References ContentObjectRendererTest\$subject, and BaseTestCase\getUniqueId().

stdWrap_prioriCalc (   $expect,
  $content,
  $conf 
)

Check if stdWrap_prioriCalc works properly.

Show:

  • If $conf['prioriCalc'] is 'intval' the return is casted to int.
  • Delegates to MathUtility::calculateWithParentheses.

Note: As PHPUnit can't mock static methods, the call to MathUtility::calculateWithParentheses can't be easily intercepted. The test is done by testing input/output pairs instead. To not duplicate the testing of calculateWithParentheses just a few smoke tests are done here.

Test:
stdWrap_prioriCalcDataProvider
Parameters
mixed$expectThe expected output.
string$contentThe given content.
array$confThe given configuration.
Returns
void

Definition at line 6759 of file Unit/ContentObject/ContentObjectRendererTest.php.

stdWrap_prioriCalcDataProvider ( )

Data provider for stdWrap_prioriCalc

Returns
array [$expect, $content, $conf]

Definition at line 6727 of file Unit/ContentObject/ContentObjectRendererTest.php.

stdWrap_rawUrlEncode (   $expect,
  $content 
)

Check if rawUrlEncode works properly.

Test:
stdWrap_rawUrlEncodeDataProvider
Parameters
string$expectThe expected output.
string$contentThe given input.
Returns
void

Definition at line 6823 of file Unit/ContentObject/ContentObjectRendererTest.php.

stdWrap_rawUrlEncodeDataProvider ( )

Data provider for stdWrap_rawUrlEncode

Returns
array [$expect, $content].

Definition at line 6800 of file Unit/ContentObject/ContentObjectRendererTest.php.

stdWrap_replacement ( )

Check if stdWrap_replacement works properly.

Show:

  • Delegates to method replacement.
  • Parameter 1 is $content.
  • Parameter 2 is $conf['replacement.'].
  • Returns the return value.
Test:
Returns
void

Definition at line 6842 of file Unit/ContentObject/ContentObjectRendererTest.php.

References ContentObjectRendererTest\$subject, and BaseTestCase\getUniqueId().

stdWrap_required (   $expect,
  $stop,
  $content 
)

Check if stdWrap_required works properly.

Show:

  • Content is empty if it equals '' after cast to string.
  • Empty content triggers a stop of further rendering.
  • Returns the content as is or '' for empty content.
Test:
stdWrap_requiredDataProvider
Parameters
mixed$expectThe expected output.
bool$stopExpect stop further rendering.
mixed$contentThe given input.
Returns
void

Definition at line 6901 of file Unit/ContentObject/ContentObjectRendererTest.php.

References ContentObjectRendererTest\$subject.

stdWrap_requiredDataProvider ( )

Data provider for stdWrap_required.

Returns
array [$expect, $stop, $content]

Definition at line 6866 of file Unit/ContentObject/ContentObjectRendererTest.php.

stdWrap_round ( )

Check if stdWrap_round works properly

Show:

  • Delegates to method round.
  • Parameter 1 is $content.
  • Parameter 2 is $conf['round.'].
  • Returns the return value.
Test:
Returns
void

Definition at line 6923 of file Unit/ContentObject/ContentObjectRendererTest.php.

References ContentObjectRendererTest\$subject, and BaseTestCase\getUniqueId().

stdWrap_setContentToCurrent ( )

Check if stdWrap_setContentToCurrent works properly.

Test:
Returns
void

Definition at line 6947 of file Unit/ContentObject/ContentObjectRendererTest.php.

References BaseTestCase\getUniqueId().

stdWrap_setCurrent (   $input,
  $conf 
)

Check if stdWrap_setCurrent works properly.

Test:
stdWrap_setCurrentDataProvider
Parameters
string$inputThe input value.
array$confProperty: setCurrent
Returns
void

Definition at line 7004 of file Unit/ContentObject/ContentObjectRendererTest.php.

stdWrap_setCurrentDataProvider ( )

Data provider for stdWrap_setCurrent

Returns
array Order input, conf

Definition at line 6961 of file Unit/ContentObject/ContentObjectRendererTest.php.

stdWrap_space ( )

Check if stdWrap_space works properly.

Show:

  • Delegates to method wrapSpace.
  • Parameter 1 is $content.
  • Parameter 2 is $conf['space'],
  • trimmed.
  • Parameter 3 is $conf['space.'].
  • Returns the return value.
Test:
Returns
void.

Definition at line 7030 of file Unit/ContentObject/ContentObjectRendererTest.php.

References ContentObjectRendererTest\$subject, and BaseTestCase\getUniqueId().

stdWrap_spaceAfter ( )

Check if stdWrap_spaceAfter works properly.

Show:

  • Delegates to method wrapSpace.
  • Parameter 1 is $content.
  • Parameter 2 is $conf['spaceAfter'],
  • trimmed,
  • prepended with '|'.
  • Parameter 3 is $conf['space.'] !!!
  • Returns the return value.
Test:
Returns
void.

Definition at line 7065 of file Unit/ContentObject/ContentObjectRendererTest.php.

References ContentObjectRendererTest\$subject, and BaseTestCase\getUniqueId().

stdWrap_spaceBefore ( )

Check if stdWrap_spaceBefore works properly.

Show:

  • Delegates to method wrapSpace.
  • Parameter 1 is $content.
  • Parameter 2 is $conf['spaceBefore'],
  • trimmed,
  • appended with '|'.
  • Parameter 3 is $conf['space.'] !!!
  • Returns the return value.
Test:
Returns
void.

Definition at line 7101 of file Unit/ContentObject/ContentObjectRendererTest.php.

References ContentObjectRendererTest\$subject, and BaseTestCase\getUniqueId().

stdWrap_split ( )

Check if stdWrap_split works properly.

Show:

  • Delegates to method splitObj.
  • Parameter 1 is $content.
  • Prameter 2 is $conf['split.'].
  • Returns the return value.
Test:
Returns
void

Definition at line 7134 of file Unit/ContentObject/ContentObjectRendererTest.php.

References ContentObjectRendererTest\$subject, and BaseTestCase\getUniqueId().

stdWrap_splitObjReturnsCount ( )
stdWrap_stdWrap ( )

Check that stdWrap_stdWrap works properly.

Show:

  • Delegates to method stdWrap.
  • Parameter 1 is $content.
  • Parameter 2 is $conf['stdWrap.'].
  • Returns the return value.
Test:
Returns
void.

Definition at line 7165 of file Unit/ContentObject/ContentObjectRendererTest.php.

References ContentObjectRendererTest\$subject, and BaseTestCase\getUniqueId().

stdWrap_stdWrapValue (   $key,
array  $configuration,
  $defaultValue,
  $expected 
)
Parameters
string$key
array$configuration
string$defaultValue
string$expectedstdWrap_stdWrapValueDataProvider
Test:

Definition at line 7244 of file Unit/ContentObject/ContentObjectRendererTest.php.

stdWrap_stdWrapValueDataProvider ( )

Data provider for stdWrap_stdWrapValue test

Returns
array

Definition at line 7188 of file Unit/ContentObject/ContentObjectRendererTest.php.

stdWrap_strftime (   $expect,
  $content,
  $conf,
  $now 
)

Check if stdWrap_strftime works properly.

Test:
stdWrap_strftimeDataProvider
Parameters
string$expectThe expected output.
mixed$contentThe given input.
array$confThe given configuration.
int$nowFictive execution time.
Returns
void

Definition at line 7401 of file Unit/ContentObject/ContentObjectRendererTest.php.

References $GLOBALS.

stdWrap_strftimeDataProvider ( )

Data provider for stdWrap_strftime

Returns
array [$expect, $content, $conf, $now]

Definition at line 7364 of file Unit/ContentObject/ContentObjectRendererTest.php.

stdWrap_stripHtml ( )

Test for the stdWrap_stripHtml

Test:

Definition at line 7422 of file Unit/ContentObject/ContentObjectRendererTest.php.

stdWrap_strPad (   $expect,
  $content,
  $conf 
)

Check if stdWrap_strPad works properly.

Test:
stdWrap_strPadDataProvider
Parameters
string$expectThe expected output.
string$contentThe given input.
array$confThe configuration of 'strPad.'.
Returns
void

Definition at line 7352 of file Unit/ContentObject/ContentObjectRendererTest.php.

stdWrap_strPadDataProvider ( )

Data provider for stdWrap_strPad.

Returns
array [$expect, $content, $conf]

Definition at line 7255 of file Unit/ContentObject/ContentObjectRendererTest.php.

stdWrap_strtotime (   $expect,
  $content,
  $conf 
)

Check if stdWrap_strtotime works properly.

Test:
stdWrap_strtotimeDataProvider
Parameters
int$expectThe expected output.
mixed$contentThe given input.
array$confThe given configuration.
Returns
void

Definition at line 7474 of file Unit/ContentObject/ContentObjectRendererTest.php.

References $GLOBALS.

stdWrap_strtotimeDataProvider ( )

Data provider for the stdWrap_strtotime test

Returns
array [$expect, $content, $conf]

Definition at line 7434 of file Unit/ContentObject/ContentObjectRendererTest.php.

stdWrap_substring ( )

Check if stdWrap_substring works properly.

Show:

  • Delegates to method substring.
  • Parameter 1 is $content.
  • Parameter 2 is $conf['substring'].
  • Returns the return value.
Test:
Returns
void

Definition at line 7504 of file Unit/ContentObject/ContentObjectRendererTest.php.

References ContentObjectRendererTest\$subject, and BaseTestCase\getUniqueId().

stdWrap_TCAselectItem (   $expect,
  $content,
  $conf,
  $times,
  $will 
)

Check that stdWrap_TCAselectItem works properly.

Show:

  • Checks if $conf['TCAselectItem'] is an array.
  • If NO:
    • Returns $content as is.
  • If YES:
    • Delegates to method TCAlookup.
    • Parameter 1 is $content.
    • Parameter 2 is $conf['TCAselectItem.'].
    • Returns the return value.
Test:
stdWrap_TCAselectItemDataProvider
Parameters
mixed$expectThe expected output.
mixed$contentThe the given input.
mixed$confThe the given configuration.
int$timesTimes TCAlookup is called.
string$willReturn value of TCAlookup.
Returns
void.

Definition at line 3939 of file Unit/ContentObject/ContentObjectRendererTest.php.

References ContentObjectRendererTest\$subject.

stdWrap_TCAselectItemDataProvider ( )

Data provider ofr stdWrap_TCAselectItem.

Returns
array [$expect, $content, $conf, $times, $will]

Definition at line 3895 of file Unit/ContentObject/ContentObjectRendererTest.php.

References BaseTestCase\getUniqueId().

stdWrap_trim (   $expect,
  $content 
)

Check that stdWrap_trim works properly.

Show:

  • the given string is trimmed like PHP trim
  • non-strings are casted to strings:
    • null => 'null'
    • false => ''
    • true => '1'
    • 0 => '0'
    • -1 => '-1'
    • 1.0 => '1'
    • 1.1 => '1.1'
Test:
stdWrap_trimDataProvider
Parameters
string$expectedThe expected output.
mixed$contentThe given content.
Returns
void

Definition at line 7582 of file Unit/ContentObject/ContentObjectRendererTest.php.

stdWrap_trimDataProvider ( )

Data provider for stdWrap_trim.

Returns
array [$expect, $content]

Definition at line 7528 of file Unit/ContentObject/ContentObjectRendererTest.php.

stdWrap_typolink ( )

Check that stdWrap_typolink works properly.

Show:

  • Delegates to method typolink.
  • Parameter 1 is $content.
  • Parameter 2 is $conf['typolink.'].
  • Returns the return value.
Test:
Returns
void.

Definition at line 7600 of file Unit/ContentObject/ContentObjectRendererTest.php.

References ContentObjectRendererTest\$subject, and BaseTestCase\getUniqueId().

stdWrap_wrap (   $expected,
  $input,
  $conf 
)

Check if stdWrap_wrap works properly.

Parameters
string$expectedThe expected value.
string$inputThe input value.
array$confProperties: wrap, wrap.splitChar
Returns
void
Test:
stdWrap_wrapDataProvider

Definition at line 7677 of file Unit/ContentObject/ContentObjectRendererTest.php.

stdWrap_wrap2 (   $expected,
  $input,
  $conf 
)

Check if stdWrap_wrap2 works properly.

Parameters
string$expectedThe expected value.
string$inputThe input value.
array$confProperties: wrap2, wrap2.splitChar
Returns
void
Test:
stdWrap_wrap2DataProvider

Definition at line 7742 of file Unit/ContentObject/ContentObjectRendererTest.php.

stdWrap_wrap2DataProvider ( )

Data provider for stdWrap_wrap2

Returns
array Order expected, input, conf

Definition at line 7688 of file Unit/ContentObject/ContentObjectRendererTest.php.

stdWrap_wrap3 (   $expected,
  $input,
  $conf 
)

Check if stdWrap_wrap3 works properly.

Parameters
string$expectedThe expected value.
string$inputThe input value.
array$confProperties: wrap3, wrap3.splitChar
Returns
void
Test:
stdWrap_wrap3DataProvider

Definition at line 7806 of file Unit/ContentObject/ContentObjectRendererTest.php.

stdWrap_wrap3DataProvider ( )

Data provider for stdWrap_wrap3

Returns
array Order expected, input, conf

Definition at line 7752 of file Unit/ContentObject/ContentObjectRendererTest.php.

stdWrap_wrapAlign (   $expect,
  $content,
  $wrapAlignConf 
)

Check if stdWrap_wrapAlign works properly.

Show:

  • Wraps $content with div and style attribute.
  • The style attribute is taken from $conf['wrapAlign'].
  • Returns the content as is,
  • if $conf['wrapAlign'] evals to false after being trimmed.
Test:
stdWrap_wrapAlignDataProvider
Parameters
string$expectThe expected output.
string$contentThe given content.
mixed$wrapAlignConfThe given input.
Returns
void

Definition at line 7847 of file Unit/ContentObject/ContentObjectRendererTest.php.

stdWrap_wrapAlignDataProvider ( )

Data provider for stdWrap_wrapAlign.

Returns
array [$expect, $content, $conf]

Definition at line 7816 of file Unit/ContentObject/ContentObjectRendererTest.php.

References BaseTestCase\getUniqueId().

stdWrap_wrapDataProvider ( )

Data provider for stdWrap_wrap

Returns
array Order expected, input, conf

Definition at line 7623 of file Unit/ContentObject/ContentObjectRendererTest.php.

stdWrapBrDataProvider ( )

Data provider for stdWrap_br

Returns
string[][] Order expected, given, xhtmlDoctype

Definition at line 4091 of file Unit/ContentObject/ContentObjectRendererTest.php.

stdWrapBrTagDataProvider ( )

Data provider for stdWrap_brTag

Returns
array

Definition at line 4138 of file Unit/ContentObject/ContentObjectRendererTest.php.

stdWrapDoubleBrTagDataProvider ( )

Data provider for stdWrap_doubleBrTag

Returns
array Order expected, input, config

Definition at line 4965 of file Unit/ContentObject/ContentObjectRendererTest.php.

stdWrapKeywordsDataProvider ( )

Data provider for stdWrap_keywords

Returns
string[][] Order expected, input

Definition at line 5977 of file Unit/ContentObject/ContentObjectRendererTest.php.

stdWrapReturnsExpectation (   $content,
array  $configuration,
  $expectation 
)
Parameters
string$content
array$configuration
string$expectationstdWrapReturnsExpectationDataProvider
Test:

Definition at line 1082 of file Unit/ContentObject/ContentObjectRendererTest.php.

stdWrapReturnsExpectationDataProvider ( )
Returns
array

Definition at line 1060 of file Unit/ContentObject/ContentObjectRendererTest.php.

substituteMarkerArrayCachedReturnsExpectedContentDataProvider ( )
Returns
array

Definition at line 3119 of file Unit/ContentObject/ContentObjectRendererTest.php.

substring (   $expect,
  $content,
  $conf 
)

Check if substring works properly.

Test:
substringDataProvider
Parameters
string$expectThe expected output.
string$contentThe given input.
array$confThe given configutation.
Returns
void

Definition at line 1121 of file Unit/ContentObject/ContentObjectRendererTest.php.

substringDataProvider ( )

Data provider for substring

Returns
array [$expect, $content, $conf]

Definition at line 1092 of file Unit/ContentObject/ContentObjectRendererTest.php.

tearDown ( )
protected
typoLinkEncodesMailAddressForSpamProtection ( array  $settings,
  $linkText,
  $mailAddress,
  $expected 
)
Parameters
array$settings
string$linkText
string$mailAddress
string$expectedtypoLinkEncodesMailAddressForSpamProtectionDataProvider
Test:

Definition at line 2743 of file Unit/ContentObject/ContentObjectRendererTest.php.

References ContentObjectRendererTest\getFrontendController().

typoLinkEncodesMailAddressForSpamProtectionDataProvider ( )
Returns
array

Definition at line 2755 of file Unit/ContentObject/ContentObjectRendererTest.php.

typolinkReturnsCorrectLinksFiles (   $linkText,
  $configuration,
  $expectedResult 
)
Test:
Parameters
string$linkText
array$configuration
string$expectedResulttypolinkReturnsCorrectLinksFilesDataProvider

Definition at line 2905 of file Unit/ContentObject/ContentObjectRendererTest.php.

References $GLOBALS, and ContentObjectRendererTest\getLibParseFunc().

typolinkReturnsCorrectLinksFilesDataProvider ( )
Returns
array

Definition at line 2854 of file Unit/ContentObject/ContentObjectRendererTest.php.

typolinkReturnsCorrectLinksForEmailsAndUrls (   $linkText,
  $configuration,
  $expectedResult 
)
Test:
Parameters
string$linkText
array$configuration
string$expectedResulttypolinkReturnsCorrectLinksForEmailsAndUrlsDataProvider

Definition at line 2713 of file Unit/ContentObject/ContentObjectRendererTest.php.

References $GLOBALS, and ContentObjectRendererTest\getLibParseFunc().

typolinkReturnsCorrectLinksForEmailsAndUrlsDataProvider ( )
Returns
array

Definition at line 2625 of file Unit/ContentObject/ContentObjectRendererTest.php.

typolinkReturnsCorrectLinksForFilesWithAbsRefPrefix (   $linkText,
  $configuration,
  $absRefPrefix,
  $expectedResult 
)
Test:
Parameters
string$linkText
array$configuration
string$absRefPrefix
string$expectedResulttypolinkReturnsCorrectLinksForFilesWithAbsRefPrefixDataProvider

Definition at line 3055 of file Unit/ContentObject/ContentObjectRendererTest.php.

References $GLOBALS, and ContentObjectRendererTest\getLibParseFunc().

typolinkReturnsCorrectLinksForFilesWithAbsRefPrefixDataProvider ( )
Returns
array

Definition at line 2930 of file Unit/ContentObject/ContentObjectRendererTest.php.

Member Data Documentation

$contentObjectMap
protected
Initial value:
= [
'TEXT' => TextContentObject::class

Definition at line 86 of file Unit/ContentObject/ContentObjectRendererTest.php.

$frontendControllerMock = null
protected
$singletonInstances = []
protected
$subject = null
protected

Definition at line 69 of file Unit/ContentObject/ContentObjectRendererTest.php.

Referenced by ContentObjectRendererTest\allStdWrapProcessorsAreCallable(), ContentObjectRendererTest\calculateCacheKey(), ContentObjectRendererTest\getFromCache(), ContentObjectRendererTest\handleCharset(), ContentObjectRendererTest\HTMLcaseshift(), ContentObjectRendererTest\stdWrap_addParams(), ContentObjectRendererTest\stdWrap_age(), ContentObjectRendererTest\stdWrap_append(), ContentObjectRendererTest\stdWrap_cacheRead(), ContentObjectRendererTest\stdWrap_cacheStore(), ContentObjectRendererTest\stdWrap_case(), ContentObjectRendererTest\stdWrap_cObject(), ContentObjectRendererTest\stdWrap_crop(), ContentObjectRendererTest\stdWrap_cropHTML(), ContentObjectRendererTest\stdWrap_data(), ContentObjectRendererTest\stdWrap_dataWrap(), ContentObjectRendererTest\stdWrap_editIcons(), ContentObjectRendererTest\stdWrap_editPanel(), ContentObjectRendererTest\stdWrap_encapsLines(), ContentObjectRendererTest\stdWrap_field(), ContentObjectRendererTest\stdWrap_fieldRequired(), ContentObjectRendererTest\stdWrap_filelink(), ContentObjectRendererTest\stdWrap_filelist(), ContentObjectRendererTest\stdWrap_HTMLparser(), ContentObjectRendererTest\stdWrap_if(), ContentObjectRendererTest\stdWrap_insertData(), ContentObjectRendererTest\stdWrap_listNum(), ContentObjectRendererTest\stdWrap_numberFormat(), ContentObjectRendererTest\stdWrap_numRows(), ContentObjectRendererTest\stdWrap_orderedStdWrap(), ContentObjectRendererTest\stdWrap_parseFunc(), ContentObjectRendererTest\stdWrap_postCObject(), ContentObjectRendererTest\stdWrap_postUserFunc(), ContentObjectRendererTest\stdWrap_postUserFuncInt(), ContentObjectRendererTest\stdWrap_preCObject(), ContentObjectRendererTest\stdWrap_prefixComment(), ContentObjectRendererTest\stdWrap_preIfEmptyListNum(), ContentObjectRendererTest\stdWrap_prepend(), ContentObjectRendererTest\stdWrap_preUserFunc(), ContentObjectRendererTest\stdWrap_replacement(), ContentObjectRendererTest\stdWrap_required(), ContentObjectRendererTest\stdWrap_round(), ContentObjectRendererTest\stdWrap_space(), ContentObjectRendererTest\stdWrap_spaceAfter(), ContentObjectRendererTest\stdWrap_spaceBefore(), ContentObjectRendererTest\stdWrap_split(), ContentObjectRendererTest\stdWrap_stdWrap(), ContentObjectRendererTest\stdWrap_substring(), ContentObjectRendererTest\stdWrap_TCAselectItem(), and ContentObjectRendererTest\stdWrap_typolink().

$templateServiceMock = null
protected