[BUGFIX] Allow running only EXT:form subset of unit tests 85/47485/3
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:35 +0000 (12:35 +0200)
commit2fea0a6d899ee2174fa97316126e3c56659a773c
treee3aab2c8b87aafb74a32589d140a019889030dc0
parent688c888ec87576687c369782898afea3ca364ad4
[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.

Releases: master, 7.6
Resolves: #75360
Change-Id: I3a2102e2693fc705cad21a67d7292322e6e8b487
Reviewed-on: https://review.typo3.org/47485
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
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