$numObjects = 1,
$createOnly = FALSE
) {
+ //this is a test function also backtrace is set for the test suite it sometimes unsets itself
+ // so we re-set here in case
+ $config = CRM_Core_Config::singleton();
+ $config->backtrace = TRUE;
+
static $counter = 0;
CRM_Core_DAO::$_testEntitiesToSkip = array(
'CRM_Core_DAO_Worldregion',
static function deleteTestObjects($daoName, $params = array(
)) {
+ //this is a test function also backtrace is set for the test suite it sometimes unsets itself
+ // so we re-set here in case
+ $config = CRM_Core_Config::singleton();
+ $config->backtrace = TRUE;
- $object = new $daoName ( );
+ $object = new $daoName();
$object->id = CRM_Utils_Array::value('id', $params);
$deletions = array(); // array(array(0 => $daoName, 1 => $daoParams))