mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-26 22:59:57 +09:00
Added unit test for XML query with IN and array default value.
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9619 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
5dee02c11d
commit
106be2b3f8
2 changed files with 11 additions and 1 deletions
|
|
@ -22,7 +22,7 @@
|
||||||
// require_once(_XE_PATH_.'classes/context/Context.class.php');
|
// require_once(_XE_PATH_.'classes/context/Context.class.php');
|
||||||
// require_once(_XE_PATH_.'classes/file/FileHandler.class.php');
|
// require_once(_XE_PATH_.'classes/file/FileHandler.class.php');
|
||||||
// require_once(_XE_PATH_.'classes/xml/XmlParser.class.php');
|
// require_once(_XE_PATH_.'classes/xml/XmlParser.class.php');
|
||||||
require_once(_XE_PATH_.'classes/xml/XmlQueryParser.class.php');
|
require_once(_XE_PATH_.'classes/xml/XmlQueryParser.150.class.php');
|
||||||
//
|
//
|
||||||
|
|
||||||
require_once(_XE_PATH_.'classes/db/DB.class.php');
|
require_once(_XE_PATH_.'classes/db/DB.class.php');
|
||||||
|
|
|
||||||
|
|
@ -133,4 +133,14 @@
|
||||||
limit 0, 20';
|
limit 0, 20';
|
||||||
$this->_test($xml_file, $argsString, $expected);
|
$this->_test($xml_file, $argsString, $expected);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function test_Syndication_getGrantedModules(){
|
||||||
|
$xml_file = _TEST_PATH_ . "db/xml_query/mysql/data/syndication.getGrantedModules.xml";
|
||||||
|
$argsString = '';
|
||||||
|
$expected = 'select `module_srl`
|
||||||
|
from `xe_module_grants` as `module_grants`
|
||||||
|
where `name` in (\'access\',\'view\',\'list\')
|
||||||
|
and (`group_srl` >= 1 or `group_srl` = -1 or `group_srl` = -2) group by `module_srl`';
|
||||||
|
$this->_test($xml_file, $argsString, $expected);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue