Project

General

Profile

Actions

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 over 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Content Rendering
Target version:
Start date:
2015-08-17
Due date:
% Done:

100%

Estimated time:
(Total: 0.00 h)
TYPO3 Version:
7
PHP Version:
5.3
Tags:
Complexity:
easy
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*

Subtasks 19 (0 open19 closed)

Task #69116: Write unit tests for HtmlParser::getSubpartClosedMichael Oehlhof2015-08-17

Actions
Task #69160: Write unit tests for HtmlParser::substituteSubpartClosedMichael Oehlhof2015-08-18

Actions
Task #69175: Write unit tests for HtmlParser::substituteSubpartArrayClosedMichael Oehlhof2015-08-18

Actions
Task #69196: Write unit tests for HtmlParser::substituteMarkerClosedMichael Oehlhof2015-08-19

Actions
Task #69197: Write unit tests for HtmlParser::substituteMarkerArrayClosedMichael Oehlhof2015-08-19

Actions
Task #69264: Write unit tests for HtmlParser->splitIntoBlock()ClosedMichael Oehlhof2015-08-22

Actions
Task #69265: Write unit tests for HtmlParser->getFirstTag() and HtmlParser->getFirstTagName()ClosedMichael Oehlhof2015-08-23

Actions
Task #69266: Write unit tests for HtmlParser->removeFirstAndLastTag()ClosedMichael Oehlhof2015-08-23

Actions
Task #70128: Write unit tests for ContentObjectRenderer->stdWrap_ifEmpty()ClosedMichael Oehlhof2015-09-26

Actions
Task #70130: Write unit tests for ContentObjectRenderer->stdWrapValue()ClosedMichael Oehlhof2015-09-26

Actions
Task #70131: Write unit tests for stdWrap_trim() and stdWrap_intvalClosedMichael Oehlhof2015-09-27

Actions
Task #70165: Write unit tests for stdWrap_numberFormat()ClosedMichael Oehlhof2015-09-28

Actions
Task #70282: Write unit tests for stdWrap_expandListClosedMichael Oehlhof2015-10-01

Actions
Task #70287: Write unit tests for stdWrap_dateClosedMichael Oehlhof2015-10-02

Actions
Task #70321: Write unit tests for stdWrap_ageClosedMichael Oehlhof2015-10-02

Actions
Task #70333: Write unit tests for stdWrap_case()ClosedMichael Oehlhof2015-10-04

Actions
Task #71770: Write unit tests for stdWrap_bytes()ClosedMichael Oehlhof2015-11-22

Actions
Task #71772: Write unit tests for stdWrap_substring()ClosedMichael Oehlhof2015-11-22

Actions
Task #72664: Add Unit Tests for HtmlParserClosedBenni Mack2016-01-12

Actions
Actions #1

Updated by Mathias Schreiber over 9 years ago

  • Category set to Content Rendering
  • Target version changed from 6.2.0 to 7.4 (Backend)
Actions #2

Updated by Benni Mack almost 9 years ago

  • Sprint Focus set to On Location Sprint
Actions #3

Updated by Susanne Moog over 8 years ago

  • Target version changed from 7.4 (Backend) to 7.5
Actions #4

Updated by Anja Leichsenring over 8 years ago

  • Sprint Focus changed from On Location Sprint to Remote Sprint
Actions #5

Updated by Michael Oehlhof over 8 years ago

  • Status changed from New to In Progress
  • Assignee set to Michael Oehlhof
Actions #6

Updated by Wouter Wolters over 8 years ago

  • TYPO3 Version changed from 6.2 to 7
Actions #7

Updated by Benni Mack over 8 years ago

  • Target version changed from 7.5 to 7 LTS
Actions #8

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

Actions #9

Updated by Michael Oehlhof about 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

Actions #10

Updated by Riccardo De Contardi almost 8 years ago

  • Parent task set to #74496
Actions #11

Updated by Riccardo De Contardi over 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF