mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-08-29 14:28:42 +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\Parameters;
|
||||
|
||||
use PHPUnit\Framework\Attributes\DataProvider;
|
||||
use App\Entity\Parameters\AbstractParameter;
|
||||
use App\Services\Parameters\ParameterExtractor;
|
||||
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
|
||||
|
@ -69,9 +70,7 @@ class ParameterExtractorTest extends WebTestCase
|
|||
yield ['A [link](https://demo.part-db.de) should not be matched'];
|
||||
}
|
||||
|
||||
/**
|
||||
* @dataProvider emptyDataProvider
|
||||
*/
|
||||
#[DataProvider('emptyDataProvider')]
|
||||
public function testShouldReturnEmpty(string $input): void
|
||||
{
|
||||
$this->assertEmpty($this->service->extractParameters($input));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue