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

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

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