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

testDropPrimaryKey() public method

Tests Postgresql::dropPrimaryKey
Since: 2016-09-30
Author: Serghei Iakovlev ([email protected])
public testDropPrimaryKey ( )
    public function testDropPrimaryKey()
    {
        $this->specify('The SQL generated to delete primary key from a table is incorrect', function ($schema, $expected) {
            $dialect = new Postgresql();
            expect($dialect->dropPrimaryKey('table', $schema))->equals($expected);
        }, ['examples' => $this->getDropPrimaryKey()]);
    }