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

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

class SqliteCommandTest extends CommandTest
7
{
Carsten Brandt committed
8
	protected $driverName = 'sqlite';
9

Alexander Makarov committed
10 11 12
	public function testAutoQuoting()
	{
		$db = $this->getConnection(false);
13

Alexander Makarov committed
14 15 16 17
		$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);
	}
18
}