Skip to content

Commit 4eac63b

Browse files
committed
Fixed phpunit deprecations
1 parent 171508f commit 4eac63b

File tree

3 files changed

+10
-13
lines changed

3 files changed

+10
-13
lines changed

tests/Controller/BulkInfoProviderImportControllerTest.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,12 @@
3030
use App\Services\InfoProviderSystem\DTOs\BulkSearchPartResultsDTO;
3131
use App\Services\InfoProviderSystem\DTOs\BulkSearchResponseDTO;
3232
use App\Services\InfoProviderSystem\DTOs\SearchResultDTO;
33+
use PHPUnit\Framework\Attributes\Group;
3334
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
3435
use Symfony\Component\HttpFoundation\Response;
3536

36-
/**
37-
* @group slow
38-
* @group DB
39-
*/
37+
#[Group("slow")]
38+
#[Group("DB")]
4039
class BulkInfoProviderImportControllerTest extends WebTestCase
4140
{
4241
public function testStep1WithoutIds(): void

tests/Controller/PartControllerTest.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,12 @@
3232
use App\Entity\Parts\Supplier;
3333
use App\Entity\UserSystem\User;
3434
use App\Services\InfoProviderSystem\DTOs\BulkSearchResponseDTO;
35+
use PHPUnit\Framework\Attributes\Group;
3536
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
3637
use Symfony\Component\HttpFoundation\Response;
3738

38-
/**
39-
* @group slow
40-
* @group DB
41-
*/
39+
#[Group("slow")]
40+
#[Group("DB")]
4241
class PartControllerTest extends WebTestCase
4342
{
4443
public function testShowPart(): void

tests/Form/InfoProviderSystem/GlobalFieldMappingTypeTest.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,12 @@
2323
namespace App\Tests\Form\InfoProviderSystem;
2424

2525
use App\Form\InfoProviderSystem\GlobalFieldMappingType;
26+
use PHPUnit\Framework\Attributes\Group;
2627
use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;
2728
use Symfony\Component\Form\FormFactoryInterface;
2829

29-
/**
30-
* @group slow
31-
* @group DB
32-
*/
30+
#[Group("slow")]
31+
#[Group("DB")]
3332
class GlobalFieldMappingTypeTest extends KernelTestCase
3433
{
3534
private FormFactoryInterface $formFactory;
@@ -65,4 +64,4 @@ public function testFormOptions(): void
6564
$view = $form->createView();
6665
$this->assertFalse($view['prefetch_details']->vars['required']);
6766
}
68-
}
67+
}

0 commit comments

Comments
 (0)