#74496Test coverage of stdWrap processors
Description
Test all stdWrap processors.
This gives an overview of the unit test coverage of stdWrap processors in the ContentObjectRendererTest file. Existing tests are marked with DONE.
During the process of separating stdWrap processors from ContentObjectRenderer the existing tests are useful to prove that the separation works.
Once the separation is finished, the test layout should follow the separation of the classes.
/* * Test coverage * * - stdWrap * - stdWrapPreProcess * - cacheRead * - setContentToCurrent * - addPageCacheTags DONE * - setCurrent * - lang * - data * - field * - current * - cObject * - numRows * - filelist * - preUserFunc * - stdWrapOverride * - override * - preIfEmptyListNum * - ifNull DONE * - ifEmpty DONE * - ifBlank * - listNum * - trim DONE * - strPad DONE * - stdWrap DONE * - stdWrapProcess * - required * - if * - fieldRequired * - csConv * - parseFunc DONE * - HTMLparser * - split * - replacement DONE * - prioriCalc * - char * - intval DONE * - hash DONE * - round DONE * - numberFormat DONE * - expandList DONE * - date DONE * - strtotime DONE * - strftime DONE * - age DONE * - case DONE * - bytes DONE * - substring DONE * - removeBadHTML * - cropHTML * - stripHtml * - crop * - rawUrlEncode * - htmlSpecialChars * - encodeForJavaScriptValue DONE * - doubleBrTag * - br * - brTag * - encapsLines * - keywords * - innerWrap * - innerWrap2 * - fontTag * - addParams * - filelink * - preCObject * - postCObject * - wrapAlign * - typolink * - TCAselectItem * - space * - spaceBefore * - spaceAfter * - wrap * - noTrimWrap DONE * - wrap2 * - dataWrap * - prepend * - append * - wrap3 * - orderedStdWrap * - outerWrap * - insertData * - postUserFunc * - prefixComment * - editIcons * - editPanel * - cacheStore * - stdWrapPreProcess * - debug * - debugFunc * - debugData */
Reviews 1
Subtasks 96
- Task #55424Write unit tests for ContentObjectRenderer and HtmlParser
- Task #76261Add unit test to cover stdWrap_stripHTML
- Task #76275Add unit test to cover stdWrap_removeBadHTML
- Bug #76294Add unit test to cover stdWrap_rawUrlEncode()
- Task #76307Add unit test to cover stdWrap_brTag
- Task #76316Add unit test to cover stdWrap_char
- Task #76383Deprecate TypoScript stdWrap fontTag
- Task #76396Add unit test to cover stdWrap_csConv
- Task #76409Add unit test to cover stdWrap_br
- Task #76428Add unit test to cover stdWrap_keywords
- Task #76537Add unit test to cover stdWrap_doubleBrTag
- Task #76547Add unit test to cover stdWrap_wrap
- Task #76548Add unit test to cover stdWrap_innerWrap
- Task #76549Add unit test to cover stdWrap_innerWrap2
- Task #76550Add unit test to cover stdWrap_outerWrap
- Task #76551Add unit test to cover stdWrap_wrap2
- Task #76552Add unit test to cover stdWrap_wrap3
- Task #76553Add unit test to cover stdWrap_htmlSpecialChars
- Task #76608Fix typos in ContentObjectRendererTest
- Task #76610Add unit test to cover stdWrap_lang
- Task #76634Add unit test to cover stdWrap_setCurrent
- Bug #76635Add unit test to cover stdWrap_setContentToCurrent
- Task #76654Add unit test to cover stdWrap_data
- Task #76708Add unit test to cover stdWrap_stdWrapPreProcess
- Task #76709Add unit test to cover stdWrap_stdWrapOverride
- Task #76710Add unit test to cover stdWrap_stdWrapProcess
- Task #76711Add unit test to cover stdWrap_stdWrapPostProcess
- Task #76713Add unit test to cover stdWrap_stdWrapCacheRead and getFromCache
- Task #76717Add unit test to cover ContentObjectRenderer::getFromCache
- Task #76718Add unit test to cover ContentObjectRenderer::calculateCacheKey
- Task #76733Add unit test to cover stdWrap_field
- Task #76734Add unit test to cover stdWrap_current
- Task #76735Add unit test to cover stdWrap_cObject
- Task #76736Add unit test to cover stdWrap_numRows
- Task #76738Add unit test to cover stdWrap_filelist
- Task #76740Add unit test to cover stdWrap_preUserFunc
- Task #76741Add unit test to cover stdWrap_override
- Task #76743Add unit test to cover stdWrap_preIfEmptyListNum
- Task #76751Add unit test to cover stdWrap_ifBlank
- Task #76752Refactor unit test to cover stdWrap_ifEmpty
- Task #76753Refactor unit test to cover stdWrap_ifNull
- Task #76754Add unit test to cover stdWrap_listNum
- Bug #76755Add unit test to cover stdWrap_trim
- Task #76756Refactor unit test to cover stdWrap_strPad
- Task #76757Add unit test to cover stdWrap_stdWrap
- Bug #76761Add unit test to cover stdWrap_required
- Task #76763Add unit test to cover stdWrap_if
- Task #76764Add unit test to cover stdWrap_fieldRequired
- Task #76767Add unit test to cover stdWrap_parseFunc.
- Task #76768Add unit test to cover stdWrap_HTMLparser
- Task #76769Add unit test to cover stdWrap_ split
- Task #76770Refactor unit test to cover stdWrap_ replacement
- Task #76771Add unit test to cover stdWrap_ prioriCalc
- Task #76772Refactor unit test to cover stdWrap_intval
- Task #76773Refactor unit test to cover stdWrap_hash
- Task #76774Refactor unit test to cover stdWrap_round
- Task #76775Refactor unit test to cover stdWrap_numberFormat
- Task #76776Refactor unit test to cover stdWrap_expandList
- Task #76777Refactor unit test to cover stdWrap_data
- Task #76778Refactor unit test to cover stdWrap_strtotime
- Task #76779Refactor unit test to cover stdWrap_strftime
- Task #76780Refactor unit test to cover stdWrap_age
- Bug #76781Refactor unit test to cover stdWrap_case
- Bug #76782Refactor unit test to cover stdWrap_bytes
- Task #76783Refactor unit test to cover stdWrap_substring
- Task #76826Add unit test to cover stdWrap_crop
- Task #76827Add unit test to cover stdWrap_cropHTML
- Task #76828Add unit test to cover stdWrap_encapsLines
- Task #76829Refactor unit test to cover stdWrap_encodeForJavaScriptValue
- Task #76832Add unit test to cover stdWrap_addParams
- Task #76833Add unit test to cover stdWrap_filelink
- Task #76834Add unit test to cover stdWrap_preCObject
- Task #76835Add unit test to cover stdWrap_postCObject
- Task #76836Add unit test to cover stdWrap_wrapAlign
- Task #76837Add unit test to cover stdWrap_typolink
- Task #76838Add unit test to cover stdWrap_TCAselectItem
- Task #76839Add unit test to cover stdWrap_space
- Task #76840Add unit test to cover stdWrap_spaceBefore
- Bug #76841Add unit test to cover stdWrap_spaceAfter
- Task #76842Refactor unit test to cover stdWrap_noTrimWrap
- Bug #76843Add unit test to cover stdWrap_dataWrap
- Task #76845Add unit test to cover stdWrap_prepend
- Task #76846Add unit test to cover stdWrap_append
- Task #76847Add unit test to cover stdWrap_orderedStdWrap
- Task #76848Add unit test to cover stdWrap_insertData
- Task #76849Add unit test to cover stdWrap_postUserFunc
- Task #76850Add unit test to cover stdWrap_postUserFuncInt
- Task #76851Add unit test to cover stdWrap_prefixComment
- Task #76852Add unit test to cover stdWrap_editIcons
- Task #76853Add unit test to cover stdWrap_editPanel
- Task #76854Add unit test to cover stdWrap_cacheStore
- Task #76855Add unit test to cover stdWrap_debug
- Task #76856Add unit test to cover stdWrap_debugFunc
- Task #76858Add unit test to cover stdWrap_debugData
- Task #76894Add unit test to show that all stdWrap_ methods are callable
- Task #76981Put stdWrap unit test methods into an alphabetical order