mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-08-30 14:49:55 +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
|
@ -41,6 +41,7 @@ declare(strict_types=1);
|
|||
|
||||
namespace App\Tests\Services\LabelSystem\PlaceholderProviders;
|
||||
|
||||
use PHPUnit\Framework\Attributes\DataProvider;
|
||||
use App\Entity\Contracts\NamedElementInterface;
|
||||
use App\Services\LabelSystem\PlaceholderProviders\NamedElementProvider;
|
||||
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
|
||||
|
@ -71,9 +72,7 @@ class NamedElementProviderTest extends WebTestCase
|
|||
yield ['This is my Name', '[[NAME]]'];
|
||||
}
|
||||
|
||||
/**
|
||||
* @dataProvider dataProvider
|
||||
*/
|
||||
#[DataProvider('dataProvider')]
|
||||
public function testReplace(string $expected, string $placeholder): void
|
||||
{
|
||||
$this->assertSame($expected, $this->service->replace($placeholder, $this->target));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue