diff options
author | Mario <mario@mariovavti.com> | 2024-05-27 06:17:05 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2024-05-27 06:17:05 +0000 |
commit | 84abf28ceca3632c22983f23326297c17b994224 (patch) | |
tree | fcc58ecd7ad3c9f9768c168d5a15f557545a52ad /tests/unit/Module | |
parent | a10402a7883efd4886ad17c8133c10237f443181 (diff) | |
parent | cad82d12d2aad1a54fa821061dd3dc1ffc732c5a (diff) | |
download | volse-hubzilla-84abf28ceca3632c22983f23326297c17b994224.tar.gz volse-hubzilla-84abf28ceca3632c22983f23326297c17b994224.tar.bz2 volse-hubzilla-84abf28ceca3632c22983f23326297c17b994224.zip |
Merge branch 'update-phpunit-10x' into 'dev'
Upgrade test framework to PHPUnit 10.5
See merge request hubzilla/core!2128
Diffstat (limited to 'tests/unit/Module')
-rw-r--r-- | tests/unit/Module/HelpTest.php | 2 | ||||
-rw-r--r-- | tests/unit/Module/SetupTest.php | 4 | ||||
-rw-r--r-- | tests/unit/Module/TestCase.php | 1 |
3 files changed, 5 insertions, 2 deletions
diff --git a/tests/unit/Module/HelpTest.php b/tests/unit/Module/HelpTest.php index 3fb7687d3..c345d5e52 100644 --- a/tests/unit/Module/HelpTest.php +++ b/tests/unit/Module/HelpTest.php @@ -52,7 +52,7 @@ class HelpTest extends \Zotlabs\Tests\Unit\Module\TestCase { $fgc_stub = $this->getFunctionMock('Zotlabs\Module', 'file_get_contents'); $fgc_stub ->expects($this->once()) - ->willReturn($this->returnValueMap($file_content_map)); + ->willReturnMap($file_content_map); $this->get("help/about/help_topic"); diff --git a/tests/unit/Module/SetupTest.php b/tests/unit/Module/SetupTest.php index 96a5ef932..3575dd477 100644 --- a/tests/unit/Module/SetupTest.php +++ b/tests/unit/Module/SetupTest.php @@ -6,6 +6,8 @@ * SPDX-License-Identifier: MIT */ +namespace Zotlabs\Tests\Unit\Module; + /** * SetupModuleTest * @@ -16,7 +18,7 @@ * This is a complex module, so expect the tests to grow as more of it will be * covered. */ -class SetupModuleTest extends \Zotlabs\Tests\Unit\Module\TestCase { +class SetupTest extends TestCase { public function test_that_setup_is_available_if_no_accounts_in_db(): void { $this->with_no_accounts_in_db(); diff --git a/tests/unit/Module/TestCase.php b/tests/unit/Module/TestCase.php index 5ad213e81..e7051e001 100644 --- a/tests/unit/Module/TestCase.php +++ b/tests/unit/Module/TestCase.php @@ -24,6 +24,7 @@ class TestCase extends \Zotlabs\Tests\Unit\UnitTestCase { } $_SERVER['REQUEST_METHOD'] = 'GET'; + $_SERVER['SERVER_PROTOCOL'] = 'HTTP/1.1'; $_REQUEST = $_GET; \App::init(); |