[BUGFIX] Allow running only EXT:form subset of unit tests 09/47509/2
authorMorton Jonuschat <m.jonuschat@mojocode.de>
Fri, 1 Apr 2016 11:06:02 +0000 (13:06 +0200)
committerBenni Mack <benni@typo3.org>
Tue, 5 Apr 2016 10:35:50 +0000 (12:35 +0200)
commitcb18a5379256175bc7b33027ee3b15ba957b5a0d
tree11c501b19689d74d0d2a0c517aaf2bcd7b7ff2ba
parentd81e40d414346c2a758a66cea8d7068e026b2cd5
[BUGFIX] Allow running only EXT:form subset of unit tests

Mock the humanReadableDate() method to avoid a call to
LocalizationUtility::translate() which require a CachingBackend
to be set up.

Change-Id: I425da7a1ad815620e04e4cd9645d45dd528d672b
Releases: master, 7.6
Resolves: #75360
Reviewed-on: https://review.typo3.org/47509
Reviewed-by: Benni Mack <benni@typo3.org>
Tested-by: Benni Mack <benni@typo3.org>
typo3/sysext/form/Tests/Unit/Validator/AbstractValidatorTest.php
typo3/sysext/form/Tests/Unit/Validator/DateValidatorTest.php