[BUGFIX] Streamline Unit Tests for GeneralUtility::sanitizeLocalUrl 88/42988/2
authorNicole Cordes <typo3@cordes.co>
Wed, 2 Sep 2015 13:06:12 +0000 (15:06 +0200)
committerNicole Cordes <typo3@cordes.co>
Thu, 3 Sep 2015 06:48:51 +0000 (08:48 +0200)
commit7774a08686b35fe99d83dba9d65fc4289a173326
tree614dad375117f252bbcfef86af941db962de8f3d
parent5bf0cf819dda6f341aa5614b299fdf2b2ce19e2c
[BUGFIX] Streamline Unit Tests for GeneralUtility::sanitizeLocalUrl

Currently the Unit Tests for the function just work by accident. As
HTTP_HOST an absolute path is set which is used to get some other values
to compare the given strings. To add further tests we should streamline
the tests and set/add expectations for host and script_name.

Resolves: #69475
Releases: master, 6.2
Change-Id: If139da7bd22c1ebf2c538cd3412fb0abf56dc668
Reviewed-on: http://review.typo3.org/42988
Reviewed-by: Helmut Hummel <helmut.hummel@typo3.org>
Tested-by: Helmut Hummel <helmut.hummel@typo3.org>
Reviewed-by: Nicole Cordes <typo3@cordes.co>
Tested-by: Nicole Cordes <typo3@cordes.co>
typo3/sysext/core/Tests/Unit/Utility/GeneralUtilityTest.php