mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-15 01:09:57 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9651 201d5d3c-b55e-5fd7-737f-ddc643e51545
18 lines
No EOL
753 B
PHP
18 lines
No EOL
753 B
PHP
<?php
|
|
require(_XE_PATH_ . 'test-phpUnit/config/config.inc.php');
|
|
|
|
class SqliteDeleteTest extends SqliteTest {
|
|
|
|
function _test($xml_file, $argsString, $expected, $columnList = null){
|
|
$this->_testQuery($xml_file, $argsString, $expected, 'getDeleteSql', $columnList);
|
|
}
|
|
|
|
function testDeleteIsGeneratedWithoutAlias(){
|
|
$xml_file = _TEST_PATH_ . "db/xml_query/sqlite/data/module.deleteModuleConfig.xml";
|
|
$argsString = '$args->module = "comment"; $args->site_srl = 0; ';
|
|
$expected = 'delete from "xe_module_config"
|
|
where "module" = \'comment\' and "site_srl" = 0';
|
|
$this->_test($xml_file, $argsString, $expected);
|
|
}
|
|
|
|
} |