Merge branch 'fix-warnings-in-owatest' into 'dev'

Set content type/length for module test requests

See merge request hubzilla/core!2244
This commit is contained in:
Mario
2025-11-20 21:20:27 +00:00

View File

@@ -44,6 +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;
// phpcs:disable Generic.PHP.DisallowRequestSuperglobal.Found
$_REQUEST = array_merge($_GET, $_POST);