mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-15 13:58:24 +08:00
Merge branch 'methods_for_schema_builder' of https://github.com/vaseninm/yii2 into vaseninm-methods_for_schema_builder
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user