Phalcon\Test\Unit\Db\Dialect\PostgresqlTest::testAddPrimaryKey PHP Метод

testAddPrimaryKey() публичный Метод

Tests Postgresql::addPrimaryKey
С версии: 2016-09-30
Автор: Serghei Iakovlev ([email protected])
public testAddPrimaryKey ( )
    public function testAddPrimaryKey()
    {
        $this->specify('The SQL generated to add the primary key to a table is incorrect', function ($schema, $index, $expected) {
            $dialect = new Postgresql();
            $indexes = $this->getIndexes();
            expect($dialect->addPrimaryKey('table', $schema, $indexes[$index]))->equals($expected);
        }, ['examples' => $this->getAddPrimaryKey()]);
    }