packages/sql-semantics-mysql/tests/Unit/Statement/Dml/Insert/InsertPriorityTest.php

1<?php
2
3declare(strict_types=1);
4
5namespace Tests\Unit\Statement\Dml\Insert;
6
7use PHPUnit\Framework\Attributes\CoversClass;
8use PHPUnit\Framework\Attributes\Small;
9use PHPUnit\Framework\TestCase;
10use SqlSemantics\Platform\MySql\Statement\Dml\Insert\InsertPriority;
11
12#[CoversClass(InsertPriority::class)]
13#[Small]
14final class InsertPriorityTest extends TestCase
15{
16    public function testCasesHoldTheirKeywords(): void
17    {
18        self::assertSame(['LOW_PRIORITY', 'DELAYED', 'HIGH_PRIORITY'], array_map(static fn (InsertPriority $priority): string => $priority->value, InsertPriority::cases()));
19    }
20}
21