protected $_apiversion = 3;
protected $_cId_a;
/**
- * Second individual
+ * Second individual.
* @var integer
*/
protected $_cId_a_2;
///////////////// civicrm_relationship_create methods
/**
- * Check with empty array
+ * Check with empty array.
*/
public function testRelationshipCreateEmpty() {
$this->callAPIFailure('relationship', 'create', array());
}
/**
- * Check if required fields are not passed
+ * Check if required fields are not passed.
*/
public function testRelationshipCreateWithoutRequired() {
$params = array(
}
/**
- * Check with incorrect required fields
+ * Check with incorrect required fields.
*/
public function testRelationshipCreateWithIncorrectData() {
}
/**
- * Check relationship creation with invalid Relationship
+ * Check relationship creation with invalid Relationship.
*/
public function testRelationshipCreatInvalidRelationship() {
// both the contact of type Individual
}
/**
- * Check relationship already exists
+ * Check relationship already exists.
*/
public function testRelationshipCreateAlreadyExists() {
$params = array(
}
/**
- * Check relationship already exists
+ * Check relationship already exists.
*/
public function testRelationshipCreateUpdateAlreadyExists() {
$params = array(
/**
- * Check relationship creation
+ * Check relationship creation.
*/
public function testRelationshipCreate() {
$params = array(
}
/**
- * Ensure disabling works
+ * Ensure disabling works.
*/
public function testRelationshipUpdate() {
$result = $this->callAPISuccess('relationship', 'create', $this->_params);
}
/**
- * Check relationship creation
+ * Check relationship creation.
*/
public function testRelationshipCreateEmptyEndDate() {
$params = array(
}
/**
- * Check relationship creation with custom data
+ * Check relationship creation with custom data.
*/
public function testRelationshipCreateWithCustomData() {
$customGroup = $this->createCustomGroup();
///////////////// civicrm_relationship_delete methods
/**
- * Check with empty array
+ * Check with empty array.
*/
public function testRelationshipDeleteEmpty() {
$params = array();
}
/**
- * Check if required fields are not passed
+ * Check if required fields are not passed.
*/
public function testRelationshipDeleteWithoutRequired() {
$params = array(
}
/**
- * Check with incorrect required fields
+ * Check with incorrect required fields.
*/
public function testRelationshipDeleteWithIncorrectData() {
$params = array(
}
/**
- * Check relationship creation
+ * Check relationship creation.
*/
public function testRelationshipDelete() {
$params = array(
///////////////// civicrm_relationship_update methods
/**
- * Check with empty array
+ * Check with empty array.
*/
public function testRelationshipUpdateEmpty() {
$result = $this->callAPIFailure('relationship', 'create', array(),
}
/**
- * Check if required fields are not passed
+ * Check if required fields are not passed.
*/
/**
- * Check relationship update
+ * Check relationship update.
*/
public function testRelationshipCreateDuplicate() {
$relParams = array(
}
/**
- * Test using various operators
+ * Test using various operators.
*/
public function testGetTypeOperators() {
$relTypeParams = array(
}
/**
- * Check with invalid relationshipType Id
+ * Check with invalid relationshipType Id.
*/
public function testRelationshipTypeAddInvalidId() {
$relTypeParams = array(
}
/**
- * Check with valid data with relationshipTypes
+ * Check with valid data with relationshipTypes.
*/
public function testGetRelationshipWithRelTypes() {
$relParams = array(