tests: Fix content-type/length in Module\TestCase

This commit is contained in:
Harald Eilertsen
2025-12-21 11:04:25 +01:00
parent 87f79381d9
commit e289078f82

View File

@@ -44,8 +44,8 @@ class TestCase extends UnitTestCase {
$_SERVER['SERVER_PROTOCOL'] = 'HTTP/1.1';
$_SERVER['QUERY_STRING'] = "q={$uri}";
$_SERVER['REQUEST_URI'] = $uri;
$_SERVER['CONTENT_TYPE'] = 'text/html';
$_SERVER['CONTENT_LENGTH'] = 0;
$_SERVER['HTTP_CONTENT_TYPE'] = 'text/html';
$_SERVER['HTTP_CONTENT_LENGTH'] = 0;
// phpcs:disable Generic.PHP.DisallowRequestSuperglobal.Found
$_REQUEST = array_merge($_GET, $_POST);