Merge branch 'minor-test-improvements' into 'dev'

tests: Make addonname/tests base addon tests dir

See merge request hubzilla/core!2250
This commit is contained in:
Mario
2026-01-15 10:53:57 +00:00
2 changed files with 5 additions and 5 deletions

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);