add missing comments - tests directory
[civicrm-core.git] / tests / phpunit / api / v3 / ProfileTest.php
index ae572972b86f1408fa3d471b90d554c9e43e9ca9..1a1e6ecb1854ffcd8b980d76a3ecc56083e11cc2 100644 (file)
@@ -41,6 +41,10 @@ class api_v3_ProfileTest extends CiviUnitTestCase {
   protected $_profileID = 0;
   protected $_membershipTypeID;
   protected $_contactID;
+
+  /**
+   * @return array
+   */
   function get_info() {
     return array(
       'name' => 'Profile Test',
@@ -138,7 +142,6 @@ class api_v3_ProfileTest extends CiviUnitTestCase {
       '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',
@@ -701,6 +704,11 @@ class api_v3_ProfileTest extends CiviUnitTestCase {
   /*
      * 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',
@@ -743,6 +751,9 @@ class api_v3_ProfileTest extends CiviUnitTestCase {
     return $profileData;
   }
 
+  /**
+   * @return array
+   */
   function _createContactWithActivity() {
     // @TODO: Create profile with custom fields
     $op = new PHPUnit_Extensions_Database_Operation_Insert();
@@ -890,6 +901,9 @@ class api_v3_ProfileTest extends CiviUnitTestCase {
     $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'));