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

Public Member Functions

 willReturnNullForUnregisteredObject ()
 
 cropIsMultibyteSafe ()
 
 cropHTML (string $expect, string $content, string $conf)
 
 round (float $expect, mixed $content, array $conf)
 
 recursiveStdWrapProperlyRendersBasicString ()
 
 recursiveStdWrapIsOnlyCalledOnce ()
 
 numberFormat (string $expects, mixed $content, array $conf)
 
 replacement (string $expects, string $content, array $conf)
 
 calcAge (string $expect, int $timestamp, string $labels)
 
 stdWrapReturnsExpectation (string $content, array $configuration, string $expectation)
 
 stdWrapDoesOnlyCallIfEmptyIfTheTrimmedContentIsEmptyOrZero (string $content, bool $ifEmptyShouldBeCalled)
 
 substring (string $expect, string $content, string $conf)
 
 getDataWithTypeGp (string $key, string $expectedValue)
 
 getDataWithTypeGetenv ()
 
 getDataWithTypeGetindpenv ()
 
 getDataWithTypeField ()
 
 getDataWithTypeFieldAndFieldIsMultiDimensional ()
 
 getDataWithTypeFileReturnsUidOfFileObject (string $typoScriptPath)
 
 getDataWithTypeParameters ()
 
 getDataWithTypeRegister ()
 
 getDataWithTypeSession ()
 
 getDataWithTypeLevel ()
 
 getDataWithTypeLeveltitle ()
 
 getDataWithTypeLevelmedia ()
 
 getDataWithTypeLeveluid ()
 
 getDataWithTypeLevelfield ()
 
 getDataWithTypeFullrootline ()
 
 getDataWithTypeDate ()
 
 getDataWithTypePage ()
 
 getDataWithTypeCurrent ()
 
 getDataWithTypeDbReturnsCorrectTitle ()
 
 getDataWithTypeDbReturnsEmptyStringOnInvalidIdentifiers (string $identifier, InvocationOrder $expectsMethodCall)
 
 getDataWithTypeLll ()
 
 getDataWithTypePath ()
 
 getDataWithTypeContext ()
 
 getDataWithTypeSite ()
 
 getDataWithTypeSiteWithBaseVariants ()
 
 getDataWithTypeSiteLanguage ()
 
 getDataWithTypeParentRecordNumber ()
 
 getDataWithTypeDebugRootline ()
 
 getDataWithTypeDebugFullRootline ()
 
 getDataWithTypeDebugData ()
 
 getDataWithTypeDebugRegister ()
 
 getDataWithTypeDebugPage ()
 
 getDataWithApplicationContext ()
 
 renderingContentObjectThrowsException ()
 
 exceptionHandlerIsEnabledByDefaultInProductionContext ()
 
 renderingContentObjectDoesNotThrowExceptionIfExceptionHandlerIsConfiguredLocally ()
 
 renderingContentObjectDoesNotThrowExceptionIfExceptionHandlerIsConfiguredGlobally ()
 
 globalExceptionHandlerConfigurationCanBeOverriddenByLocalConfiguration ()
 
 renderedErrorMessageCanBeCustomized ()
 
 localConfigurationOverridesGlobalConfiguration ()
 
 specificExceptionsCanBeIgnoredByExceptionHandler ()
 
 stdWrap_parseFuncReturnsParsedHtml (string $value, array $configuration, string $expectedResult, LinkResultInterface|false $linkResult)
 
 parseFuncParsesNestedTagsProperly (string $value, array $configuration, string $expectedResult)
 
 httpMakelinksReturnsLink (string $data, array $configuration, string $expectedResult, LinkResult $linkResult)
 
 httpMakelinksReturnsNoLink (string $data, array $configuration, string $expectedResult)
 
 mailtoMakelinksReturnsMailToLink (string $data, array $configuration, string $expectedResult, LinkResult $linkResult)
 
 mailtoMakelinksReturnsNoMailToLink ()
 
 stdWrap_splitObjReturnsCount ()
 
 calculateCacheKey (string $expect, array $conf, int $times, ?string $with, ?array $withWrap, ?string $will)
 
 getFromCache (string|bool $expect, array $conf, string $cacheKey, int $times, ?string $cached)
 
 getFieldVal (mixed $expect, string $fields)
 
 caseshift (string $expected, string $content, string $case)
 
 HTMLcaseshift (string $content, string $expected)
 
 stdWrap_HTMLparser (string $expect, string $content, array $conf, int $times, string $will)
 
 stdWrap_addPageCacheTagsAddsPageTags (array $expectedTags, array $configuration)
 
 stdWrap_age ()
 
 stdWrap_append ()
 
 stdWrap_br (string $expected, string $input, ?string $doctype)
 
 stdWrap_brTag (string $input, string $expected, array $config)
 
 stdWrap_bytes (string $expect, string $content, array $conf)
 
 stdWrap_cObject ()
 
 stdWrap_orderedStdWrap (array $config, string $expected)
 
 stdWrap_cacheRead (string $expect, string $input, array $conf, int $times, ?array $with, string|bool|null $will)
 
 stdWrap_cacheStore (?array $confCache, int $times, mixed $key,)
 
 beforeStdWrapContentStoredInCacheEventIsCalled ()
 
 stdWrap_case ()
 
 stdWrap_char ()
 
 stdWrap_crop ()
 
 stdWrap_cropHTML ()
 
 stdWrap_formattedDate (string $expected, mixed $pattern, string $locale=null, string $givenDate=null)
 
 stdWrap_csConv (string $expected, string $input, array $conf)
 
 stdWrap_current ()
 
 stdWrap_data (array $expect, array $data)
 
 stdWrap_dataWrap ()
 
 stdWrap_date (string $expected, mixed $content, array $conf, int $now)
 
 stdWrap_debug ()
 
 stdWrap_debugData ()
 
 stdWrap_debugFunc (bool $expectArray, mixed $confDebugFunc)
 
 stdWrap_doubleBrTag (string $expected, string $input, array $config)
 
 stdWrap_encapsLines ()
 
 stdWrap_encapsLines_HTML5SelfClosingTags (string $input, string $expected)
 
 stdWrap_encodeForJavaScriptValue (string $expect, string $content)
 
 stdWrap_expandList (string $expected, string $content)
 
 stdWrap_field ()
 
 stdWrap_fieldRequired (string $expect, bool $stop, string $content, array $conf)
 
 stdWrap_hash (string $expect, string $content, array $conf)
 
 stdWrap_htmlSpecialChars (string $expected, string $input, array $conf)
 
 stdWrap_if (string $expect, bool $stop, string $content, array $conf, int $times, bool $will)
 
 checkIf (bool $expect, array $conf)
 
 stdWrap_ifBlank (mixed $expect, mixed $content, array $conf)
 
 stdWrap_ifEmpty (mixed $expect, mixed $content, array $conf)
 
 stdWrap_ifNull (mixed $expect, mixed $content, array $conf)
 
 stdWrap_innerWrap (string $expected, string $input, array $conf)
 
 stdWrap_innerWrap2 (string $expected, string $input, array $conf)
 
 stdWrap_insertData ()
 
 stdWrap_insertDataAndInputExamples (mixed $expect, string $content)
 
 stdWrap_intval (int $expect, mixed $content)
 
 stdWrap_keywords (string $expected, string $input)
 
 stdWrap_langViaSiteLanguage (string $expected, string $input, array $conf, string $language)
 
 stdWrap_listNum ()
 
 stdWrap_noTrimWrap (string $expect, string $content, array $conf)
 
 stdWrap_numRows ()
 
 stdWrap_numberFormat ()
 
 stdWrap_outerWrap (string $expected, string $input, array $conf)
 
 stdWrap_override (mixed $expect, string $content, array $conf)
 
 stdWrap_parseFunc ()
 
 stdWrap_postCObject ()
 
 stdWrap_postUserFunc ()
 
 stdWrap_postUserFuncInt ()
 
 stdWrap_preCObject ()
 
 stdWrap_preIfEmptyListNum ()
 
 stdWrap_prefixComment (string $expect, string $content, array $conf, int|bool $disable, int $times, string $will)
 
 stdWrap_prepend ()
 
 stdWrap_prioriCalc (mixed $expect, string $content, array $conf)
 
 stdWrap_preUserFunc ()
 
 stdWrap_rawUrlEncode (string $expect, string $content)
 
 stdWrap_replacement ()
 
 stdWrap_required (mixed $expect, bool $stop, mixed $content)
 
 stdWrap_round ()
 
 stdWrap_setContentToCurrent ()
 
 stdWrap_setCurrent (string $input, array $conf)
 
 stdWrap_split ()
 
 stdWrap_stdWrap ()
 
 stdWrap_stdWrapValue (string $key, array $configuration, ?string $defaultValue, ?string $expected)
 
 stdWrap_strPad (string $expect, string $content, array $conf)
 
 stdWrap_strftime (string $expect, mixed $content, array $conf, int $now)
 
 stdWrap_stripHtml ()
 
 stdWrap_strtotime (mixed $expect, string $content, array $conf)
 
 stdWrap_substring ()
 
 stdWrap_trim (string $expect, mixed $content)
 
 stdWrap_typolink ()
 
 stdWrap_wrap (string $expected, string $input, array $conf)
 
 stdWrap_wrap2 (string $expected, string $input, array $conf)
 
 stdWrap_wrap3 (string $expected, string $input, array $conf)
 
 stdWrap_wrapAlign (string $expect, string $content, mixed $wrapAlignConf)
 
 getCurrentTable ()
 
 prefixComment (string $expect, string $comment, string $content)
 
 setCurrentFile_getCurrentFile ()
 
 setCurrentVal_getCurrentVal ()
 
 setUserObjectType_getUserObjectType ()
 
 getGlobalReturnsExpectedResult (mixed $expected, string $key, ?array $globals, ?array $source)
 
 mergeTSRefResolvesRecursive ()
 
 listNum (string $expected, string $content, string $listNum, string $delimeter)
 
 listNumWithListNumRandReturnsString ()
 

