You are here

public static function CRMCoreContactUITestCase::getIndividualContactTitle in CRM Core 7

Return title of the Individual Contact node.

2 calls to CRMCoreContactUITestCase::getIndividualContactTitle()
CRMCoreContactUITestCase::testContactOperations in modules/crm_core_contact_ui/crm_core_contact_ui.test
User with permissions 'administer crm_core_contact entities' should be able to create/edit/delete contacts of any contact type.
CRMCoreRelationshipUITestCase::testRelationshipOperations in modules/crm_core_relationship_ui/crm_core_relationship_ui.test

File

modules/crm_core_contact_ui/crm_core_contact_ui.test, line 142

Class

CRMCoreContactUITestCase

Code

public static function getIndividualContactTitle($post_array) {
  return $post_array['contact_name[und][0][title]'] . ' ' . $post_array['contact_name[und][0][given]'] . ' ' . $post_array['contact_name[und][0][middle]'] . ' ' . $post_array['contact_name[und][0][family]'] . ' ' . $post_array['contact_name[und][0][generational]'] . ', ' . $post_array['contact_name[und][0][credentials]'];
}