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

testCreateView() public method

Tests Postgresql::createView
Since: 2016-09-30
Author: Serghei Iakovlev ([email protected])
public testCreateView ( )
    public function testCreateView()
    {
        $this->specify('The SQL generated to create a view is incorrect', function ($definition, $schema, $expected) {
            $dialect = new Postgresql();
            expect($dialect->createView('test_view', $definition, $schema))->equals($expected);
        }, ['examples' => $this->getCreateView()]);
    }