Static Public Member Functions

static array cropHTMLDataProvider ()
 
static array roundDataProvider ()
 
static array numberFormatDataProvider ()
 
static array replacementDataProvider ()
 
static array calcAgeDataProvider ()
 
static stdWrapReturnsExpectationDataProvider ()
 
static stdWrapDoesOnlyCallIfEmptyIfTheTrimmedContentIsEmptyOrZeroDataProvider ()
 
static array substringDataProvider ()
 
static getDataWithTypeGpDataProvider ()
 
static getDataWithTypeFileReturnsUidOfFileObjectDataProvider ()
 
static getDataWithTypeDbDataProvider ()
 
static _parseFuncReturnsCorrectHtmlDataProvider ()
 
static array _parseFuncParsesNestedTagsProperlyDataProvider ()
 
static httpMakelinksDataProvider ()
 
static invalidHttpMakelinksDataProvider ()
 
static mailtoMakelinksDataProvider ()
 
static array calculateCacheKeyDataProvider ()
 
static array getFromCacheDataProvider ()
 
static array getFieldValDataProvider ()
 
static caseshiftDataProvider ()
 
static HTMLcaseshiftDataProvider ()
 
static array stdWrap_HTMLparserDataProvider ()
 
static stdWrap_addPageCacheTagsAddsPageTagsDataProvider ()
 
static string[][] stdWrapBrDataProvider ()
 
static stdWrapBrTagDataProvider ()
 
static array stdWrap_bytesDataProvider ()
 
static stdWrap_orderedStdWrapDataProvider ()
 
static array stdWrap_cacheReadDataProvider ()
 
static array stdWrap_cacheStoreDataProvider ()
 
static stdWrap_formattedDateProvider ()
 
static array stdWrap_csConvDataProvider ()
 
static array stdWrap_dataDataProvider ()
 
static array stdWrap_dateDataProvider ()
 
static array stdWrap_debugFuncDataProvider ()
 
static array stdWrapDoubleBrTagDataProvider ()
 
static html5SelfClosingTagsDataprovider ()
 
static array[] stdWrap_encodeForJavaScriptValueDataProvider ()
 
static array stdWrap_expandListDataProvider ()
 
static array stdWrap_fieldRequiredDataProvider ()
 
static array hashDataProvider ()
 
static array stdWrap_htmlSpecialCharsDataProvider ()
 
static array stdWrap_ifDataProvider ()
 
static array checkIfDataProvider ()
 
static array stdWrap_ifBlankDataProvider ()
 
static array stdWrap_ifEmptyDataProvider ()
 
static array stdWrap_ifNullDataProvider ()
 
static array stdWrap_innerWrapDataProvider ()
 
static array stdWrap_innerWrap2DataProvider ()
 
static array stdWrap_insertDataProvider ()
 
static array stdWrap_intvalDataProvider ()
 
static string[][] stdWrapKeywordsDataProvider ()
 
static array stdWrap_langDataProvider ()
 
static array stdWrap_noTrimWrapDataProvider ()
 
static array stdWrap_outerWrapDataProvider ()
 
static array stdWrap_overrideDataProvider ()
 
static array stdWrap_prefixCommentDataProvider ()
 
static array stdWrap_prioriCalcDataProvider ()
 
static array stdWrap_rawUrlEncodeDataProvider ()
 
static array stdWrap_requiredDataProvider ()
 
static array stdWrap_setCurrentDataProvider ()
 
static stdWrap_stdWrapValueDataProvider ()
 
static array stdWrap_strPadDataProvider ()
 
static array stdWrap_strftimeDataProvider ()
 
static array stdWrap_strtotimeDataProvider ()
 
static array stdWrap_trimDataProvider ()
 
static array stdWrap_wrapDataProvider ()
 
static array stdWrap_wrap2DataProvider ()
 
static array stdWrap_wrap3DataProvider ()
 
static array stdWrap_wrapAlignDataProvider ()
 
static array prefixCommentDataProvider ()
 
static getGlobalDataProvider ()
 
static listNumDataProvider ()
 

Protected Member Functions

 setUp ()
 

Protected Attributes

bool $resetSingletonInstances = true
 
bool $backupEnvironment = true
 

Private Member Functions

 handleCharset (string &$subject, string &$expected)
 
 createSiteWithLanguage (array $languageConfiguration)
 
 createContentObjectThrowingExceptionFixture (ContentObjectRenderer $subject, bool $addProductionExceptionHandlerInstance=true)
 

Static Private Member Functions

static getLibParseFunc_RTE ()
 

Private Attributes

ContentObjectRenderer &MockObject &AccessibleObjectInterface $subject
 
TypoScriptFrontendController &MockObject &AccessibleObjectInterface $frontendControllerMock
 
CacheManager &MockObject $cacheManagerMock
 
array $contentObjectMap
 

Detailed Description

Definition at line 103 of file ContentObjectRendererTest.php.

Member Function Documentation

◆ _parseFuncParsesNestedTagsProperlyDataProvider()

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

Data provider for the parseFuncParsesNestedTagsProperly test

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

Definition at line 2109 of file ContentObjectRendererTest.php.

◆ _parseFuncReturnsCorrectHtmlDataProvider()

static TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::_parseFuncReturnsCorrectHtmlDataProvider ( )
static

◆ beforeStdWrapContentStoredInCacheEventIsCalled()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::beforeStdWrapContentStoredInCacheEventIsCalled ( )

Make sure the PSR-14 Event in get stdWrap_cacheStore is called

Additionally, following is ensured:

  • ‪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 frontend with $key, $content, $tags, $lifetime.

Definition at line 3608 of file ContentObjectRendererTest.php.

References TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest\$subject, TYPO3\CMS\Core\Utility\StringUtility\getUniqueId(), TYPO3\CMS\Frontend\ContentObject\Event\BeforeStdWrapContentStoredInCacheEvent\setContent(), and TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer\stdWrap_cacheStore().

◆ calcAge()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::calcAge ( string  $expect,
int  $timestamp,
string  $labels 
)

Check if calcAge works properly.

Definition at line 1033 of file ContentObjectRendererTest.php.

◆ calcAgeDataProvider()

static array TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::calcAgeDataProvider ( )
static

Data provider for calcAge.

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

Definition at line 977 of file ContentObjectRendererTest.php.

◆ calculateCacheKey()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::calculateCacheKey ( string  $expect,
array  $conf,
int  $times,
?string  $with,
?array  $withWrap,
?string  $will 
)

Check if calculateCacheKey works properly.

  • ‪takes key from $conf['key']
  • ‪processes key with stdWrap based on $conf['key.']
Parameters
string$expect‪Expected result.
array$conf‪Properties 'key', 'key.'
int$times‪Times called mocked method.
string | null$with‪Parameter passed to mocked method.
array | null$withWrap
string | null$will‪Return value of mocked method.

Definition at line 2712 of file ContentObjectRendererTest.php.

References TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest\$subject.

◆ calculateCacheKeyDataProvider()

static array TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::calculateCacheKeyDataProvider ( )
static

Check if calculateCacheKey works properly.

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

Definition at line 2652 of file ContentObjectRendererTest.php.

References TYPO3\CMS\Core\Utility\StringUtility\getUniqueId().

◆ caseshift()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::caseshift ( string  $expected,
string  $content,
string  $case 
)

Definition at line 2948 of file ContentObjectRendererTest.php.

◆ caseshiftDataProvider()

static TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::caseshiftDataProvider ( )
static

Definition at line 2905 of file ContentObjectRendererTest.php.

◆ checkIf()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::checkIf ( bool  $expect,
array  $conf 
)

Check if checkIf works properly.

Parameters
bool$expect‪Whether result should be true or false.
array$conf‪TypoScript configuration to pass into checkIf

Definition at line 4913 of file ContentObjectRendererTest.php.

References TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest\$subject, and TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer\checkIf().

◆ checkIfDataProvider()

static array TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::checkIfDataProvider ( )
static

Data provider for checkIf.

Returns
‪array [$expect, $conf]

Definition at line 4881 of file ContentObjectRendererTest.php.

◆ createContentObjectThrowingExceptionFixture()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::createContentObjectThrowingExceptionFixture ( ContentObjectRenderer  $subject,
bool  $addProductionExceptionHandlerInstance = true 
)
private

◆ createSiteWithLanguage()

◆ cropHTML()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::cropHTML ( string  $expect,
string  $content,
string  $conf 
)

Check if cropHTML works properly.

Parameters
string$expect‪The expected cropped output.
string$content‪The given input.
string$conf‪The given configuration.

Tests are kept due ensure parameter splitting works, also they are mostly duplicates of directly implemented HtmlCropper and TextCropper tests.

See also
‪\TYPO3\CMS\Core\Tests\Unit\Html\HtmlCropperTest
‪\TYPO3\CMS\Core\Tests\Unit\Text\TextCropperTest

Definition at line 715 of file ContentObjectRendererTest.php.

References TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest\handleCharset().

◆ cropHTMLDataProvider()

static array TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::cropHTMLDataProvider ( )
static

Data provider for cropHTML.

Provides combinations of text type and configuration.

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

Definition at line 408 of file ContentObjectRendererTest.php.

◆ cropIsMultibyteSafe()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::cropIsMultibyteSafe ( )
See also
‪\TYPO3\CMS\Core\Tests\Unit\Html\HtmlCropperTest
‪\TYPO3\CMS\Core\Tests\Unit\Text\TextCropperTest

Definition at line 393 of file ContentObjectRendererTest.php.

◆ exceptionHandlerIsEnabledByDefaultInProductionContext()

