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

testDropForeignKey() public method

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