'civicrm_managed',
'civicrm_relationship',
'civicrm_relationship_type',
+ 'civicrm_uf_match',
);
$this->quickCleanup($this->tablesToTruncate);
CRM_Core_Transaction::forceRollbackIfEnabled();
\Civi\Core\Transaction\Manager::singleton(TRUE);
- $tablesToTruncate = array('civicrm_contact');
+ $tablesToTruncate = array('civicrm_contact', 'civicrm_uf_match');
$this->quickCleanup($tablesToTruncate);
$this->createDomainContacts();
}
'civicrm_acl_contact_cache',
'civicrm_contribution',
'civicrm_participant',
+ 'civicrm_uf_match',
);
$this->quickCleanup($tablesToTruncate);
$config = CRM_Core_Config::singleton();
'civicrm_contact',
'civicrm_activity',
'civicrm_activity_contact',
+ 'civicrm_uf_match',
);
$this->quickCleanup($tablesToTruncate, TRUE);
$this->callAPISuccess('option_value', 'delete', array('id' => $this->test_activity_type_id));
'case_type_id' => 1,
);
- $result = $this->callAPIFailure('case', 'create', $params);
+ $this->callAPIFailure('case', 'create', $params);
}
/**
*/
public function tearDown() {
parent::tearDown();
- $this->quickCleanup(array('civicrm_case_type'));
+ $this->quickCleanup(array('civicrm_case_type', 'civicrm_uf_match'));
}
/**
}
public function testGetContributionRecur() {
- $result = $this->callAPISuccess($this->_entity, 'create', $this->params);
+ $this->callAPISuccess($this->_entity, 'create', $this->params);
$getParams = array(
'amount' => '500',
);
public function testDeleteContributionRecur() {
$result = $this->callAPISuccess($this->_entity, 'create', $this->params);
$deleteParams = array('id' => $result['id']);
- $result = $this->callAPIAndDocument($this->_entity, 'delete', $deleteParams, __FUNCTION__, __FILE__);
+ $this->callAPIAndDocument($this->_entity, 'delete', $deleteParams, __FUNCTION__, __FILE__);
$checkDeleted = $this->callAPISuccess($this->_entity, 'get', array());
$this->assertEquals(0, $checkDeleted['count']);
}
*/
public function tearDown() {
$this->quickCleanUpFinancialEntities();
+ $this->quickCleanup(array('civicrm_uf_match'));
}
/**
'civicrm_address',
'civicrm_membership',
'civicrm_contribution',
+ 'civicrm_uf_match',
), TRUE);
$this->callAPISuccess('membership_type', 'delete', array('id' => $this->_membershipTypeID));
// ok can't be bothered wring an api to do this & truncating is crazy
'Extension',
'ReportTemplate',
'System',
+ 'User',
);
$this->toBeImplemented['delete'] = array(
'MembershipPayment',
'Entity',
'Domain',
'Setting',
+ 'User',
);
$this->deprecatedAPI = array('Location', 'ActivityType', 'SurveyRespondant');
$this->deletableTestObjects = array();
*
* Mailing Contact Just doesn't support id. We have always insisted on finding a way to
* support id in API but in this case the underlying tables are crying out for a restructure
- * & it just doesn't make sense, on the otherhand Event need id to be existant as pseudo property
- * is been associated with it, so we need to bypass for get api otherwise it will through pseudo_match validation
+ * & it just doesn't make sense.
+ *
+ * User doesn't support get By ID because the user id is actually the CMS user ID & is not part of
+ * CiviCRM - so can only be tested through UserTest - not SyntaxConformanceTest.
*
* @param bool $sequential
*
* Entities that cannot be retrieved by ID
*/
public static function toBeSkipped_getByID($sequential = FALSE) {
- return array('MailingContact', 'Event');
+ return array('MailingContact', 'User');
}
/**
'Profile',
'CustomValue',
'Setting',
+ 'User',
);
if ($sequential === TRUE) {
return $entitiesWithout;