[TASK] Better mocking of $GLOBALS['LANG'] 34/25234/3
authorChristian Kuhn <lolli@schwarzbu.ch>
Sat, 9 Nov 2013 15:43:06 +0000 (16:43 +0100)
committerChristian Kuhn <lolli@schwarzbu.ch>
Sat, 9 Nov 2013 17:27:11 +0000 (18:27 +0100)
commitd7c03b860cfdff46f8a1d2a6b03ba14f8d84e6b5
tree8af37afe260265972c10a9dada1ab6cbe9609656
parentcbc6672fad5075a1b569a01e3380f98d286bc69f
[TASK] Better mocking of $GLOBALS['LANG']

To further remove dependencies in unit tests, some tests are
adapted to correctly mock $GLOBALS['LANG']. The PageRenderer
tests still need adaptions in a separate patch, so the test
bootstrap still initializes the language handling for now.

Change-Id: I5d6a8a0a0fe738fef676fbc637a02fe9700ccee3
Resolves: #53476
Related: #51436
Releases: 6.2
Reviewed-on: https://review.typo3.org/25234
Reviewed-by: Anja Leichsenring
Tested-by: Anja Leichsenring
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
35 files changed:
typo3/sysext/backend/Classes/Module/ModuleController.php
typo3/sysext/backend/Tests/Unit/Configuration/TypoScript/ConditionMatching/ConditionMatcherTest.php
typo3/sysext/backend/Tests/Unit/Module/ModuleControllerTest.php
typo3/sysext/backend/Tests/Unit/Utility/BackendUtilityTest.php
typo3/sysext/core/Classes/FormProtection/BackendFormProtection.php
typo3/sysext/core/Classes/Page/PageRenderer.php
typo3/sysext/core/Tests/Unit/FormProtection/BackendFormProtectionTest.php
typo3/sysext/core/Tests/Unit/Resource/FileTest.php
typo3/sysext/extensionmanager/Classes/Report/ExtensionStatus.php
typo3/sysext/extensionmanager/Tests/Unit/Report/ExtensionStatusTest.php
typo3/sysext/form/Tests/Unit/Validation/AlphabeticValidatorTest.php
typo3/sysext/form/Tests/Unit/Validation/AlphanumericValidatorTest.php
typo3/sysext/form/Tests/Unit/Validation/BetweenValidatorTest.php
typo3/sysext/form/Tests/Unit/Validation/DateValidatorTest.php
typo3/sysext/form/Tests/Unit/Validation/DigitValidatorTest.php
typo3/sysext/form/Tests/Unit/Validation/EmailValidatorTest.php
typo3/sysext/form/Tests/Unit/Validation/EqualsValidatorTest.php
typo3/sysext/form/Tests/Unit/Validation/FileAllowedTypesValidatorTest.php
typo3/sysext/form/Tests/Unit/Validation/FileMaximumSizeValidatorTest.php
typo3/sysext/form/Tests/Unit/Validation/FileMinimumSizeValidatorTest.php
typo3/sysext/form/Tests/Unit/Validation/FloatValidatorTest.php
typo3/sysext/form/Tests/Unit/Validation/GreaterThanValidatorTest.php
typo3/sysext/form/Tests/Unit/Validation/InArrayValidatorTest.php
typo3/sysext/form/Tests/Unit/Validation/IntegerValidatorTest.php
typo3/sysext/form/Tests/Unit/Validation/IpValidatorTest.php
typo3/sysext/form/Tests/Unit/Validation/LengthValidatorTest.php
typo3/sysext/form/Tests/Unit/Validation/LessThanValidatorTest.php
typo3/sysext/form/Tests/Unit/Validation/RegExpValidatorTest.php
typo3/sysext/form/Tests/Unit/Validation/RequiredValidatorTest.php
typo3/sysext/form/Tests/Unit/Validation/UriValidatorTest.php
typo3/sysext/frontend/Tests/Unit/ContentObject/FilesContentObjectTest.php
typo3/sysext/frontend/Tests/Unit/View/AdminPanelViewTest.php
typo3/sysext/recordlist/Tests/Unit/Browser/ElementBrowserTest.php
typo3/sysext/reports/Classes/Report/Status/Typo3Status.php
typo3/sysext/reports/Tests/Unit/Report/Status/Typo3StatusTest.php