Browse Source

Test for bug dbTypecast with empty char #11548

ar-bug
Oleg Balykin 8 years ago committed by Alexander Makarov
parent
commit
515732c7b8
  1. 25
      tests/framework/db/ColumnSchemaTest.php

25
tests/framework/db/ColumnSchemaTest.php

@ -0,0 +1,25 @@
<?php
/**
* @link http://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license http://www.yiiframework.com/license/
*/
namespace yiiunit\framework\db;
use yii\db\ColumnSchema;
use yii\db\Schema;
use yiiunit\TestCase;
/**
* ColumnSchemaTest tests ColumnSchema
*/
class ColumnSchemaTest extends TestCase
{
public function testDbTypecastWithEmptyCharType()
{
$columnSchema = new ColumnSchema(['type' => Schema::TYPE_CHAR]);
$this->assertSame('', $columnSchema->dbTypecast(''));
}
}
Loading…
Cancel
Save