Skip to content
Snippets Groups Projects
Commit b6262a4c authored by Eileen McNaughton's avatar Eileen McNaughton
Browse files

ensure backtrace is on for test entity create & delete

parent 3901c3bd
Branches
Tags
No related merge requests found
......@@ -1264,6 +1264,11 @@ SELECT contact_id
$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',
......@@ -1427,8 +1432,12 @@ SELECT contact_id
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))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment