packages/sql-semantics-sqlite/tests/Unit/Statement/Schema/AbsentRelationTest.php

1<?php
2
3declare(strict_types=1);
4
5namespace Tests\Unit\Statement\Schema;
6
7use PHPUnit\Framework\Attributes\CoversClass;
8use PHPUnit\Framework\Attributes\Small;
9use PHPUnit\Framework\TestCase;
10use SqlSemantics\Platform\Sqlite\Model\Statement\Identifier\Name;
11use SqlSemantics\Platform\Sqlite\Model\Statement\Identifier\QualifiedName;
12use SqlSemantics\Platform\Sqlite\Statement\Schema\AbsentRelation;
13
14#[CoversClass(AbsentRelation::class)]
15#[Small]
16final class AbsentRelationTest extends TestCase
17{
18    public function testNameIsTheNameTheStatementWrote(): void
19    {
20        $name = new QualifiedName(new Name('t'), new Name('main'));
21
22        self::assertSame($name, (new AbsentRelation($name))->name);
23    }
24}
25