From 75fee6784ee4cb3797e19f3c33026db70346f26d Mon Sep 17 00:00:00 2001 From: Art4 Date: Sun, 15 Dec 2024 16:13:53 +0000 Subject: [PATCH] Rename PConfigTest to PConfigTestCase --- .../Core/PConfig/PConfigTest.php => PConfigTestCase.php} | 5 ++--- tests/src/Core/PConfig/JitPConfigTest.php | 3 ++- tests/src/Core/PConfig/PreloadPConfigTest.php | 5 +++-- 3 files changed, 7 insertions(+), 6 deletions(-) rename tests/{src/Core/PConfig/PConfigTest.php => PConfigTestCase.php} (98%) diff --git a/tests/src/Core/PConfig/PConfigTest.php b/tests/PConfigTestCase.php similarity index 98% rename from tests/src/Core/PConfig/PConfigTest.php rename to tests/PConfigTestCase.php index 944f7e5ade..1e1bba4fb7 100644 --- a/tests/src/Core/PConfig/PConfigTest.php +++ b/tests/PConfigTestCase.php @@ -5,17 +5,16 @@ // // SPDX-License-Identifier: AGPL-3.0-or-later -namespace Friendica\Test\src\Core\PConfig; +namespace Friendica\Test; use DMS\PHPUnitExtensions\ArraySubset\ArraySubsetAsserts; use Friendica\Core\PConfig\Type\AbstractPConfigValues; use Friendica\Core\PConfig\Repository\PConfig as PConfigModel; use Friendica\Core\PConfig\ValueObject\Cache; -use Friendica\Test\MockedTestCase; use Mockery; use Mockery\MockInterface; -abstract class PConfigTest extends MockedTestCase +abstract class PConfigTestCase extends MockedTestCase { use ArraySubsetAsserts; diff --git a/tests/src/Core/PConfig/JitPConfigTest.php b/tests/src/Core/PConfig/JitPConfigTest.php index 0e906101ec..e452ffe92c 100644 --- a/tests/src/Core/PConfig/JitPConfigTest.php +++ b/tests/src/Core/PConfig/JitPConfigTest.php @@ -8,8 +8,9 @@ namespace Friendica\Test\src\Core\PConfig; use Friendica\Core\PConfig\Type\JitPConfig; +use Friendica\Test\PConfigTestCase; -class JitPConfigTest extends PConfigTest +class JitPConfigTest extends PConfigTestCase { public function getInstance() { diff --git a/tests/src/Core/PConfig/PreloadPConfigTest.php b/tests/src/Core/PConfig/PreloadPConfigTest.php index 7d10f294ac..a7cba04045 100644 --- a/tests/src/Core/PConfig/PreloadPConfigTest.php +++ b/tests/src/Core/PConfig/PreloadPConfigTest.php @@ -8,12 +8,13 @@ namespace Friendica\Test\src\Core\PConfig; use Friendica\Core\PConfig\Type\PreloadPConfig; +use Friendica\Test\PConfigTestCase; -class PreloadPConfigTest extends PConfigTest +class PreloadPConfigTest extends PConfigTestCase { public function getInstance() { - return new \Friendica\Core\PConfig\Type\PreloadPConfig($this->configCache, $this->configModel); + return new PreloadPConfig($this->configCache, $this->configModel); } /**