Skip to content
Snippets Groups Projects
Commit ed26bba2 authored by Stefan Bürk's avatar Stefan Bürk Committed by Christian Kuhn
Browse files

[BUGFIX] Avoid incomplete setup for WebProcessorTest

WebProcessorTests uses GeneralUtillity::getIndpEnv()
directly or indirectly, thus triggering deprecation
message on PHP 8.1 if $_SERVER['HOST'] is not existing.

This patch sets $_SERVER['HOT'] to avoid this message.

Resolves: #95745
Releases: master
Change-Id: I71bd3c9b1a803c90d79dee42cd60032c9477c4b2
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/71948


Tested-by: default avatarcore-ci <typo3@b13.com>
Tested-by: default avatarSimon Gilli <typo3@gilbertsoft.org>
Tested-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: default avatarSimon Gilli <typo3@gilbertsoft.org>
Reviewed-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
parent 3d0776f2
No related merge requests found
......@@ -39,6 +39,7 @@ class WebProcessorTest extends UnitTestCase
$_SERVER['REMOTE_ADDR'] = '';
$_SERVER['QUERY_STRING'] = '';
$_SERVER['SSL_SESSION_ID'] = '';
$_SERVER['HTTP_HOST'] = 'acme.com';
$environmentVariables = GeneralUtility::getIndpEnv('_ARRAY');
$logRecord = new LogRecord('test.core.log', LogLevel::DEBUG, 'test');
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment