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
|
@ -41,6 +41,7 @@ declare(strict_types=1);
|
|||
|
||||
namespace App\Tests\Services\LabelSystem\PlaceholderProviders;
|
||||
|
||||
use PHPUnit\Framework\Attributes\DataProvider;
|
||||
use App\Entity\Base\AbstractDBElement;
|
||||
use App\Services\LabelSystem\PlaceholderProviders\AbstractDBElementProvider;
|
||||
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
|
||||
|
@ -68,9 +69,7 @@ class AbstractElementProviderTest extends WebTestCase
|
|||
yield ['123', '[[ID]]'];
|
||||
}
|
||||
|
||||
/**
|
||||
* @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