Run common batch insert tests for SQLite

This commit is contained in:
octicon-git-branch(16/)
octicon-tag(16/)
Alexander Makarov
2017-01-28 14:41:57 +03:00
gitea-unlock(16/)
parent 920877c815
commit 1cc327f108

9
tests/framework/db/sqlite/QueryBuilderTest.php
View File

@@ -59,7 +59,14 @@ class QueryBuilderTest extends \yiiunit\framework\db\QueryBuilderTest
$this->markTestSkipped('Comments are not supported in SQLite');
}
public function testBatchInsert()
public function batchInsertProvider()
{
$data = parent::batchInsertProvider();
$data['escape-danger-chars']['expected'] = "INSERT INTO `customer` (`address`) VALUES ('SQL-danger chars are escaped: ''); --')";
return $data;
}
public function testBatchInsertOnOlderVersions()
{
$db = $this->getConnection();
if (version_compare($db->pdo->getAttribute(\PDO::ATTR_SERVER_VERSION), '3.7.11', '>=')) {