else {
$this->fail("Could not retrieve object: $daoName, $id");
}
- $object->free();
+
$matchSize = count($match);
if ($verifiedCount != $matchSize) {
$this->fail("Did not verify all fields in match array: $daoName, $id. Verified count = $verifiedCount. Match array size = $matchSize");
$daoRecurEvent->id = $generatedEntities['civicrm_event'][$key];
if ($daoRecurEvent->find(TRUE)) {
$daoRecurEvent->delete();
- $daoRecurEvent->free();
}
//Check if this event_id was deleted
$dao = CRM_Core_DAO::executeQuery($sql);
$contactsFetchedFromBufferedQuery = $dao->fetchAll();
- $dao->free();
$dao = CRM_Core_DAO::executeUnbufferedQuery($sql);
$contactsFetchedFromUnbufferedQuery = $dao->fetchAll();
- $dao->free();
$this->checkArrayEquals($contactsFetchedFromBufferedQuery, $contactsFetchedFromUnbufferedQuery);
}
$this->appendOptions = array(2 => 'Maybe');
$options = CRM_Core_PseudoConstant::get('CRM_Core_BAO_CustomField', $this->targetField);
$this->assertEquals(array(1 => 'Yes', 0 => 'No', 2 => 'Maybe'), $options);
-
- $field->free();
}
/**
$logging->fixSchemaDifferencesFor('civicrm_option_value', array(), TRUE);
$query = CRM_Core_DAO::executeQuery("SHOW CREATE TABLE `log_civicrm_option_value`", array(), TRUE, NULL, FALSE, FALSE);
$query->fetch();
- $query->free();
$create = explode("\n", $query->Create_Table);
$this->assertTrue(in_array(" `logging_test` int(11) DEFAULT '0'", $create));
$create = explode("\n", $query->Create_Table);
else {
$testCase->fail("Could not retrieve object: $daoName, $id");
}
- $object->free();
$matchSize = count($match);
if ($verifiedCount != $matchSize) {
$testCase->fail("Did not verify all fields in match array: $daoName, $id. Verified count = $verifiedCount. Match array size = $matchSize");
if ($dao->fetch()) {
$msg = $dao->headers . "\n\n" . $dao->body;
}
- $dao->free();
}
switch ($type) {
while ($dao->fetch()) {
$msgs[] = $dao->headers . "\n\n" . $dao->body;
}
- $dao->free();
}
switch ($type) {
for ($i = 0; $i < 30; $i++) {
$baoObj = CRM_Core_DAO::createTestObject($baoString, array('currency' => 'USD'));
$ids[] = $baoObj->id;
- $baoObj->free();
}
// each case is array(0 => $inputtedApiOptions, 1 => $expectedResultCount)
foreach ($ids as $id) {
CRM_Core_DAO::deleteTestObjects($baoString, array('id' => $id));
}
- $baoObj->free();
}
/**
for ($i = 0; $i < 3 - $totalEntities; $i++) {
$baoObj = CRM_Core_DAO::createTestObject($baoString, array('currency' => 'USD'));
$ids[] = $baoObj->id;
- $baoObj->free();
}
$totalEntities = 3;
}
}
}
}
- $baoObj->free();
}
/* ---- testing the _getFields ---- */