/**
* Methods create relationshipType with valid data
* success expected
- *
*/
public function testRelationshipTypeAddIndiviParent() {
//check Individual to Parent RelationshipType
/**
* Methods create relationshipe within same contact type with invalid Relationships
- *
*/
public function testRelationshipCreateInvalidWithinSameType() {
//check for Individual to Parent
'contact_sub_type_b' => $this->parent,
);
$relTypeIds = array();
- $relType = CRM_Contact_BAO_RelationshipType::add($relTypeParams, $relTypeIds);
- $params = array(
+ $relType = CRM_Contact_BAO_RelationshipType::add($relTypeParams, $relTypeIds);
+ $params = array(
'relationship_type_id' => $relType->id . '_a_b',
'contact_check' => array($this->indivi_student => 1),
);
/**
* Methods create relationshipe within diff contact type with invalid Relationships
- *
*/
public function testRelCreateInvalidWithinDiffTypeSpocorIndivi() {
//check for Sponcer to Individual
'contact_type_b' => 'Individual',
);
$relTypeIds = array();
- $relType = CRM_Contact_BAO_RelationshipType::add($relTypeParams, $relTypeIds);
- $params = array(
+ $relType = CRM_Contact_BAO_RelationshipType::add($relTypeParams, $relTypeIds);
+ $params = array(
'relationship_type_id' => $relType->id . '_a_b',
'contact_check' => array($this->individual => 1),
);
'contact_sub_type_b' => 'Sponser',
);
$relTypeIds = array();
- $relType = CRM_Contact_BAO_RelationshipType::add($relTypeParams, $relTypeIds);
- $params = array(
+ $relType = CRM_Contact_BAO_RelationshipType::add($relTypeParams, $relTypeIds);
+ $params = array(
'relationship_type_id' => $relType->id . '_a_b',
'contact_check' => array($this->individual => 1),
);
/**
* Methods create relationshipe within same contact type with valid data
* success expected
- *
*/
public function testRelationshipCreateWithinSameType() {
//check for Individual to Parent
'contact_sub_type_b' => $this->parent,
);
$relTypeIds = array();
- $relType = CRM_Contact_BAO_RelationshipType::add($relTypeParams, $relTypeIds);
- $params = array(
+ $relType = CRM_Contact_BAO_RelationshipType::add($relTypeParams, $relTypeIds);
+ $params = array(
'relationship_type_id' => $relType->id . '_a_b',
'is_active' => 1,
'contact_check' => array($this->indivi_parent => $this->indivi_parent),
/**
* Methods create relationshipe within different contact type with valid data
* success expected
- *
*/
public function testRelCreateWithinDiffTypeSponsorIndivi() {
//check for Sponcer to Individual
'contact_type_b' => 'Individual',
);
$relTypeIds = array();
- $relType = CRM_Contact_BAO_RelationshipType::add($relTypeParams, $relTypeIds);
- $params = array(
+ $relType = CRM_Contact_BAO_RelationshipType::add($relTypeParams, $relTypeIds);
+ $params = array(
'relationship_type_id' => $relType->id . '_a_b',
'is_active' => 1,
'contact_check' => array($this->indivi_student => 1),
'contact_sub_type_b' => $this->sponsor,
);
$relTypeIds = array();
- $relType = CRM_Contact_BAO_RelationshipType::add($relTypeParams, $relTypeIds);
- $params = array(
+ $relType = CRM_Contact_BAO_RelationshipType::add($relTypeParams, $relTypeIds);
+ $params = array(
'relationship_type_id' => $relType->id . '_a_b',
'is_active' => 1,
'contact_check' => array($this->organization_sponsor => 1),