SqliteCommandTest.php 478 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 20 21
		$sql = 'SELECT [[id]], [[t.name]] FROM {{tbl_customer}} t';
		$command = $db->createCommand($sql);
		$this->assertEquals("SELECT \"id\", 't'.\"name\" FROM 'tbl_customer' t", $command->sql);
	}
22
}