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.