[BUGFIX] Streamline Unit Tests for GeneralUtility::sanitizeLocalUrl 82/42982/3
authorNicole Cordes <typo3@cordes.co>
Wed, 2 Sep 2015 13:06:12 +0000 (15:06 +0200)
committerHelmut Hummel <helmut.hummel@typo3.org>
Thu, 3 Sep 2015 06:24:24 +0000 (08:24 +0200)
commit386c5eb71f3717a744b5d24aa89e844875e7eaa3
tree60f84c986ab243d8a55f7e3468a0ffd350000a52
parent4af6d837a52596e0d981f53fda80d1f3ec48ba5c
[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/42982
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Frans Saris <franssaris@gmail.com>
Reviewed-by: Helmut Hummel <helmut.hummel@typo3.org>
Tested-by: Helmut Hummel <helmut.hummel@typo3.org>
typo3/sysext/core/Tests/Unit/Utility/GeneralUtilityTest.php