mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-06-27 21:11:34 +00:00
Moved from phpunit annotation to attribute
This commit is contained in:
parent
eb7da91c44
commit
9c919a9be9
1 changed files with 2 additions and 3 deletions
|
|
@ -26,6 +26,7 @@ use App\Doctrine\Functions\SiValueSort;
|
||||||
use Doctrine\DBAL\Platforms\MySQLPlatform;
|
use Doctrine\DBAL\Platforms\MySQLPlatform;
|
||||||
use Doctrine\DBAL\Platforms\PostgreSQLPlatform;
|
use Doctrine\DBAL\Platforms\PostgreSQLPlatform;
|
||||||
use Doctrine\DBAL\Platforms\SQLitePlatform;
|
use Doctrine\DBAL\Platforms\SQLitePlatform;
|
||||||
|
use PHPUnit\Framework\Attributes\DataProvider;
|
||||||
|
|
||||||
final class SiValueSortTest extends AbstractDoctrineFunctionTestCase
|
final class SiValueSortTest extends AbstractDoctrineFunctionTestCase
|
||||||
{
|
{
|
||||||
|
|
@ -71,9 +72,7 @@ final class SiValueSortTest extends AbstractDoctrineFunctionTestCase
|
||||||
$this->assertSame('SI_VALUE(part_name)', $sql);
|
$this->assertSame('SI_VALUE(part_name)', $sql);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
#[DataProvider('sqliteSiValueProvider')]
|
||||||
* @dataProvider sqliteSiValueProvider
|
|
||||||
*/
|
|
||||||
public function testSqliteSiValue(?string $input, ?float $expected): void
|
public function testSqliteSiValue(?string $input, ?float $expected): void
|
||||||
{
|
{
|
||||||
$result = SiValueSort::sqliteSiValue($input);
|
$result = SiValueSort::sqliteSiValue($input);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue