Yii2 framework backup
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
872 B

<?php
namespace yiiunit\framework\db\cubrid;
use yii\db\cubrid\ColumnSchemaBuilder;
use yii\db\Schema;
/**
* ColumnSchemaBuilderTest tests ColumnSchemaBuilder for Cubrid
* @group db
* @group cubrid
*/
class ColumnSchemaBuilderTest extends \yiiunit\framework\db\ColumnSchemaBuilderTest
{
/**
* @param string $type
* @param integer $length
* @return ColumnSchemaBuilder
*/
public function getColumnSchemaBuilder($type, $length = null)
{
return new ColumnSchemaBuilder($type, $length);
}
/**
* @return array
*/
public function typesProvider()
{
return [
['integer UNSIGNED', Schema::TYPE_INTEGER, null, [
['unsigned'],
]],
['integer(10) UNSIGNED', Schema::TYPE_INTEGER, 10, [
['unsigned'],
]],
];
}
}