From 4eac63b6833fde3e7357845ab8081c5901e69521 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20B=C3=B6hmer?= Date: Sun, 30 Nov 2025 14:45:40 +0100 Subject: [PATCH] Fixed phpunit deprecations --- .../Controller/BulkInfoProviderImportControllerTest.php | 7 +++---- tests/Controller/PartControllerTest.php | 7 +++---- .../InfoProviderSystem/GlobalFieldMappingTypeTest.php | 9 ++++----- 3 files changed, 10 insertions(+), 13 deletions(-) diff --git a/tests/Controller/BulkInfoProviderImportControllerTest.php b/tests/Controller/BulkInfoProviderImportControllerTest.php index e71a5fa2..8961d23b 100644 --- a/tests/Controller/BulkInfoProviderImportControllerTest.php +++ b/tests/Controller/BulkInfoProviderImportControllerTest.php @@ -30,13 +30,12 @@ use App\Services\InfoProviderSystem\DTOs\BulkSearchPartResultDTO; use App\Services\InfoProviderSystem\DTOs\BulkSearchPartResultsDTO; use App\Services\InfoProviderSystem\DTOs\BulkSearchResponseDTO; use App\Services\InfoProviderSystem\DTOs\SearchResultDTO; +use PHPUnit\Framework\Attributes\Group; use Symfony\Bundle\FrameworkBundle\Test\WebTestCase; use Symfony\Component\HttpFoundation\Response; -/** - * @group slow - * @group DB - */ +#[Group("slow")] +#[Group("DB")] class BulkInfoProviderImportControllerTest extends WebTestCase { public function testStep1WithoutIds(): void diff --git a/tests/Controller/PartControllerTest.php b/tests/Controller/PartControllerTest.php index c47c62f8..8c9f3729 100644 --- a/tests/Controller/PartControllerTest.php +++ b/tests/Controller/PartControllerTest.php @@ -32,13 +32,12 @@ use App\Entity\Parts\StorageLocation; use App\Entity\Parts\Supplier; use App\Entity\UserSystem\User; use App\Services\InfoProviderSystem\DTOs\BulkSearchResponseDTO; +use PHPUnit\Framework\Attributes\Group; use Symfony\Bundle\FrameworkBundle\Test\WebTestCase; use Symfony\Component\HttpFoundation\Response; -/** - * @group slow - * @group DB - */ +#[Group("slow")] +#[Group("DB")] class PartControllerTest extends WebTestCase { public function testShowPart(): void diff --git a/tests/Form/InfoProviderSystem/GlobalFieldMappingTypeTest.php b/tests/Form/InfoProviderSystem/GlobalFieldMappingTypeTest.php index 52e0b1d2..89e362e4 100644 --- a/tests/Form/InfoProviderSystem/GlobalFieldMappingTypeTest.php +++ b/tests/Form/InfoProviderSystem/GlobalFieldMappingTypeTest.php @@ -23,13 +23,12 @@ declare(strict_types=1); namespace App\Tests\Form\InfoProviderSystem; use App\Form\InfoProviderSystem\GlobalFieldMappingType; +use PHPUnit\Framework\Attributes\Group; use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase; use Symfony\Component\Form\FormFactoryInterface; -/** - * @group slow - * @group DB - */ +#[Group("slow")] +#[Group("DB")] class GlobalFieldMappingTypeTest extends KernelTestCase { private FormFactoryInterface $formFactory; @@ -65,4 +64,4 @@ class GlobalFieldMappingTypeTest extends KernelTestCase $view = $form->createView(); $this->assertFalse($view['prefetch_details']->vars['required']); } -} \ No newline at end of file +}