mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-24 04:42:14 +09:00
Query cache file - added condition to skip null arguments that do not need validation and are not mandatory.
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9066 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
34246aa267
commit
33df36e715
12 changed files with 148 additions and 116 deletions
|
|
@ -34,6 +34,8 @@
|
|||
|
||||
// remove cache dir
|
||||
FileHandler::removeDir( _XE_PATH_ . 'files/cache');
|
||||
|
||||
XmlQueryParser::getDBParser(true);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -41,7 +43,6 @@
|
|||
*/
|
||||
protected function tearDown() {
|
||||
unset($GLOBALS['__DB__']);
|
||||
XmlQueryParser::setDBParser(null);
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -16,6 +16,7 @@
|
|||
$db_info->slave_db = array(array('db_type' => 'cubrid','db_table_prefix' => 'xe_'));
|
||||
|
||||
$oContext->setDbInfo($db_info);
|
||||
XmlQueryParser::getDBParser(true);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -23,7 +24,6 @@
|
|||
*/
|
||||
protected function tearDown() {
|
||||
unset($GLOBALS['__DB__']);
|
||||
XmlQueryParser::setDBParser(null);
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -34,6 +34,8 @@
|
|||
|
||||
// remove cache dir
|
||||
FileHandler::removeDir( _XE_PATH_ . 'files/cache');
|
||||
|
||||
XmlQueryParser::getDBParser(true);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -41,7 +43,6 @@
|
|||
*/
|
||||
protected function tearDown() {
|
||||
unset($GLOBALS['__DB__']);
|
||||
XmlQueryParser::setDBParser(null);
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -14,11 +14,12 @@
|
|||
$db_info->slave_db = array(array('db_type' => 'mssql','db_table_prefix' => 'xe_'));
|
||||
|
||||
$oContext->setDbInfo($db_info);
|
||||
|
||||
XmlQueryParser::getDBParser(true);
|
||||
}
|
||||
|
||||
protected function tearDown() {
|
||||
unset($GLOBALS['__DB__']);
|
||||
XmlQueryParser::setDBParser(null);
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@
|
|||
$this->_test($xml_file, $argsString, $expected);
|
||||
}
|
||||
|
||||
function testRquiredParameter(){
|
||||
function testRequiredParameter(){
|
||||
$xml_file = _XE_PATH_ . "modules/module/queries/getAdminId.xml";
|
||||
$argsString = '';
|
||||
$expected = 'Date incorecte! Query-ul nu a putut fi executat.';
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@
|
|||
$this->_test($xml_file, $argsString, $expected, array(10));
|
||||
}
|
||||
|
||||
function testRquiredParameter(){
|
||||
function testRequiredParameter(){
|
||||
$xml_file = _XE_PATH_ . "modules/module/queries/getAdminId.xml";
|
||||
$argsString = '';
|
||||
$expected = 'Date incorecte! Query-ul nu a putut fi executat.';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue