mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-08-29 22:30:01 +02:00
Migrated phpunit annotations to attributes
This commit is contained in:
parent
f1d34bbc24
commit
dc480f755c
50 changed files with 171 additions and 246 deletions
|
@ -22,6 +22,8 @@ declare(strict_types=1);
|
|||
|
||||
namespace App\Tests\Services\ImportExportSystem;
|
||||
|
||||
use PHPUnit\Framework\Attributes\Group;
|
||||
use PHPUnit\Framework\Attributes\DataProvider;
|
||||
use App\Entity\Attachments\AttachmentContainingDBElement;
|
||||
use App\Entity\Attachments\AttachmentType;
|
||||
use App\Entity\LabelSystem\LabelProfile;
|
||||
|
@ -35,9 +37,7 @@ use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
|
|||
use Symfony\Component\Validator\ConstraintViolation;
|
||||
use Symfony\Component\Validator\ConstraintViolationListInterface;
|
||||
|
||||
/**
|
||||
* @group DB
|
||||
*/
|
||||
#[Group('DB')]
|
||||
class EntityImporterTest extends WebTestCase
|
||||
{
|
||||
/**
|
||||
|
@ -184,9 +184,7 @@ EOT;
|
|||
yield ['yaml', 'YAML'];
|
||||
}
|
||||
|
||||
/**
|
||||
* @dataProvider formatDataProvider
|
||||
*/
|
||||
#[DataProvider('formatDataProvider')]
|
||||
public function testDetermineFormat(string $expected, string $extension): void
|
||||
{
|
||||
$this->assertSame($expected, $this->service->determineFormat($extension));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue