mirror of
https://framagit.org/hubzilla/core.git
synced 2026-06-21 00:52:33 -04:00
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:
@@ -15,13 +15,13 @@
|
||||
<directory suffix="Test.php">./unit/</directory>
|
||||
</testsuite>
|
||||
<testsuite name="Hubzilla addons unit tests">
|
||||
<directory suffix="Test.php">../extend/addon/*/*/tests/unit/</directory>
|
||||
<directory suffix="Test.php">../extend/addon/*/*/tests/</directory>
|
||||
</testsuite>
|
||||
<testsuite name="Hubzilla themes unit tests">
|
||||
<directory suffix="Test.php">../extend/theme/*/*/tests/unit/</directory>
|
||||
<directory suffix="Test.php">../extend/theme/*/*/tests/</directory>
|
||||
</testsuite>
|
||||
<testsuite name="Hubzilla widgets unit tests">
|
||||
<directory suffix="Test.php">../extend/widget/*/*/tests/unit/</directory>
|
||||
<directory suffix="Test.php">../extend/widget/*/*/tests/</directory>
|
||||
</testsuite>
|
||||
</testsuites>
|
||||
<source>
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user