diff --git a/.github/workflows/testcore12.yml b/.github/workflows/testcore12.yml index c4050478..522f2bd1 100644 --- a/.github/workflows/testcore12.yml +++ b/.github/workflows/testcore12.yml @@ -53,7 +53,7 @@ jobs: run: "Build/Scripts/runTests.sh -t 12 -p ${{ matrix.php-version }} -s lintPhp" - name: "Validate CGL" - run: "Build/Scripts/runTests.sh -t 12 -p ${{ matrix.php-version }} -s cgl" + run: "Build/Scripts/runTests.sh -t 12 -p ${{ matrix.php-version }} -s cgl -n" - name: "Ensure tests methods do not start with \"test\"" run: "Build/Scripts/runTests.sh -t 12 -p ${{ matrix.php-version }} -s checkTestMethodsPrefix" diff --git a/Tests/Functional/AbstractDeepLTestCase.php b/Tests/Functional/AbstractDeepLTestCase.php index b7247fa6..c2222129 100644 --- a/Tests/Functional/AbstractDeepLTestCase.php +++ b/Tests/Functional/AbstractDeepLTestCase.php @@ -4,14 +4,14 @@ namespace WebVision\Deepltranslate\Core\Tests\Functional; -use RuntimeException; use Closure; -use Exception; use DeepL\Translator; use DeepL\TranslatorOptions; +use Exception; use phpmock\phpunit\PHPMock; use Psr\Log\NullLogger; use Ramsey\Uuid\Uuid; +use RuntimeException; use Symfony\Component\DependencyInjection\Container; use TYPO3\CMS\Core\Utility\StringUtility; use TYPO3\TestingFramework\Core\Functional\FunctionalTestCase; diff --git a/Tests/Functional/ClientTest.php b/Tests/Functional/ClientTest.php index f73bdc2f..39c6d7d6 100644 --- a/Tests/Functional/ClientTest.php +++ b/Tests/Functional/ClientTest.php @@ -4,9 +4,6 @@ namespace WebVision\Deepltranslate\Core\Tests\Functional; -use PHPUnit\Framework\Attributes\CoversClass; -use WebVision\Deepltranslate\Core\Client; -use PHPUnit\Framework\Attributes\Test; use DateTime; use DeepL\GlossaryEntries; use DeepL\GlossaryInfo; @@ -14,6 +11,9 @@ use DeepL\Language; use DeepL\TextResult; use Helmich\JsonAssert\JsonAssertions; +use PHPUnit\Framework\Attributes\CoversClass; +use PHPUnit\Framework\Attributes\Test; +use WebVision\Deepltranslate\Core\Client; use WebVision\Deepltranslate\Core\ClientInterface; #[CoversClass(Client::class)] diff --git a/Tests/Functional/Services/DeeplServiceTest.php b/Tests/Functional/Services/DeeplServiceTest.php index a656b053..b93bfe90 100644 --- a/Tests/Functional/Services/DeeplServiceTest.php +++ b/Tests/Functional/Services/DeeplServiceTest.php @@ -4,9 +4,9 @@ namespace WebVision\Deepltranslate\Core\Tests\Functional\Services; +use DeepL\Language; use PHPUnit\Framework\Attributes\CoversClass; use PHPUnit\Framework\Attributes\Test; -use DeepL\Language; use WebVision\Deepltranslate\Core\Domain\Dto\TranslateContext; use WebVision\Deepltranslate\Core\Service\DeeplService; use WebVision\Deepltranslate\Core\Service\ProcessingInstruction; diff --git a/Tests/Functional/Services/UsageServiceTest.php b/Tests/Functional/Services/UsageServiceTest.php index ec72e9a9..db040d91 100644 --- a/Tests/Functional/Services/UsageServiceTest.php +++ b/Tests/Functional/Services/UsageServiceTest.php @@ -4,9 +4,9 @@ namespace WebVision\Deepltranslate\Core\Tests\Functional\Services; -use PHPUnit\Framework\Attributes\Test; use DeepL\Usage; use DeepL\UsageDetail; +use PHPUnit\Framework\Attributes\Test; use WebVision\Deepltranslate\Core\Service\DeeplService; use WebVision\Deepltranslate\Core\Service\ProcessingInstruction; use WebVision\Deepltranslate\Core\Service\UsageService;