/*
+--------------------------------------------------------------------+
-| CiviCRM version 4.4 |
+| CiviCRM version 4.5 |
+--------------------------------------------------------------------+
-| Copyright CiviCRM LLC (c) 2004-2013 |
+| Copyright CiviCRM LLC (c) 2004-2014 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
protected $_profileID = 0;
protected $_membershipTypeID;
protected $_contactID;
+
+ /**
+ * @return array
+ */
function get_info() {
return array(
'name' => 'Profile Test',
'billing_city-5' => 'Gotham City',
'billing_state_province_id-5' => '1021',
'billing_country_id-5' => '1228',
- 'billing-email-5' => 'abc1.xyz1@yahoo.com',
'billing_postal_code-5' => '90210',
'billing-email-5' => 'abc1.xyz1@yahoo.com',
'email-5' => 'abc1.xyz1@yahoo.com',
/*
* Helper function to create an Individual with address/email/phone info. Import UF Group and UF Fields
*/
+ /**
+ * @param array $params
+ *
+ * @return mixed
+ */
function _createIndividualContact($params = array()) {
$contactParams = array_merge(array(
'first_name' => 'abc1',
return $profileData;
}
+ /**
+ * @return array
+ */
function _createContactWithActivity() {
// @TODO: Create profile with custom fields
$op = new PHPUnit_Extensions_Database_Operation_Insert();
$this->_profileID = $profile['id'];
}
+ /**
+ * @param $profileID
+ */
function _addCustomFieldToProfile($profileID) {
$ids = $this->entityCustomGroupWithSingleFieldCreate(__FUNCTION__, '');
$this->uFFieldCreate(array('uf_group_id' => $profileID, 'field_name' => 'custom_' . $ids['custom_field_id'], 'contact_type' => 'Contact'));