From 77c9e39d6db32348e752a1a04c8363808e99130b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20B=C3=BCrk?= Date: Tue, 13 Aug 2024 09:51:20 +0200 Subject: [PATCH 1/2] [TASK] Ensure calling `parent::setUp()` in function test This change modifies the existing functional test and adds the `parent::setUp()` method call to ensure a working functional test instance. --- Tests/Functional/Utility/FileUtilityTest.php | 1 + 1 file changed, 1 insertion(+) diff --git a/Tests/Functional/Utility/FileUtilityTest.php b/Tests/Functional/Utility/FileUtilityTest.php index 3b5ec86..9ccb3b8 100644 --- a/Tests/Functional/Utility/FileUtilityTest.php +++ b/Tests/Functional/Utility/FileUtilityTest.php @@ -36,6 +36,7 @@ class FileUtilityTest extends FunctionalTestCase public function setUp(): void { + parent::setUp(); try { // $this->setUpBackendUserFromFixture(1); $this->subject = GeneralUtility::makeInstance(FileUtility::class); From 6bf5d7c54c9cbe1d1cb5579c094db28dec6d7aa8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20B=C3=BCrk?= Date: Tue, 13 Aug 2024 09:53:59 +0200 Subject: [PATCH 2/2] [TASK] Use test namespaces matching folder structure This change modifies the unit and functional tests to reflect the test folder structure within the php namespaces. --- Tests/Functional/Utility/FileUtilityTest.php | 2 +- Tests/Unit/Domain/Model/Dto/CallContextTest.php | 2 +- Tests/Unit/Utility/ConnectorUtilityTest.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Tests/Functional/Utility/FileUtilityTest.php b/Tests/Functional/Utility/FileUtilityTest.php index 9ccb3b8..f510ae1 100644 --- a/Tests/Functional/Utility/FileUtilityTest.php +++ b/Tests/Functional/Utility/FileUtilityTest.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Cobweb\Svconnector\Tests\Utility; +namespace Cobweb\Svconnector\Tests\Functional\Utility; /* * This file is part of the TYPO3 CMS project. diff --git a/Tests/Unit/Domain/Model/Dto/CallContextTest.php b/Tests/Unit/Domain/Model/Dto/CallContextTest.php index 0b110a7..40a7dce 100644 --- a/Tests/Unit/Domain/Model/Dto/CallContextTest.php +++ b/Tests/Unit/Domain/Model/Dto/CallContextTest.php @@ -15,7 +15,7 @@ * The TYPO3 project - inspiring people to share! */ -namespace Cobweb\Svconnector\Tests\Domain\Model\Dto; +namespace Cobweb\Svconnector\Tests\Unit\Domain\Model\Dto; use Cobweb\Svconnector\Domain\Model\Dto\CallContext; use Cobweb\Svconnector\Exception\NoSuchContextException; diff --git a/Tests/Unit/Utility/ConnectorUtilityTest.php b/Tests/Unit/Utility/ConnectorUtilityTest.php index 174e53d..fd46ad1 100644 --- a/Tests/Unit/Utility/ConnectorUtilityTest.php +++ b/Tests/Unit/Utility/ConnectorUtilityTest.php @@ -15,7 +15,7 @@ * The TYPO3 project - inspiring people to share! */ -namespace Cobweb\Svconnector\Tests\Utility; +namespace Cobweb\Svconnector\Tests\Unit\Utility; use Cobweb\Svconnector\Exception\EmptySourceException; use Cobweb\Svconnector\Exception\InvalidSourceException;