[TASK] Replace setLocale() in tests with phpunit backup functionality
There is a phpunit shipped functionality to reliably fiddle with locale settings and have the valid settings back afterwards. This funcionality was not used in core unit tests yet, so it is introduced now. In this process, some sanitizing to prevent tests from fail due to non existent locales on a certain system is added. Resolves: #78387 Releases: master Change-Id: Iebd9b9251590283e6d2889db09a62a31a595fdb3 Reviewed-on: https://review.typo3.org/50334 Tested-by:TYPO3com <no-reply@typo3.com> Reviewed-by:
Wouter Wolters <typo3@wouterwolters.nl> Tested-by:
Wouter Wolters <typo3@wouterwolters.nl> Reviewed-by:
Christian Kuhn <lolli@schwarzbu.ch> Tested-by:
Christian Kuhn <lolli@schwarzbu.ch>
Showing
- typo3/sysext/fluid/Tests/Unit/ViewHelpers/Form/SelectViewHelperTest.php 7 additions, 25 deletions...luid/Tests/Unit/ViewHelpers/Form/SelectViewHelperTest.php
- typo3/sysext/fluid/Tests/Unit/ViewHelpers/Format/DateViewHelperTest.php 6 additions, 27 deletions...luid/Tests/Unit/ViewHelpers/Format/DateViewHelperTest.php
- typo3/sysext/form/Tests/Unit/Validator/FloatValidatorTest.php 5 additions, 26 deletions...3/sysext/form/Tests/Unit/Validator/FloatValidatorTest.php
- typo3/sysext/form/Tests/Unit/Validator/IntegerValidatorTest.php 10 additions, 27 deletions...sysext/form/Tests/Unit/Validator/IntegerValidatorTest.php
- typo3/sysext/frontend/Tests/Unit/ContentObject/ContentObjectRendererTest.php 3 additions, 7 deletions...nd/Tests/Unit/ContentObject/ContentObjectRendererTest.php
Please register or sign in to comment