Fixed phpunit deprecations

This commit is contained in:
Jan Böhmer 2025-11-30 14:45:40 +01:00
parent 171508fcad
commit 4eac63b683
3 changed files with 10 additions and 13 deletions

View file

@ -30,13 +30,12 @@ use App\Services\InfoProviderSystem\DTOs\BulkSearchPartResultDTO;
use App\Services\InfoProviderSystem\DTOs\BulkSearchPartResultsDTO; use App\Services\InfoProviderSystem\DTOs\BulkSearchPartResultsDTO;
use App\Services\InfoProviderSystem\DTOs\BulkSearchResponseDTO; use App\Services\InfoProviderSystem\DTOs\BulkSearchResponseDTO;
use App\Services\InfoProviderSystem\DTOs\SearchResultDTO; use App\Services\InfoProviderSystem\DTOs\SearchResultDTO;
use PHPUnit\Framework\Attributes\Group;
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase; use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpFoundation\Response;
/** #[Group("slow")]
* @group slow #[Group("DB")]
* @group DB
*/
class BulkInfoProviderImportControllerTest extends WebTestCase class BulkInfoProviderImportControllerTest extends WebTestCase
{ {
public function testStep1WithoutIds(): void public function testStep1WithoutIds(): void

View file

@ -32,13 +32,12 @@ use App\Entity\Parts\StorageLocation;
use App\Entity\Parts\Supplier; use App\Entity\Parts\Supplier;
use App\Entity\UserSystem\User; use App\Entity\UserSystem\User;
use App\Services\InfoProviderSystem\DTOs\BulkSearchResponseDTO; use App\Services\InfoProviderSystem\DTOs\BulkSearchResponseDTO;
use PHPUnit\Framework\Attributes\Group;
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase; use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpFoundation\Response;
/** #[Group("slow")]
* @group slow #[Group("DB")]
* @group DB
*/
class PartControllerTest extends WebTestCase class PartControllerTest extends WebTestCase
{ {
public function testShowPart(): void public function testShowPart(): void

View file

@ -23,13 +23,12 @@ declare(strict_types=1);
namespace App\Tests\Form\InfoProviderSystem; namespace App\Tests\Form\InfoProviderSystem;
use App\Form\InfoProviderSystem\GlobalFieldMappingType; use App\Form\InfoProviderSystem\GlobalFieldMappingType;
use PHPUnit\Framework\Attributes\Group;
use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase; use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;
use Symfony\Component\Form\FormFactoryInterface; use Symfony\Component\Form\FormFactoryInterface;
/** #[Group("slow")]
* @group slow #[Group("DB")]
* @group DB
*/
class GlobalFieldMappingTypeTest extends KernelTestCase class GlobalFieldMappingTypeTest extends KernelTestCase
{ {
private FormFactoryInterface $formFactory; private FormFactoryInterface $formFactory;