Task #55424
closedEpic #76862: Refactor and modernise the TypoScript content renderer
Story #74496: Test coverage of stdWrap processors
Write unit tests for ContentObjectRenderer and HtmlParser
100%
Description
Unit tests are needed to optimise several methods without breaking things. The biggest underperformers are:
ContentObjectRenderer- parseFunc
- parseFunc_
- typoLink
- stdWrap
- at least all methods called from parseFunc*
Updated by Mathias Schreiber over 9 years ago
- Category set to Content Rendering
- Target version changed from 6.2.0 to 7.4 (Backend)
Updated by Susanne Moog about 9 years ago
- Target version changed from 7.4 (Backend) to 7.5
Updated by Anja Leichsenring about 9 years ago
- Sprint Focus changed from On Location Sprint to Remote Sprint
Updated by Michael Oehlhof almost 9 years ago
- Status changed from New to In Progress
- Assignee set to Michael Oehlhof
Updated by Wouter Wolters almost 9 years ago
- TYPO3 Version changed from 6.2 to 7
Updated by Benni Mack almost 9 years ago
- Target version changed from 7.5 to 7 LTS
Updated by Riccardo De Contardi over 8 years ago
- 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
Updated by Michael Oehlhof over 8 years ago
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
Updated by Riccardo De Contardi almost 7 years ago
- Status changed from Resolved to Closed