packages/sql-semantics-postgres/tests/Unit/Lowering/Catalog/SubscriptionRuleTest.php

1<?php
2
3declare(strict_types=1);
4
5namespace Tests\Unit\Lowering\Catalog;
6
7use PHPUnit\Framework\Attributes\CoversClass;
8use PHPUnit\Framework\Attributes\Medium;
9use PHPUnit\Framework\TestCase;
10
11#[CoversClass(\SqlSemantics\Platform\PostgreSql\Lowering\Catalog\SubscriptionRule::class)]
12#[Medium]
13final class SubscriptionRuleTest extends TestCase
14{
15    public function testStatementLowersEveryForm(): void
16    {
17        self::assertSame('ALTER SUBSCRIPTION s ADD PUBLICATION p WITH (refresh = FALSE)', (new \SqlSemantics\Platform\PostgreSql\Semantics())->analyze('ALTER SUBSCRIPTION s ADD PUBLICATION p WITH (refresh = false)')->toString());
18    }
19}
20