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

testAddIndex() public method

Tests Postgresql::addIndex
Since: 2016-09-30
Author: 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()]);
    }