Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-4245

test code for create individual with phone doesn't set phone on contact

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Fixed/Completed
    • Affects Version/s: 2.2.0
    • Fix Version/s: 2.2.1
    • Component/s: Test suite
    • Labels:
      None

      Description

      In tests/api/v2/ContactAdd.test, the following function passes in the test suite.

      function testCreateIndividualwithPhone()

      { $params = array('first_name' => 'abc5', 'last_name' => 'xyz5', 'contact_type' => 'Individual', 'location_type_id' => 2, 'phone' => '11111', 'phone_type' => 'Phone' ); $contact =& civicrm_contact_add($params); $this->assertNotNull( $contact['contact_id'] ); $this->_createdContacts[] = $contact['contact_id']; }

      Removing the civicrm_contact_delete() call in tearDown() leaves the created contact "abc5 xyz5", without a phone number.

        Attachments

          Activity

            People

            • Assignee:
              mover Michał Mach
              Reporter:
              xurizaemon Chris Burgess
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: