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

1<?php
2
3declare(strict_types=1);
4
5namespace Tests\Unit\Statement\Schema\Problem;
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\Statement\Lexical\Word;
12use SqlSemantics\Platform\Sqlite\Statement\Schema\Problem\UnknownStorage;
13
14#[CoversClass(UnknownStorage::class)]
15#[Small]
16final class UnknownStorageTest extends TestCase
17{
18    public function testMessageSpellsTheWordAsWritten(): void
19    {
20        self::assertSame('Generated column storage PERSISTED is neither VIRTUAL nor STORED.', (new UnknownStorage(new Word(new Name('PERSISTED'))))->message());
21    }
22}
23