Issue Story Closed

#74496Test coverage of stdWrap processors

Elmar Hinz 03/08/16, 11:54 updated 10/02/18, 11:19

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