mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-12-06 11:09:29 +00:00
Fixed phpunit deprecations
This commit is contained in:
parent
171508fcad
commit
4eac63b683
3 changed files with 10 additions and 13 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue