mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-12-23 19:39:31 +00: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,7 @@ declare(strict_types=1);
|
|||
*/
|
||||
namespace App\Tests\DataTables\Filters\Constraints;
|
||||
|
||||
use PHPUnit\Framework\Attributes\DataProvider;
|
||||
use App\DataTables\Filters\Constraints\FilterTrait;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
|
|
@ -48,9 +49,7 @@ class FilterTraitTest extends TestCase
|
|||
yield [true, 'MAX(attachments.value)'];
|
||||
}
|
||||
|
||||
/**
|
||||
* @dataProvider isAggregateFunctionStringDataProvider
|
||||
*/
|
||||
#[DataProvider('isAggregateFunctionStringDataProvider')]
|
||||
public function testIsAggregateFunctionString(bool $expected, string $input): void
|
||||
{
|
||||
$this->assertEquals($expected, $this->isAggregateFunctionString($input));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue