Task #55424
closed
Epic #76862: Refactor and modernise the TypoScript content renderer
Story #74496: Test coverage of stdWrap processors
Write unit tests for ContentObjectRenderer and HtmlParser
Added by Michiel Roos over 10 years ago.
Updated almost 7 years ago.
Category:
Content Rendering
Estimated time:
(Total: 0.00 h)
Sprint Focus:
Remote Sprint
Description
Unit tests are needed to optimise several methods without breaking things. The biggest underperformers are:
ContentObjectRenderer
- parseFunc
- parseFunc_
- typoLink
- stdWrap
HtmlParser
- at least all methods called from parseFunc*
- Category set to Content Rendering
- Target version changed from 6.2.0 to 7.4 (Backend)
- Sprint Focus set to On Location Sprint
- Target version changed from 7.4 (Backend) to 7.5
- Sprint Focus changed from On Location Sprint to Remote Sprint
- Status changed from New to In Progress
- Assignee set to Michael Oehlhof
- TYPO3 Version changed from 6.2 to 7
- Target version changed from 7.5 to 7 LTS
- Status changed from In Progress to Resolved
- Assignee deleted (
Michael Oehlhof)
I set this as resolved, as all subtasks are resolved or closed; please reopen if something new comes out
Thank you
A half year ago we have decided to not add them all as subtasks but add them one by one if the tests are implemented, to keep the open issues low.
Today there are about 58 functions in ContentObjectRenderer without unit tests.
We can let this issue closed and add subitems to it if someone implements the missing unit tests in this area.
This is the list of missing unit tests for ContentObjectRenderer:
stdWrap_stdWrapPreProcess
stdWrap_cacheRead
stdWrap_setContentToCurrent
stdWrap_setCurrent
stdWrap_lang
stdWrap_field
stdWrap_numRows
stdWrap_filelist
stdWrap_preUserFunc
stdWrap_stdWrapOverride
stdWrap_preIfEmptyListNum
stdWrap_listNum
stdWrap_stdWrapProcess
stdWrap_required
stdWrap_fieldRequired
stdWrap_csConv
stdWrap_split
stdWrap_removeBadHTML
stdWrap_cropHTML
stdWrap_stripHtml
stdWrap_crop
stdWrap_rawUrlEncode
stdWrap_doubleBrTag
stdWrap_br
stdWrap_brTag
stdWrap_keywords
stdWrap_innerWrap
stdWrap_innerWrap2
stdWrap_fontTag
stdWrap_addParams
stdWrap_textStyle
stdWrap_tableStyle
stdWrap_filelink
stdWrap_preCObject
stdWrap_postCObject
stdWrap_wrapAlign
stdWrap_TCAselectItem
stdWrap_spaceBefore
stdWrap_spaceAfter
stdWrap_space
stdWrap_wrap2
stdWrap_dataWrap
stdWrap_prepend
stdWrap_wrap3
stdWrap_orderedStdWrap
stdWrap_outerWrap
stdWrap_insertData
stdWrap_offsetWrap
stdWrap_postUserFunc
stdWrap_postUserFuncInt
stdWrap_prefixComment
stdWrap_editIcons
stdWrap_editPanel
stdWrap_cacheStore
stdWrap_stdWrapPostProcess
stdWrap_debug
stdWrap_debugFunc
stdWrap_debugData
- Parent task set to #74496
- Status changed from Resolved to Closed
Also available in: Atom
PDF