packages/sql-semantics-postgres/tests/Unit/Statement/Manipulation/Problem/ManipulationMisuseTest.php
1<?php
2
3declare(strict_types=1);
4
5namespace Tests\Unit\Statement\Manipulation\Problem;
6
7use PHPUnit\Framework\Attributes\CoversClass;
8use PHPUnit\Framework\Attributes\Small;
9use PHPUnit\Framework\TestCase;
10
11#[CoversClass(\SqlSemantics\Platform\PostgreSql\Statement\Manipulation\Problem\ManipulationMisuse::class)]
12#[Small]
13final class ManipulationMisuseTest extends TestCase
14{
15 public function testMessageFillsTheSubjectsInOrder(): void
16 {
17 self::assertSame('column "x" of relation "t" does not exist', (new \SqlSemantics\Platform\PostgreSql\Statement\Manipulation\Problem\ManipulationMisuse(\SqlSemantics\Platform\PostgreSql\Statement\Manipulation\Problem\ManipulationMisuseRule::UnknownTargetColumn, 'x', 't'))->message());
18 }
19}
20