packages/sql-semantics-sqlite/tests/Unit/Model/Statement/Declaration/RelationKindTest.php

1<?php
2
3declare(strict_types=1);
4
5namespace Tests\Unit\Model\Statement\Declaration;
6
7use PHPUnit\Framework\Attributes\CoversClass;
8use PHPUnit\Framework\Attributes\Small;
9use PHPUnit\Framework\TestCase;
10use SqlSemantics\Platform\Sqlite\Model\Statement\Declaration\RelationKind;
11
12#[CoversClass(RelationKind::class)]
13#[Small]
14final class RelationKindTest extends TestCase
15{
16    public function testEveryKindOfRelationIsACase(): void
17    {
18        self::assertSame(['BaseTable', 'View', 'MaterializedView', 'ForeignTable', 'Sequence'], array_map(static fn (RelationKind $kind): string => $kind->name, RelationKind::cases()));
19    }
20}
21