Updated unit tests - added input XML queries directly in the tests folder, instead of including them from core (for opage and syndication modules, which were removed).

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9786 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
ucorina 2011-11-01 15:43:44 +00:00
parent 3928e8ec37
commit ad7dda9b75
19 changed files with 646 additions and 113 deletions

View file

@ -8,7 +8,7 @@
}
function testConditionWithVarAndColumnDefaultValue_WithoutArgument(){
$xml_file = _XE_PATH_ . "modules/resource/queries/getLatestItem.xml";
$xml_file = _TEST_PATH_ . "db/xml_query/mysql/data/resource.getLatestItem.xml";
$argsString = '$args->item_srl = "";';
$expected = 'select `package`.`module_srl` as `module_srl`
, `package`.`status` as `status`
@ -45,7 +45,7 @@
}
function testConditionWithVarAndColumnDefaultValue_WithArgument(){
$xml_file = _XE_PATH_ . "modules/resource/queries/getLatestItem.xml";
$xml_file = _TEST_PATH_ . "db/xml_query/mysql/data/resource.getLatestItem.xml";
$argsString = '$args->item_srl = "10";';
$expected = 'select `package`.`module_srl` as `module_srl`
, `package`.`status` as `status`
@ -89,7 +89,7 @@
}
function testResource_getLatestItemList(){
$xml_file = _XE_PATH_ . "modules/resource/queries/getLatestItemList.xml";
$xml_file = _TEST_PATH_ . "db/xml_query/mysql/data/resource.getLatestItemList.xml";
$argsString = '';
$expected = 'select `package`.`module_srl` as `module_srl`
, `package`.`status` as `status`