Files
yii2/tests/framework/db/sqlite/CommandTest.php
Carsten Brandt 8ba032d147 refactored database tests
- changed test class naming for easier copying and searching of classes
- made base tests abstract and made MySQL an equal citisen in the test
  hierarchie
- added missing db specific test classes
2016-06-20 19:26:43 +02:00

22 lines
480 B
PHP

<?php
namespace yiiunit\framework\db\sqlite;
/**
* @group db
* @group sqlite
*/
class CommandTest extends \yiiunit\framework\db\CommandTest
{
protected $driverName = 'sqlite';
public function testAutoQuoting()
{
$db = $this->getConnection(false);
$sql = 'SELECT [[id]], [[t.name]] FROM {{customer}} t';
$command = $db->createCommand($sql);
$this->assertEquals("SELECT `id`, `t`.`name` FROM `customer` t", $command->sql);
}
}