Phalcon\Test\Unit\Db\Dialect\PostgresqlTest::testViewExists PHP Method

testViewExists() public method

Tests Postgresql::viewExists
Since: 2016-10-02
Author: Wojciech Ĺšlawski ([email protected])
public testViewExists ( )
    public function testViewExists()
    {
        $this->specify('The SQL generated to check existence of view is incorrect', function ($schema, $expected) {
            $dialect = new Postgresql();
            expect($dialect->viewExists('view', $schema))->equals($expected);
        }, ['examples' => $this->getViewExists()]);
    }