Merge branch 'methods_for_schema_builder' of https://github.com/vaseninm/yii2 into vaseninm-methods_for_schema_builder

This commit is contained in:
SilverFire - Dmitry Naumenko
2016-04-19 12:21:33 +03:00
22 changed files with 811 additions and 2 deletions

View File

@@ -31,6 +31,30 @@ class SqliteQueryBuilderTest extends QueryBuilderTest
parent::testAddDropPrimaryKey();
}
public function testCommentOnColumnSchemaBuilder()
{
$this->setExpectedException('yii\base\NotSupportedException');
$this->string()->comment('comment');
}
public function testCommentColumn()
{
$qb = $this->getQueryBuilder();
$this->setExpectedException('yii\base\NotSupportedException');
$qb->addCommentOnColumn('comment', 'text', 'This is my column.');
$qb->dropCommentFromColumn('comment', 'text');
}
public function testCommentTable()
{
$qb = $this->getQueryBuilder();
$this->setExpectedException('yii\base\NotSupportedException');
$qb->addCommentOnTable('comment', 'This is my table.');
$qb->dropCommentFromTable('comment');
}
public function testBatchInsert()
{
$db = $this->getConnection();