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:
ucorina 2011-10-12 18:16:55 +00:00
parent 5dee02c11d
commit 106be2b3f8
2 changed files with 11 additions and 1 deletions

View file

@ -133,4 +133,14 @@
limit 0, 20';
$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);
}
}