[BUGFIX] Unit tests: Define TYPO3_REQUESTTYPE 25/54925/3
authorChristian Kuhn <lolli@schwarzbu.ch>
Sun, 3 Dec 2017 19:48:21 +0000 (20:48 +0100)
committerChristian Kuhn <lolli@schwarzbu.ch>
Sun, 3 Dec 2017 20:00:05 +0000 (21:00 +0100)
commit20182ea16b005eb67759f4adcdc3e1dcba530a04
tree7a7b8376098ac1f7cf2348219a85cf9eafeb68bf
parent004193a6111b8eb08424bd270392112563a7bf46
[BUGFIX] Unit tests: Define TYPO3_REQUESTTYPE

Unit test boostrap does not initialize constants
TYPO3_REQUESTTYPE and TYPO3_REQUESTTYPE_*, but various
tests rely on this basic constants being properly defined
in core v7. With PHP 7.2, accessing undefined connstants
throws warnings.
Patch makes according bootstrap method public and calls
it during unit test bootstrap.

Change-Id: I450e440694385244c554adef00a9c74135d457f5
Resolves: #83211
Releases: 7.6
Reviewed-on: https://review.typo3.org/54925
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: TYPO3com <no-reply@typo3.com>
typo3/sysext/core/Build/UnitTestsBootstrap.php
typo3/sysext/core/Classes/Core/Bootstrap.php