SqliteCommandTest.php 474 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
{
Carsten Brandt committed
12
	protected $driverName = 'sqlite';
13

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

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