SqliteSchemaTest.php 961 Bytes
Newer Older
Carsten Brandt committed
1 2 3 4 5
<?php
namespace yiiunit\framework\db\sqlite;

use yiiunit\framework\db\SchemaTest;

6 7 8 9
/**
 * @group db
 * @group sqlite
 */
Carsten Brandt committed
10 11
class SqliteSchemaTest extends SchemaTest
{
12
    protected $driverName = 'sqlite';
13 14 15 16 17

    public function getExpectedColumns()
    {
        $columns = parent::getExpectedColumns();
        unset($columns['enum_col']);
18
        unset($columns['bit_col']);
19 20 21 22 23 24 25 26 27 28 29 30 31 32
        $columns['int_col']['dbType'] = 'integer';
        $columns['int_col']['size'] = null;
        $columns['int_col']['precision'] = null;
        $columns['int_col2']['dbType'] = 'integer';
        $columns['int_col2']['size'] = null;
        $columns['int_col2']['precision'] = null;
        $columns['bool_col']['type'] = 'boolean';
        $columns['bool_col']['phpType'] = 'boolean';
        $columns['bool_col2']['type'] = 'boolean';
        $columns['bool_col2']['phpType'] = 'boolean';
        $columns['bool_col2']['defaultValue'] = true;
        return $columns;
    }

Carsten Brandt committed
33
}