◆ getCurrentTable()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::getCurrentTable ( )

Check if getCurrentTable works properly.

Definition at line 7148 of file ContentObjectRendererTest.php.

◆ getDataWithApplicationContext()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::getDataWithApplicationContext ( )

◆ getDataWithTypeContext()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::getDataWithTypeContext ( )

Checks if getData() works with type "context"

Definition at line 1611 of file ContentObjectRendererTest.php.

◆ getDataWithTypeCurrent()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::getDataWithTypeCurrent ( )

Checks if getData() works with type "current"

Definition at line 1485 of file ContentObjectRendererTest.php.

References TYPO3\CMS\Core\Utility\StringUtility\getUniqueId().

◆ getDataWithTypeDate()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::getDataWithTypeDate ( )

Checks if getData() works with type "date"

Definition at line 1453 of file ContentObjectRendererTest.php.

References $GLOBALS.

◆ getDataWithTypeDbDataProvider()

static TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::getDataWithTypeDbDataProvider ( )
static

Definition at line 1514 of file ContentObjectRendererTest.php.

◆ getDataWithTypeDbReturnsCorrectTitle()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::getDataWithTypeDbReturnsCorrectTitle ( )

Definition at line 1500 of file ContentObjectRendererTest.php.

◆ getDataWithTypeDbReturnsEmptyStringOnInvalidIdentifiers()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::getDataWithTypeDbReturnsEmptyStringOnInvalidIdentifiers ( string  $identifier,
InvocationOrder  $expectsMethodCall 
)

Checks if getData() works with type "db"

Definition at line 1553 of file ContentObjectRendererTest.php.

References TYPO3\CMS\Webhooks\Message\$identifier.

◆ getDataWithTypeDebugData()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::getDataWithTypeDebugData ( )

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

Definition at line 1792 of file ContentObjectRendererTest.php.

References TYPO3\CMS\Core\Utility\StringUtility\getUniqueId(), and TYPO3\CMS\Core\Utility\DebugUtility\useAnsiColor().

◆ getDataWithTypeDebugFullRootline()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::getDataWithTypeDebugFullRootline ( )

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

Definition at line 1765 of file ContentObjectRendererTest.php.

References TYPO3\CMS\Core\Utility\DebugUtility\useAnsiColor().

◆ getDataWithTypeDebugPage()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::getDataWithTypeDebugPage ( )

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

Definition at line 1843 of file ContentObjectRendererTest.php.

References TYPO3\CMS\Webhooks\Message\$uid, and TYPO3\CMS\Core\Utility\DebugUtility\useAnsiColor().

◆ getDataWithTypeDebugRegister()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::getDataWithTypeDebugRegister ( )

◆ getDataWithTypeDebugRootline()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::getDataWithTypeDebugRootline ( )

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

Definition at line 1741 of file ContentObjectRendererTest.php.

References TYPO3\CMS\Core\Utility\DebugUtility\useAnsiColor().

◆ getDataWithTypeField()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::getDataWithTypeField ( )

Checks if getData() works with type "field"

Definition at line 1212 of file ContentObjectRendererTest.php.

◆ getDataWithTypeFieldAndFieldIsMultiDimensional()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::getDataWithTypeFieldAndFieldIsMultiDimensional ( )

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

Definition at line 1225 of file ContentObjectRendererTest.php.

◆ getDataWithTypeFileReturnsUidOfFileObject()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::getDataWithTypeFileReturnsUidOfFileObject ( string  $typoScriptPath)

Basic check if getData gets the uid of a file object

Definition at line 1254 of file ContentObjectRendererTest.php.

References TYPO3\CMS\Webhooks\Message\$uid, and TYPO3\CMS\Core\Utility\StringUtility\getUniqueId().

◆ getDataWithTypeFileReturnsUidOfFileObjectDataProvider()

static TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::getDataWithTypeFileReturnsUidOfFileObjectDataProvider ( )
static

Definition at line 1234 of file ContentObjectRendererTest.php.

◆ getDataWithTypeFullrootline()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::getDataWithTypeFullrootline ( )

Checks if getData() works with type "fullrootline"

Definition at line 1431 of file ContentObjectRendererTest.php.

◆ getDataWithTypeGetenv()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::getDataWithTypeGetenv ( )

Checks if getData() works with type "getenv"

Definition at line 1179 of file ContentObjectRendererTest.php.

References TYPO3\CMS\Core\Utility\StringUtility\getUniqueId().

◆ getDataWithTypeGetindpenv()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::getDataWithTypeGetindpenv ( )

Checks if getData() works with type "getindpenv"

Definition at line 1196 of file ContentObjectRendererTest.php.

◆ getDataWithTypeGp()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::getDataWithTypeGp ( string  $key,
string  $expectedValue 
)

Checks if getData() works with type "gp"

Definition at line 1156 of file ContentObjectRendererTest.php.

◆ getDataWithTypeGpDataProvider()

static TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::getDataWithTypeGpDataProvider ( )
static

Definition at line 1142 of file ContentObjectRendererTest.php.

◆ getDataWithTypeLevel()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::getDataWithTypeLevel ( )

Checks if getData() works with type "level"

Definition at line 1329 of file ContentObjectRendererTest.php.

◆ getDataWithTypeLevelfield()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::getDataWithTypeLevelfield ( )

Checks if getData() works with type "levelfield"

Definition at line 1411 of file ContentObjectRendererTest.php.

◆ getDataWithTypeLevelmedia()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::getDataWithTypeLevelmedia ( )

Checks if getData() works with type "levelmedia"

Definition at line 1369 of file ContentObjectRendererTest.php.

◆ getDataWithTypeLeveltitle()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::getDataWithTypeLeveltitle ( )

Checks if getData() works with type "leveltitle"

Definition at line 1348 of file ContentObjectRendererTest.php.

◆ getDataWithTypeLeveluid()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::getDataWithTypeLeveluid ( )

Checks if getData() works with type "leveluid"

Definition at line 1390 of file ContentObjectRendererTest.php.

◆ getDataWithTypeLll()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::getDataWithTypeLll ( )

Checks if getData() works with type "lll"

Definition at line 1573 of file ContentObjectRendererTest.php.

References TYPO3\CMS\Core\Utility\StringUtility\getUniqueId().

◆ getDataWithTypePage()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::getDataWithTypePage ( )

Checks if getData() works with type "page"

Definition at line 1470 of file ContentObjectRendererTest.php.

References TYPO3\CMS\Webhooks\Message\$uid.

◆ getDataWithTypeParameters()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::getDataWithTypeParameters ( )

Checks if getData() works with type "parameters"

Definition at line 1272 of file ContentObjectRendererTest.php.

References TYPO3\CMS\Core\Utility\StringUtility\getUniqueId().

◆ getDataWithTypeParentRecordNumber()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::getDataWithTypeParentRecordNumber ( )

Checks if getData() works with type "parentRecordNumber"

Definition at line 1724 of file ContentObjectRendererTest.php.

◆ getDataWithTypePath()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::getDataWithTypePath ( )

Checks if getData() works with type "path"

Definition at line 1596 of file ContentObjectRendererTest.php.

◆ getDataWithTypeRegister()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::getDataWithTypeRegister ( )

◆ getDataWithTypeSession()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::getDataWithTypeSession ( )

Checks if getData() works with type "session"

Definition at line 1307 of file ContentObjectRendererTest.php.

◆ getDataWithTypeSite()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::getDataWithTypeSite ( )

Checks if getData() works with type "site"

Definition at line 1632 of file ContentObjectRendererTest.php.

◆ getDataWithTypeSiteLanguage()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::getDataWithTypeSiteLanguage ( )

Checks if getData() works with type "siteLanguage"

Definition at line 1697 of file ContentObjectRendererTest.php.

References TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest\createSiteWithLanguage().

◆ getDataWithTypeSiteWithBaseVariants()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::getDataWithTypeSiteWithBaseVariants ( )

Checks if getData() works with type "site" and base variants

Definition at line 1656 of file ContentObjectRendererTest.php.

