SqliteCommandTest.php 502 Bytes
Newer Older
1 2 3
<?php
namespace yiiunit\framework\db\sqlite;

Alexander Makarov committed
4 5
use yiiunit\framework\db\CommandTest;

6 7 8 9
/**
 * @group db
 * @group sqlite
 */
Alexander Makarov committed
10
class SqliteCommandTest extends CommandTest
11
{
12
    protected $driverName = 'sqlite';
13

14 15 16
    public function testAutoQuoting()
    {
        $db = $this->getConnection(false);
17

18
        $sql = 'SELECT [[id]], [[t.name]] FROM {{customer}} t';
19
        $command = $db->createCommand($sql);
20
        $this->assertEquals("SELECT `id`, `t`.`name` FROM `customer` t", $command->sql);
21
    }
22
}