◆ getFieldVal()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::getFieldVal ( mixed  $expect,
string  $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'
Parameters
mixed$expect‪The expected string.
string$fields‪Field names divides by //.

Definition at line 2888 of file ContentObjectRendererTest.php.

References $fields.

◆ getFieldValDataProvider()

static array TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::getFieldValDataProvider ( )
static

Data provider for getFieldVal

Returns
‪array [$expect, $fields]

Definition at line 2819 of file ContentObjectRendererTest.php.

◆ getFromCache()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::getFromCache ( string|bool  $expect,
array  $conf,
string  $cacheKey,
int  $times,
?string  $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.
Parameters
string | bool$expect‪Expected result.
array$conf‪Configuration to pass to calculateCacheKey mock.
string$cacheKey‪Return from calculateCacheKey mock.
int$times‪Times the cache is expected to be called (0 or 1).
string | null$cached‪Return from cacheFrontend mock.

Definition at line 2766 of file ContentObjectRendererTest.php.

References TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest\$subject, and TYPO3\CMS\Core\Utility\StringUtility\getUniqueId().

◆ getFromCacheDataProvider()

static array TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::getFromCacheDataProvider ( )
static

Data provider for getFromCache

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

Definition at line 2729 of file ContentObjectRendererTest.php.

References TYPO3\CMS\Core\Utility\StringUtility\getUniqueId().

◆ getGlobalDataProvider()

static TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::getGlobalDataProvider ( )
static

Definition at line 7275 of file ContentObjectRendererTest.php.

◆ getGlobalReturnsExpectedResult()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::getGlobalReturnsExpectedResult ( mixed  $expected,
string  $key,
?array  $globals,
?array  $source 
)

Definition at line 7347 of file ContentObjectRendererTest.php.

References $GLOBALS.

◆ getLibParseFunc_RTE()

◆ globalExceptionHandlerConfigurationCanBeOverriddenByLocalConfiguration()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::globalExceptionHandlerConfigurationCanBeOverriddenByLocalConfiguration ( )

◆ handleCharset()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::handleCharset ( string &  $subject,
string &  $expected 
)
private

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

Parameters
string$subject‪the subject, will be modified
string$expected‪the expected result, will be modified

Definition at line 194 of file ContentObjectRendererTest.php.

References TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest\$subject.

Referenced by TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest\cropHTML().

◆ hashDataProvider()

static array TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::hashDataProvider ( )
static

Data provider for the hash test

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

Definition at line 4660 of file ContentObjectRendererTest.php.

◆ html5SelfClosingTagsDataprovider()

static TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::html5SelfClosingTagsDataprovider ( )
static

Definition at line 4339 of file ContentObjectRendererTest.php.

◆ HTMLcaseshift()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::HTMLcaseshift ( string  $content,
string  $expected 
)

Definition at line 2979 of file ContentObjectRendererTest.php.

◆ HTMLcaseshiftDataProvider()

static TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::HTMLcaseshiftDataProvider ( )
static

Definition at line 2953 of file ContentObjectRendererTest.php.

◆ httpMakelinksDataProvider()

static TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::httpMakelinksDataProvider ( )
static

◆ httpMakelinksReturnsLink()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::httpMakelinksReturnsLink ( string  $data,
array  $configuration,
string  $expectedResult,
LinkResult  $linkResult 
)

Definition at line 2509 of file ContentObjectRendererTest.php.

◆ httpMakelinksReturnsNoLink()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::httpMakelinksReturnsNoLink ( string  $data,
array  $configuration,
string  $expectedResult 
)

Definition at line 2544 of file ContentObjectRendererTest.php.

◆ invalidHttpMakelinksDataProvider()

static TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::invalidHttpMakelinksDataProvider ( )
static

Definition at line 2518 of file ContentObjectRendererTest.php.

◆ listNum()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::listNum ( string  $expected,
string  $content,
string  $listNum,
string  $delimeter 
)

◆ listNumDataProvider()

static TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::listNumDataProvider ( )
static

Definition at line 7437 of file ContentObjectRendererTest.php.

◆ listNumWithListNumRandReturnsString()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::listNumWithListNumRandReturnsString ( )

◆ localConfigurationOverridesGlobalConfiguration()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::localConfigurationOverridesGlobalConfiguration ( )

◆ mailtoMakelinksDataProvider()

static TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::mailtoMakelinksDataProvider ( )
static

◆ mailtoMakelinksReturnsMailToLink()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::mailtoMakelinksReturnsMailToLink ( string  $data,
array  $configuration,
string  $expectedResult,
LinkResult  $linkResult 
)

Definition at line 2617 of file ContentObjectRendererTest.php.

◆ mailtoMakelinksReturnsNoMailToLink()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::mailtoMakelinksReturnsNoMailToLink ( )

Definition at line 2627 of file ContentObjectRendererTest.php.

◆ mergeTSRefResolvesRecursive()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::mergeTSRefResolvesRecursive ( )

◆ numberFormat()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::numberFormat ( string  $expects,
mixed  $content,
array  $conf 
)

Check if numberFormat works properly.

Definition at line 893 of file ContentObjectRendererTest.php.

◆ numberFormatDataProvider()

static array TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::numberFormatDataProvider ( )
static

Data provider for numberFormat.

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

Definition at line 850 of file ContentObjectRendererTest.php.

◆ parseFuncParsesNestedTagsProperly()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::parseFuncParsesNestedTagsProperly ( string  $value,
array  $configuration,
string  $expectedResult 
)

Definition at line 2366 of file ContentObjectRendererTest.php.

◆ prefixComment()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::prefixComment ( string  $expect,
string  $comment,
string  $content 
)

Check if prefixComment works properly.

Parameters
string$expect‪The expected output.
string$comment‪The parameter $comment.
string$content‪The parameter $content.

Definition at line 7225 of file ContentObjectRendererTest.php.

◆ prefixCommentDataProvider()

static array TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::prefixCommentDataProvider ( )
static

Data provider for prefixComment.

Returns
‪array [$expect, $comment, $content]

Definition at line 7158 of file ContentObjectRendererTest.php.

References TYPO3\CMS\Core\Utility\StringUtility\getUniqueId().

◆ recursiveStdWrapIsOnlyCalledOnce()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::recursiveStdWrapIsOnlyCalledOnce ( )

Definition at line 818 of file ContentObjectRendererTest.php.

◆ recursiveStdWrapProperlyRendersBasicString()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::recursiveStdWrapProperlyRendersBasicString ( )

Definition at line 803 of file ContentObjectRendererTest.php.

◆ renderedErrorMessageCanBeCustomized()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::renderedErrorMessageCanBeCustomized ( )

◆ renderingContentObjectDoesNotThrowExceptionIfExceptionHandlerIsConfiguredGlobally()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::renderingContentObjectDoesNotThrowExceptionIfExceptionHandlerIsConfiguredGlobally ( )

◆ renderingContentObjectDoesNotThrowExceptionIfExceptionHandlerIsConfiguredLocally()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::renderingContentObjectDoesNotThrowExceptionIfExceptionHandlerIsConfiguredLocally ( )

◆ renderingContentObjectThrowsException()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::renderingContentObjectThrowsException ( )

◆ replacement()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::replacement ( string  $expects,
string  $content,
array  $conf 
)

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

Parameters
string$content‪The given input.
string$expects‪The expected result.
array$conf‪The given configuration.

Definition at line 964 of file ContentObjectRendererTest.php.

◆ replacementDataProvider()

static array TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::replacementDataProvider ( )
static

Data provider replacement

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

Definition at line 906 of file ContentObjectRendererTest.php.

◆ round()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::round ( float  $expect,
mixed  $content,
array  $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$expect‪The expected output.
mixed$content‪The given content.
array$conf‪The given configuration of 'round.'.

Definition at line 794 of file ContentObjectRendererTest.php.

◆ roundDataProvider()

static array TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::roundDataProvider ( )
static

Data provider for round

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

Definition at line 729 of file ContentObjectRendererTest.php.

◆ setCurrentFile_getCurrentFile()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::setCurrentFile_getCurrentFile ( )

Check setter and getter of currentFile work properly.

Definition at line 7237 of file ContentObjectRendererTest.php.

◆ setCurrentVal_getCurrentVal()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::setCurrentVal_getCurrentVal ( )

Check setter and getter of currentVal work properly.

Show it stored to $this->data[$this->currentValKey]. (The default value of currentValKey is tested elsewhere.)

See also
stdWrap_current()

Definition at line 7254 of file ContentObjectRendererTest.php.

References TYPO3\CMS\Core\Utility\StringUtility\getUniqueId().

◆ setUp()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::setUp ( )
protected

◆ setUserObjectType_getUserObjectType()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::setUserObjectType_getUserObjectType ( )

Check setter and getter of userObjectType work properly.

Definition at line 7268 of file ContentObjectRendererTest.php.

References TYPO3\CMS\Core\Utility\StringUtility\getUniqueId().

◆ specificExceptionsCanBeIgnoredByExceptionHandler()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::specificExceptionsCanBeIgnoredByExceptionHandler ( )

◆ stdWrap_addPageCacheTagsAddsPageTags()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::stdWrap_addPageCacheTagsAddsPageTags ( array  $expectedTags,
array  $configuration 
)

Definition at line 3090 of file ContentObjectRendererTest.php.

◆ stdWrap_addPageCacheTagsAddsPageTagsDataProvider()

static TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::stdWrap_addPageCacheTagsAddsPageTagsDataProvider ( )
static

Definition at line 3067 of file ContentObjectRendererTest.php.

◆ stdWrap_age()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::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.

Definition at line 3107 of file ContentObjectRendererTest.php.

References $GLOBALS, TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest\$subject, TYPO3\CMS\Core\Utility\StringUtility\getUniqueId(), and TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer\stdWrap_age().

◆ stdWrap_append()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::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.

Definition at line 3137 of file ContentObjectRendererTest.php.

References TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest\$subject, TYPO3\CMS\Core\Utility\StringUtility\getUniqueId(), and TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer\stdWrap_append().

◆ stdWrap_br()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::stdWrap_br ( string  $expected,
string  $input,
?string  $doctype 
)

Test that stdWrap_br works as expected.

Parameters
string$expected‪The expected value.
string$input‪The input value.
string | null$doctype‪document type.

Definition at line 3199 of file ContentObjectRendererTest.php.

◆ stdWrap_brTag()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::stdWrap_brTag ( string  $input,
string  $expected,
array  $config 
)

Check if brTag works properly

Definition at line 3247 of file ContentObjectRendererTest.php.

◆ stdWrap_bytes()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::stdWrap_bytes ( string  $expect,
string  $content,
array  $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.

Parameters
string$expect‪The expected output.
string$content‪The given input.
array$conf‪The given configuration for 'bytes.'.

Definition at line 3324 of file ContentObjectRendererTest.php.

◆ stdWrap_bytesDataProvider()

static array TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::stdWrap_bytesDataProvider ( )
static

Data provider for stdWrap_bytes.

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

Definition at line 3257 of file ContentObjectRendererTest.php.

◆ stdWrap_cacheRead()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::stdWrap_cacheRead ( string  $expect,
string  $input,
array  $conf,
int  $times,
?array  $with,
string|bool|null  $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
Parameters
string$expect‪Expected result.
string$input‪Given input string.
array$conf‪Property 'cache.'
int$times‪Times called mocked method.
array | null$with‪Parameter passed to mocked method.
string | false$will‪Return value of mocked method.

Definition at line 3512 of file ContentObjectRendererTest.php.

References TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest\$subject, and TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer\stdWrap_cacheRead().

◆ stdWrap_cacheReadDataProvider()

static array TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::stdWrap_cacheReadDataProvider ( )
static

Data provider for stdWrap_cacheRead

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

Definition at line 3456 of file ContentObjectRendererTest.php.

References TYPO3\CMS\Core\Utility\StringUtility\getUniqueId().

◆ stdWrap_cacheStore()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::stdWrap_cacheStore ( ?array  $confCache,
int  $times,
mixed  $key 
)

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.
Parameters
array | null$confCache‪Configuration of 'cache.'
int$times‪Times calculateCacheKey is called.
mixed$key‪The return value of calculateCacheKey.

Definition at line 3572 of file ContentObjectRendererTest.php.

References TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest\$subject, TYPO3\CMS\Core\Utility\StringUtility\getUniqueId(), and TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer\stdWrap_cacheStore().

◆ stdWrap_cacheStoreDataProvider()

static array TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::stdWrap_cacheStoreDataProvider ( )
static

Data provider for stdWrap_cacheStore.

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

Definition at line 3540 of file ContentObjectRendererTest.php.

References TYPO3\CMS\Core\Utility\StringUtility\getUniqueId().

◆ stdWrap_case()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::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.

Definition at line 3689 of file ContentObjectRendererTest.php.

References TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest\$subject, TYPO3\CMS\Core\Utility\StringUtility\getUniqueId(), and TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer\stdWrap_case().

◆ stdWrap_char()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::stdWrap_char ( )

Check if stdWrap_char works properly.

Definition at line 3714 of file ContentObjectRendererTest.php.

◆ stdWrap_cObject()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::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.

Definition at line 3351 of file ContentObjectRendererTest.php.

References TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest\$subject, TYPO3\CMS\Core\Utility\StringUtility\getUniqueId(), and TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer\stdWrap_cObject().

◆ stdWrap_crop()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::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.

Definition at line 3732 of file ContentObjectRendererTest.php.

References TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest\$subject, TYPO3\CMS\Core\Utility\StringUtility\getUniqueId(), and TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer\stdWrap_crop().

◆ stdWrap_cropHTML()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::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.

Definition at line 3764 of file ContentObjectRendererTest.php.

References TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest\$subject, TYPO3\CMS\Core\Utility\StringUtility\getUniqueId(), and TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer\stdWrap_cropHTML().

◆ stdWrap_csConv()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::stdWrap_csConv ( string  $expected,
string  $input,
array  $conf 
)

Check if stdWrap_csConv works properly.

Parameters
string$expected‪The expected value.
string$input‪The input value.
array$conf‪Property: csConv

Definition at line 3926 of file ContentObjectRendererTest.php.

◆ stdWrap_csConvDataProvider()

static array TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::stdWrap_csConvDataProvider ( )
static

Data provider for stdWrap_csConv

Returns
‪array Order expected, input, conf

Definition at line 3881 of file ContentObjectRendererTest.php.

◆ stdWrap_current()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::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'

Definition at line 3944 of file ContentObjectRendererTest.php.

◆ stdWrap_data()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::stdWrap_data ( array  $expect,
array  $data 
)

Checks that stdWrap_data works properly.

Show:

  • ‪Delegates to method getData.
  • ‪Parameter 1 is $conf['data'].
  • ‪Parameter 2 is property data by default.
  • ‪Returns the return value.
Parameters
array$expect‪Expect either $data
array$data‪The data.

Definition at line 3993 of file ContentObjectRendererTest.php.

References TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest\$subject, TYPO3\CMS\Core\Utility\StringUtility\getUniqueId(), and TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer\stdWrap_data().

◆ stdWrap_dataDataProvider()

static array TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::stdWrap_dataDataProvider ( )
static

Data provider for stdWrap_data.

Returns
‪array [$expect, $data]

Definition at line 3971 of file ContentObjectRendererTest.php.

References TYPO3\CMS\Core\Utility\StringUtility\getUniqueId().

◆ stdWrap_dataWrap()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::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.

Definition at line 4021 of file ContentObjectRendererTest.php.

References TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest\$subject, TYPO3\CMS\Core\Utility\StringUtility\getUniqueId(), and TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer\stdWrap_dataWrap().

◆ stdWrap_date()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::stdWrap_date ( string  $expected,
mixed  $content,
array  $conf,
int  $now 
)

Check if stdWrap_date works properly.

Parameters
string$expected‪The expected output.
mixed$content‪The given input.
array$conf‪The given configuration.
int$now‪Fictive execution time.

Definition at line 4092 of file ContentObjectRendererTest.php.

References $GLOBALS.

◆ stdWrap_dateDataProvider()

static array TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::stdWrap_dateDataProvider ( )
static

Data provider for the stdWrap_date test

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

Definition at line 4047 of file ContentObjectRendererTest.php.

◆ stdWrap_debug()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::stdWrap_debug ( )

Check if stdWrap_debug works properly.

Definition at line 4105 of file ContentObjectRendererTest.php.

◆ stdWrap_debugData()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::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:'.
  • ‪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.

Definition at line 4132 of file ContentObjectRendererTest.php.

References $GLOBALS, and TYPO3\CMS\Core\Utility\StringUtility\getUniqueId().

◆ stdWrap_debugFunc()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::stdWrap_debugFunc ( bool  $expectArray,
mixed  $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.

Parameters
bool$expectArray‪If cast to array is expected.
mixed$confDebugFunc‪The configuration for $conf['debugFunc'].

Definition at line 4184 of file ContentObjectRendererTest.php.

References $GLOBALS, and TYPO3\CMS\Core\Utility\StringUtility\getUniqueId().

◆ stdWrap_debugFuncDataProvider()

static array TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::stdWrap_debugFuncDataProvider ( )
static

Data provider for stdWrap_debugFunc.

Returns
‪array [$expectArray, $confDebugFunc]

Definition at line 4154 of file ContentObjectRendererTest.php.

◆ stdWrap_doubleBrTag()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::stdWrap_doubleBrTag ( string  $expected,
string  $input,
array  $config 
)

Check if doubleBrTag works properly

Parameters
string$expected‪The expected value.
string$input‪The input value.
array$config‪The property 'doubleBrTag'.

Definition at line 4271 of file ContentObjectRendererTest.php.

◆ stdWrap_encapsLines()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::stdWrap_encapsLines ( )

Check if stdWrap_encapsLines works properly.

Show:

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

Definition at line 4287 of file ContentObjectRendererTest.php.

References TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest\$subject, TYPO3\CMS\Core\Utility\StringUtility\getUniqueId(), and TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer\stdWrap_encapsLines().

◆ stdWrap_encapsLines_HTML5SelfClosingTags()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::stdWrap_encapsLines_HTML5SelfClosingTags ( string  $input,
string  $expected 
)

Check if stdWrap_encapsLines uses self closing tags only for allowed tags according to

See also
https://www.w3.org/TR/html5/syntax.html#void-elements

Definition at line 4315 of file ContentObjectRendererTest.php.

References TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest\getLibParseFunc_RTE().

◆ stdWrap_encodeForJavaScriptValue()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::stdWrap_encodeForJavaScriptValue ( string  $expect,
string  $content 
)

Check if encodeForJavaScriptValue works properly.

Parameters
string$expect‪The expected output.
string$content‪The given input.

Definition at line 4468 of file ContentObjectRendererTest.php.

◆ stdWrap_encodeForJavaScriptValueDataProvider()

static array [] TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::stdWrap_encodeForJavaScriptValueDataProvider ( )
static

Data provider for stdWrap_encodeForJavaScriptValue.

Returns
‪array[]

Definition at line 4426 of file ContentObjectRendererTest.php.

◆ stdWrap_expandList()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::stdWrap_expandList ( string  $expected,
string  $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.

Parameters
string$expected‪The expected output.
string$content‪The given content.

Definition at line 4503 of file ContentObjectRendererTest.php.

◆ stdWrap_expandListDataProvider()

static array TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::stdWrap_expandListDataProvider ( )
static

Data provider for expandList

Returns
‪array [$expect, $content]

Definition at line 4481 of file ContentObjectRendererTest.php.

◆ stdWrap_field()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::stdWrap_field ( )

Check if stdWrap_field works properly.

Show:

  • ‪calls getFieldVal
  • ‪passes conf['field'] as parameter

Definition at line 4520 of file ContentObjectRendererTest.php.

References TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest\$subject, TYPO3\CMS\Core\Utility\StringUtility\getUniqueId(), and TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer\stdWrap_field().

◆ stdWrap_fieldRequired()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::stdWrap_fieldRequired ( string  $expect,
bool  $stop,
string  $content,
array  $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.
Parameters
string$expect‪The expected output.
bool$stop‪Expect stop further rendering.
string$content‪The given input.
array$conf‪The given configuration.

Definition at line 4630 of file ContentObjectRendererTest.php.

References TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest\$subject, and TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer\stdWrap_fieldRequired().

◆ stdWrap_fieldRequiredDataProvider()

static array TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::stdWrap_fieldRequiredDataProvider ( )
static

Data provider for stdWrap_fieldRequired.

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

Definition at line 4542 of file ContentObjectRendererTest.php.

References TYPO3\CMS\Core\Utility\StringUtility\getUniqueId().

◆ stdWrap_formattedDate()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::stdWrap_formattedDate ( string  $expected,
mixed  $pattern,
string  $locale = null,
string  $givenDate = null 
)

◆ stdWrap_formattedDateProvider()

static TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::stdWrap_formattedDateProvider ( )
static

Definition at line 3785 of file ContentObjectRendererTest.php.

◆ stdWrap_hash()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::stdWrap_hash ( string  $expect,
string  $content,
array  $conf 
)

Check if stdWrap_hash works properly.

Show:

  • ‪Algorithms: sha1, md5
  • ‪Returns '' for invalid algorithm.
  • ‪Value can be processed by stdWrap.
Parameters
string$expect‪The expected output.
string$content‪The given content.
array$conf‪The given configuration.

Definition at line 4704 of file ContentObjectRendererTest.php.

◆ stdWrap_HTMLparser()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::stdWrap_HTMLparser ( string  $expect,
string  $content,
array  $conf,
int  $times,
string  $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.
Parameters
string$expect‪The expected output.
string$content‪The given content.
array$conf‪The given configuration.
int$times‪Times HTMLparser_TSbridge is called (0 or 1).
string$will‪Return of HTMLparser_TSbridge.

Definition at line 3047 of file ContentObjectRendererTest.php.

References TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest\$subject, and TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer\stdWrap_HTMLparser().

◆ stdWrap_HTMLparserDataProvider()

static array TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::stdWrap_HTMLparserDataProvider ( )
static

Data provider for stdWrap_HTMLparser

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

Definition at line 2989 of file ContentObjectRendererTest.php.

References TYPO3\CMS\Core\Utility\StringUtility\getUniqueId().

◆ stdWrap_htmlSpecialChars()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::stdWrap_htmlSpecialChars ( string  $expected,
string  $input,
array  $conf 
)

Check if stdWrap_htmlSpecialChars works properly

Parameters
string$expected‪The expected value.
string$input‪The input value.
array$conf‪htmlSpecialChars.preserveEntities

Definition at line 4752 of file ContentObjectRendererTest.php.

◆ stdWrap_htmlSpecialCharsDataProvider()

static array TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::stdWrap_htmlSpecialCharsDataProvider ( )
static

Data provider for stdWrap_htmlSpecialChars

Returns
‪array Order: expected, input, conf

Definition at line 4717 of file ContentObjectRendererTest.php.

◆ stdWrap_if()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::stdWrap_if ( string  $expect,
bool  $stop,
string  $content,
array  $conf,
int  $times,
bool  $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.
Parameters
string$expect‪The expected output.
bool$stop‪Expect stop further rendering.
string$content‪The given content.
array$conf
int$times‪Times checkIf is called (0 or 1).
bool$will‪Return of checkIf (null if not called).

Definition at line 4859 of file ContentObjectRendererTest.php.

References TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest\$subject, and TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer\stdWrap_if().

◆ stdWrap_ifBlank()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::stdWrap_ifBlank ( mixed  $expect,
mixed  $content,
array  $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.
Parameters
mixed$expect
mixed$content‪The given input.
array$conf‪The given configuration.

Definition at line 4962 of file ContentObjectRendererTest.php.

◆ stdWrap_ifBlankDataProvider()

static array TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::stdWrap_ifBlankDataProvider ( )
static

Data provider for stdWrap_ifBlank.

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

Definition at line 4927 of file ContentObjectRendererTest.php.

References TYPO3\CMS\Core\Utility\StringUtility\getUniqueId().

◆ stdWrap_ifDataProvider()

static array TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::stdWrap_ifDataProvider ( )
static

Data provider for stdWrap_if.

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

Definition at line 4765 of file ContentObjectRendererTest.php.

References TYPO3\CMS\Core\Utility\StringUtility\getUniqueId().

◆ stdWrap_ifEmpty()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::stdWrap_ifEmpty ( mixed  $expect,
mixed  $content,
array  $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.
Parameters
mixed$expect‪The expected output.
mixed$content‪The given content.
array$conf‪The given configuration.

Definition at line 5016 of file ContentObjectRendererTest.php.

◆ stdWrap_ifEmptyDataProvider()

static array TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::stdWrap_ifEmptyDataProvider ( )
static

Data provider for stdWrap_ifEmpty.

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

Definition at line 4973 of file ContentObjectRendererTest.php.

References TYPO3\CMS\Core\Utility\StringUtility\getUniqueId().

◆ stdWrap_ifNull()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::stdWrap_ifNull ( mixed  $expect,
mixed  $content,
array  $conf 
)

Check that stdWrap_ifNull works properly.

Show:

  • ‪Returns the content, if not null.
  • ‪Otherwise returns $conf['ifNull'].
  • ‪Null is strictly checked by identity with null.
Parameters
mixed$expect
mixed$content‪The given input.
array$conf‪The given configuration.

Definition at line 5057 of file ContentObjectRendererTest.php.

◆ stdWrap_ifNullDataProvider()

static array TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::stdWrap_ifNullDataProvider ( )
static

Data provider for stdWrap_ifNull.

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

Definition at line 5027 of file ContentObjectRendererTest.php.

References TYPO3\CMS\Core\Utility\StringUtility\getUniqueId().

◆ stdWrap_innerWrap()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::stdWrap_innerWrap ( string  $expected,
string  $input,
array  $conf 
)

Check if stdWrap_innerWrap works properly.

Parameters
string$expected‪The expected value.
string$input‪The input value.
array$conf‪Property: innerWrap

Definition at line 5111 of file ContentObjectRendererTest.php.

◆ stdWrap_innerWrap2()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::stdWrap_innerWrap2 ( string  $expected,
string  $input,
array  $conf 
)

Check if stdWrap_innerWrap2 works properly.

Parameters
string$expected‪The expected value.
string$input‪The input value.
array$conf‪Property: innerWrap2

Definition at line 5167 of file ContentObjectRendererTest.php.

◆ stdWrap_innerWrap2DataProvider()

static array TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::stdWrap_innerWrap2DataProvider ( )
static

Data provider for stdWrap_innerWrap2

Returns
‪array Order expected, input, conf

Definition at line 5124 of file ContentObjectRendererTest.php.

◆ stdWrap_innerWrapDataProvider()

static array TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::stdWrap_innerWrapDataProvider ( )
static

Data provider for stdWrap_innerWrap

Returns
‪array Order expected, input, conf

Definition at line 5068 of file ContentObjectRendererTest.php.

◆ stdWrap_insertData()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::stdWrap_insertData ( )

Check if stdWrap_insertData works properly.

Show:

  • ‪Delegates to method insertData.
  • ‪Parameter 1 is $content.
  • ‪Returns the return value.

Definition at line 5185 of file ContentObjectRendererTest.php.

References TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest\$subject, TYPO3\CMS\Core\Utility\StringUtility\getUniqueId(), and TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer\stdWrap_insertData().

◆ stdWrap_insertDataAndInputExamples()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::stdWrap_insertDataAndInputExamples ( mixed  $expect,
string  $content 
)

Check that stdWrap_insertData works properly with given input.

Parameters
mixed$expect‪The expected output.
string$content‪The given input.

Definition at line 5221 of file ContentObjectRendererTest.php.

◆ stdWrap_insertDataProvider()

static array TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::stdWrap_insertDataProvider ( )
static

Data provider for stdWrap_insertData

Returns
‪array [$expect, $content]

Definition at line 5204 of file ContentObjectRendererTest.php.

◆ stdWrap_intval()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::stdWrap_intval ( int  $expect,
mixed  $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
Parameters
int$expect‪The expected output.
mixed$content‪The given input.

Definition at line 5275 of file ContentObjectRendererTest.php.

◆ stdWrap_intvalDataProvider()

static array TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::stdWrap_intvalDataProvider ( )
static

Data provider for stdWrap_intval

Returns
‪array [$expect, $content]

Definition at line 5231 of file ContentObjectRendererTest.php.

◆ stdWrap_keywords()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::stdWrap_keywords ( string  $expected,
string  $input 
)

Check if stdWrap_keywords works properly.

Parameters
string$expected‪The expected value.
string$input‪The input value.

Definition at line 5333 of file ContentObjectRendererTest.php.

◆ stdWrap_langDataProvider()

static array TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::stdWrap_langDataProvider ( )
static

Data provider for stdWrap_lang

Returns
‪array Order expected, input, conf, language

Definition at line 5343 of file ContentObjectRendererTest.php.

◆ stdWrap_langViaSiteLanguage()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::stdWrap_langViaSiteLanguage ( string  $expected,
string  $input,
array  $conf,
string  $language 
)

Check if stdWrap_lang works properly with site handling.

Parameters
string$expected‪The expected value.
string$input‪The input value.
array$conf‪Properties: lang.xy.
string$language‪For $TSFE->config[config][language].

Definition at line 5409 of file ContentObjectRendererTest.php.

References TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest\createSiteWithLanguage().

◆ stdWrap_listNum()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::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.

Definition at line 5437 of file ContentObjectRendererTest.php.

References TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest\$subject, TYPO3\CMS\Core\Utility\StringUtility\getUniqueId(), and TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer\stdWrap_listNum().

◆ stdWrap_noTrimWrap()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::stdWrap_noTrimWrap ( string  $expect,
string  $content,
array  $conf 
)

Check if stdWrap_noTrimWrap works properly.

Parameters
string$expect‪The expected output.
string$content‪The given input.
array$conf‪The given configuration.

Definition at line 5542 of file ContentObjectRendererTest.php.

◆ stdWrap_noTrimWrapDataProvider()

static array TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::stdWrap_noTrimWrapDataProvider ( )
static

Data provider for stdWrap_noTrimWrap.

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

Definition at line 5469 of file ContentObjectRendererTest.php.

◆ stdWrap_numberFormat()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::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.

Definition at line 5587 of file ContentObjectRendererTest.php.

References TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest\$subject, TYPO3\CMS\Core\Utility\StringUtility\getUniqueId(), and TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer\stdWrap_numberFormat().

◆ stdWrap_numRows()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::stdWrap_numRows ( )

Check if stdWrap_numRows works properly.

Show:

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

Definition at line 5560 of file ContentObjectRendererTest.php.

References TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest\$subject, TYPO3\CMS\Core\Utility\StringUtility\getUniqueId(), and TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer\stdWrap_numRows().

◆ stdWrap_orderedStdWrap()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::stdWrap_orderedStdWrap ( array  $config,
string  $expected 
)

Definition at line 3446 of file ContentObjectRendererTest.php.

◆ stdWrap_orderedStdWrapDataProvider()

static TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::stdWrap_orderedStdWrapDataProvider ( )
static

Definition at line 3373 of file ContentObjectRendererTest.php.

◆ stdWrap_outerWrap()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::stdWrap_outerWrap ( string  $expected,
string  $input,
array  $conf 
)

Check if stdWrap_outerWrap works properly.

Parameters
string$expected‪The expected value.
string$input‪The input value.
array$conf‪Property: outerWrap

Definition at line 5656 of file ContentObjectRendererTest.php.

◆ stdWrap_outerWrapDataProvider()

static array TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::stdWrap_outerWrapDataProvider ( )
static

Data provider for stdWrap_outerWrap

Returns
‪array Order expected, input, conf

Definition at line 5613 of file ContentObjectRendererTest.php.

◆ stdWrap_override()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::stdWrap_override ( mixed  $expect,
string  $content,
array  $conf 
)

Check if stdWrap_override works properly.

Parameters
array$conf‪Property: setCurrent

Definition at line 5742 of file ContentObjectRendererTest.php.

◆ stdWrap_overrideDataProvider()

static array TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::stdWrap_overrideDataProvider ( )
static

Data provider for stdWrap_csConv

Returns
‪array Order expected, input, conf

Definition at line 5669 of file ContentObjectRendererTest.php.

◆ stdWrap_parseFunc()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::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.

Definition at line 5762 of file ContentObjectRendererTest.php.

References TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest\$subject, TYPO3\CMS\Core\Utility\StringUtility\getUniqueId(), and TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer\stdWrap_parseFunc().

◆ stdWrap_parseFuncReturnsParsedHtml()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::stdWrap_parseFuncReturnsParsedHtml ( string  $value,
array  $configuration,
string  $expectedResult,
LinkResultInterface|false  $linkResult 
)

Definition at line 2089 of file ContentObjectRendererTest.php.

◆ stdWrap_postCObject()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::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.

Definition at line 5795 of file ContentObjectRendererTest.php.

References TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest\$subject, TYPO3\CMS\Core\Utility\StringUtility\getUniqueId(), and TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer\stdWrap_postCObject().

◆ stdWrap_postUserFunc()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::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.

Definition at line 5827 of file ContentObjectRendererTest.php.

References TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest\$subject, TYPO3\CMS\Core\Utility\StringUtility\getUniqueId(), and TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer\stdWrap_postUserFunc().

◆ stdWrap_postUserFuncInt()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::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 -->".

Definition at line 5865 of file ContentObjectRendererTest.php.

References TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest\$subject, TYPO3\CMS\Core\Utility\StringUtility\getUniqueId(), and TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer\stdWrap_postUserFuncInt().

◆ stdWrap_preCObject()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::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.

Definition at line 5915 of file ContentObjectRendererTest.php.

References TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest\$subject, TYPO3\CMS\Core\Utility\StringUtility\getUniqueId(), and TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer\stdWrap_preCObject().

◆ stdWrap_prefixComment()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::stdWrap_prefixComment ( string  $expect,
string  $content,
array  $conf,
int|bool  $disable,
int  $times,
string  $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.

Definition at line 6015 of file ContentObjectRendererTest.php.

References TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest\$subject, TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer\setRequest(), and TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer\stdWrap_prefixComment().

◆ stdWrap_prefixCommentDataProvider()

static array TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::stdWrap_prefixCommentDataProvider ( )
static

Data provider for stdWrap_prefixComment.

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

Definition at line 5981 of file ContentObjectRendererTest.php.

References TYPO3\CMS\Core\Utility\StringUtility\getUniqueId().

◆ stdWrap_preIfEmptyListNum()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::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.

Definition at line 5949 of file ContentObjectRendererTest.php.

References TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest\$subject, TYPO3\CMS\Core\Utility\StringUtility\getUniqueId(), and TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer\stdWrap_preIfEmptyListNum().

◆ stdWrap_prepend()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::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.

Definition at line 6052 of file ContentObjectRendererTest.php.

References TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest\$subject, TYPO3\CMS\Core\Utility\StringUtility\getUniqueId(), and TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer\stdWrap_prepend().

◆ stdWrap_preUserFunc()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::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.

Definition at line 6128 of file ContentObjectRendererTest.php.

References TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest\$subject, TYPO3\CMS\Core\Utility\StringUtility\getUniqueId(), and TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer\stdWrap_preUserFunc().

◆ stdWrap_prioriCalc()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::stdWrap_prioriCalc ( mixed  $expect,
string  $content,
array  $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.

Parameters
mixed$expect‪The expected output.
string$content‪The given content.
array$conf‪The given configuration.

Definition at line 6110 of file ContentObjectRendererTest.php.

◆ stdWrap_prioriCalcDataProvider()

static array TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::stdWrap_prioriCalcDataProvider ( )
static

Data provider for stdWrap_prioriCalc

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

Definition at line 6079 of file ContentObjectRendererTest.php.

◆ stdWrap_rawUrlEncode()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::stdWrap_rawUrlEncode ( string  $expect,
string  $content 
)

Check if rawUrlEncode works properly.

Parameters
string$expect‪The expected output.
string$content‪The given input.

Definition at line 6173 of file ContentObjectRendererTest.php.

◆ stdWrap_rawUrlEncodeDataProvider()

static array TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::stdWrap_rawUrlEncodeDataProvider ( )
static

Data provider for stdWrap_rawUrlEncode

Returns
‪array [$expect, $content].

Definition at line 6151 of file ContentObjectRendererTest.php.

◆ stdWrap_replacement()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::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.

Definition at line 6192 of file ContentObjectRendererTest.php.

References TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest\$subject, TYPO3\CMS\Core\Utility\StringUtility\getUniqueId(), and TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer\stdWrap_replacement().

◆ stdWrap_required()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::stdWrap_required ( mixed  $expect,
bool  $stop,
mixed  $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.
Parameters
mixed$expect‪The expected output.
bool$stop‪Expect stop further rendering.
mixed$content‪The given input.

Definition at line 6252 of file ContentObjectRendererTest.php.

References TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest\$subject, and TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer\stdWrap_required().

◆ stdWrap_requiredDataProvider()

static array TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::stdWrap_requiredDataProvider ( )
static

Data provider for stdWrap_required.

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

Definition at line 6218 of file ContentObjectRendererTest.php.

◆ stdWrap_round()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::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.

Definition at line 6272 of file ContentObjectRendererTest.php.

References TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest\$subject, TYPO3\CMS\Core\Utility\StringUtility\getUniqueId(), and TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer\stdWrap_round().

◆ stdWrap_setContentToCurrent()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::stdWrap_setContentToCurrent ( )

Check if stdWrap_setContentToCurrent works properly.

Definition at line 6294 of file ContentObjectRendererTest.php.

References TYPO3\CMS\Core\Utility\StringUtility\getUniqueId().

◆ stdWrap_setCurrent()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::stdWrap_setCurrent ( string  $input,
array  $conf 
)

Check if stdWrap_setCurrent works properly.

Parameters
string$input‪The input value.
array$conf‪Property: setCurrent

Definition at line 6358 of file ContentObjectRendererTest.php.

◆ stdWrap_setCurrentDataProvider()

static array TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::stdWrap_setCurrentDataProvider ( )
static

Data provider for stdWrap_setCurrent

Returns
‪array Order input, conf

Definition at line 6316 of file ContentObjectRendererTest.php.

◆ stdWrap_split()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::stdWrap_split ( )

Check if stdWrap_split works properly.

Show:

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

Definition at line 6386 of file ContentObjectRendererTest.php.

References TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest\$subject, TYPO3\CMS\Core\Utility\StringUtility\getUniqueId(), and TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer\stdWrap_split().

◆ stdWrap_splitObjReturnsCount()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::stdWrap_splitObjReturnsCount ( )

Definition at line 2633 of file ContentObjectRendererTest.php.

◆ stdWrap_stdWrap()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::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.

Definition at line 6417 of file ContentObjectRendererTest.php.

References TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest\$subject, TYPO3\CMS\Core\Utility\StringUtility\getUniqueId(), and TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer\stdWrap_stdWrap().

◆ stdWrap_stdWrapValue()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::stdWrap_stdWrapValue ( string  $key,
array  $configuration,
?string  $defaultValue,
?string  $expected 
)

Definition at line 6505 of file ContentObjectRendererTest.php.

◆ stdWrap_stdWrapValueDataProvider()

static TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::stdWrap_stdWrapValueDataProvider ( )
static

Data provider for stdWrap_stdWrapValue test

Definition at line 6438 of file ContentObjectRendererTest.php.

◆ stdWrap_strftime()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::stdWrap_strftime ( string  $expect,
mixed  $content,
array  $conf,
int  $now 
)

Check if stdWrap_strftime works properly.

Parameters
string$expect‪The expected output.
mixed$content‪The given input.
array$conf‪The given configuration.
int$now‪Fictive execution time.

Definition at line 6680 of file ContentObjectRendererTest.php.

References $GLOBALS.

◆ stdWrap_strftimeDataProvider()

static array TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::stdWrap_strftimeDataProvider ( )
static

Data provider for stdWrap_strftime

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

Definition at line 6644 of file ContentObjectRendererTest.php.

◆ stdWrap_stripHtml()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::stdWrap_stripHtml ( )

Test for the stdWrap_stripHtml

Definition at line 6700 of file ContentObjectRendererTest.php.

◆ stdWrap_strPad()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::stdWrap_strPad ( string  $expect,
string  $content,
array  $conf 
)

Check if stdWrap_strPad works properly.

Parameters
string$expect‪The expected output.
string$content‪The given input.
array$conf‪The configuration of 'strPad.'.

Definition at line 6632 of file ContentObjectRendererTest.php.

◆ stdWrap_strPadDataProvider()

static array TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::stdWrap_strPadDataProvider ( )
static

Data provider for stdWrap_strPad.

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

Definition at line 6520 of file ContentObjectRendererTest.php.

◆ stdWrap_strtotime()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::stdWrap_strtotime ( mixed  $expect,
string  $content,
array  $conf 
)

Check if stdWrap_strtotime works properly.

Parameters
mixed$expect‪The expected output.
string$content‪The given input.
array$conf‪The given configuration.

Definition at line 6757 of file ContentObjectRendererTest.php.

References $GLOBALS.

◆ stdWrap_strtotimeDataProvider()

static array TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::stdWrap_strtotimeDataProvider ( )
static

Data provider for the stdWrap_strtotime test

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

Definition at line 6712 of file ContentObjectRendererTest.php.

◆ stdWrap_substring()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::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.

Definition at line 6785 of file ContentObjectRendererTest.php.

References TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest\$subject, TYPO3\CMS\Core\Utility\StringUtility\getUniqueId(), and TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer\stdWrap_substring().

◆ stdWrap_trim()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::stdWrap_trim ( string  $expect,
mixed  $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'

Definition at line 6861 of file ContentObjectRendererTest.php.

◆ stdWrap_trimDataProvider()

static array TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::stdWrap_trimDataProvider ( )
static

Data provider for stdWrap_trim.

Returns
‪array [$expect, $content]

Definition at line 6811 of file ContentObjectRendererTest.php.

◆ stdWrap_typolink()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::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.

Definition at line 6877 of file ContentObjectRendererTest.php.

References TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest\$subject, TYPO3\CMS\Core\Utility\StringUtility\getUniqueId(), and TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer\stdWrap_typolink().

◆ stdWrap_wrap()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::stdWrap_wrap ( string  $expected,
string  $input,
array  $conf 
)

Check if stdWrap_wrap works properly.

Parameters
string$expected‪The expected value.
string$input‪The input value.
array$conf‪Properties: wrap, wrap.splitChar

Definition at line 6953 of file ContentObjectRendererTest.php.

◆ stdWrap_wrap2()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::stdWrap_wrap2 ( string  $expected,
string  $input,
array  $conf 
)

Check if stdWrap_wrap2 works properly.

Parameters
string$expected‪The expected value.
string$input‪The input value.
array$conf‪Properties: wrap2, wrap2.splitChar

Definition at line 7019 of file ContentObjectRendererTest.php.

◆ stdWrap_wrap2DataProvider()

static array TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::stdWrap_wrap2DataProvider ( )
static

Data provider for stdWrap_wrap2

Returns
‪array Order expected, input, conf

Definition at line 6966 of file ContentObjectRendererTest.php.

◆ stdWrap_wrap3()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::stdWrap_wrap3 ( string  $expected,
string  $input,
array  $conf 
)

Check if stdWrap_wrap3 works properly.

Parameters
string$expected‪The expected value.
string$input‪The input value.
array$conf‪Properties: wrap3, wrap3.splitChar

Definition at line 7082 of file ContentObjectRendererTest.php.

◆ stdWrap_wrap3DataProvider()

static array TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::stdWrap_wrap3DataProvider ( )
static

Data provider for stdWrap_wrap3

Returns
‪array Order expected, input, conf

Definition at line 7029 of file ContentObjectRendererTest.php.

◆ stdWrap_wrapAlign()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::stdWrap_wrapAlign ( string  $expect,
string  $content,
mixed  $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.
Parameters
string$expect‪The expected output.
string$content‪The given content.
mixed$wrapAlignConf‪The given input.

Definition at line 7122 of file ContentObjectRendererTest.php.

◆ stdWrap_wrapAlignDataProvider()

static array TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::stdWrap_wrapAlignDataProvider ( )
static

Data provider for stdWrap_wrapAlign.

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

Definition at line 7092 of file ContentObjectRendererTest.php.

References TYPO3\CMS\Core\Utility\StringUtility\getUniqueId().

◆ stdWrap_wrapDataProvider()

static array TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::stdWrap_wrapDataProvider ( )
static

Data provider for stdWrap_wrap

Returns
‪array Order expected, input, conf

Definition at line 6900 of file ContentObjectRendererTest.php.

◆ stdWrapBrDataProvider()

static string [][] TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::stdWrapBrDataProvider ( )
static

Data provider for stdWrap_br

Returns
‪string[][] Order expected, given, config.doctype

Definition at line 3164 of file ContentObjectRendererTest.php.

◆ stdWrapBrTagDataProvider()

static TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::stdWrapBrTagDataProvider ( )
static

Data provider for stdWrap_brTag

Definition at line 3211 of file ContentObjectRendererTest.php.

◆ stdWrapDoesOnlyCallIfEmptyIfTheTrimmedContentIsEmptyOrZero()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::stdWrapDoesOnlyCallIfEmptyIfTheTrimmedContentIsEmptyOrZero ( string  $content,
bool  $ifEmptyShouldBeCalled 
)

◆ stdWrapDoesOnlyCallIfEmptyIfTheTrimmedContentIsEmptyOrZeroDataProvider()

static TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::stdWrapDoesOnlyCallIfEmptyIfTheTrimmedContentIsEmptyOrZeroDataProvider ( )
static

Definition at line 1063 of file ContentObjectRendererTest.php.

◆ stdWrapDoubleBrTagDataProvider()

static array TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::stdWrapDoubleBrTagDataProvider ( )
static

Data provider for stdWrap_doubleBrTag

Returns
‪array Order expected, input, config

Definition at line 4206 of file ContentObjectRendererTest.php.

◆ stdWrapKeywordsDataProvider()

static string [][] TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::stdWrapKeywordsDataProvider ( )
static

Data provider for stdWrap_keywords

Returns
‪string[][] Order expected, input

Definition at line 5285 of file ContentObjectRendererTest.php.

◆ stdWrapReturnsExpectation()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::stdWrapReturnsExpectation ( string  $content,
array  $configuration,
string  $expectation 
)

Definition at line 1058 of file ContentObjectRendererTest.php.

◆ stdWrapReturnsExpectationDataProvider()

static TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::stdWrapReturnsExpectationDataProvider ( )
static

Definition at line 1041 of file ContentObjectRendererTest.php.

◆ substring()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::substring ( string  $expect,
string  $content,
string  $conf 
)

Check if substring works properly.

Parameters
string$expect‪The expected output.
string$content‪The given input.
string$conf‪The given configuration.

Definition at line 1137 of file ContentObjectRendererTest.php.

◆ substringDataProvider()

static array TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::substringDataProvider ( )
static

Data provider for substring

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

Definition at line 1109 of file ContentObjectRendererTest.php.

◆ willReturnNullForUnregisteredObject()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::willReturnNullForUnregisteredObject ( )
See also
‪ContentObjectRendererTest::canRegisterAContentObjectClassForATypoScriptName

Definition at line 379 of file ContentObjectRendererTest.php.

Member Data Documentation

◆ $backupEnvironment

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

Definition at line 106 of file ContentObjectRendererTest.php.

◆ $cacheManagerMock

CacheManager& MockObject TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::$cacheManagerMock
private

Definition at line 110 of file ContentObjectRendererTest.php.

◆ $contentObjectMap

array TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::$contentObjectMap
private
Initial value:
= [
'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,
]

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

Definition at line 115 of file ContentObjectRendererTest.php.

◆ $frontendControllerMock

TypoScriptFrontendController& MockObject& AccessibleObjectInterface TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::$frontendControllerMock
private

◆ $resetSingletonInstances

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

Definition at line 105 of file ContentObjectRendererTest.php.

◆ $subject

ContentObjectRenderer& MockObject& AccessibleObjectInterface TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest::$subject
private

Definition at line 108 of file ContentObjectRendererTest.php.

Referenced by TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest\beforeStdWrapContentStoredInCacheEventIsCalled(), TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest\calculateCacheKey(), TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest\checkIf(), TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest\createContentObjectThrowingExceptionFixture(), TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest\getFromCache(), TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest\handleCharset(), TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest\setUp(), TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest\stdWrap_age(), TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest\stdWrap_append(), TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest\stdWrap_cacheRead(), TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest\stdWrap_cacheStore(), TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest\stdWrap_case(), TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest\stdWrap_cObject(), TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest\stdWrap_crop(), TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest\stdWrap_cropHTML(), TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest\stdWrap_data(), TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest\stdWrap_dataWrap(), TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest\stdWrap_encapsLines(), TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest\stdWrap_field(), TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest\stdWrap_fieldRequired(), TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest\stdWrap_formattedDate(), TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest\stdWrap_HTMLparser(), TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest\stdWrap_if(), TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest\stdWrap_insertData(), TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest\stdWrap_listNum(), TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest\stdWrap_numberFormat(), TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest\stdWrap_numRows(), TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest\stdWrap_parseFunc(), TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest\stdWrap_postCObject(), TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest\stdWrap_postUserFunc(), TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest\stdWrap_postUserFuncInt(), TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest\stdWrap_preCObject(), TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest\stdWrap_prefixComment(), TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest\stdWrap_preIfEmptyListNum(), TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest\stdWrap_prepend(), TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest\stdWrap_preUserFunc(), TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest\stdWrap_replacement(), TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest\stdWrap_required(), TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest\stdWrap_round(), TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest\stdWrap_split(), TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest\stdWrap_stdWrap(), TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest\stdWrap_substring(), TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest\stdWrap_typolink(), and TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest\stdWrapDoesOnlyCallIfEmptyIfTheTrimmedContentIsEmptyOrZero().