individualCreate(); $this->householdCreate(); $this->organizationCreate(); } public function tearDown() { } /** * Test civicrm_contact_create. * * Verify that attempt to create individual contact with only * first and last names succeeds */ public function testCRM11793Organization() { $this->_testCRM11793ContactType('Organization'); } public function testCRM11793Household() { $this->_testCRM11793ContactType('Household'); } public function testCRM11793Individual() { $this->_testCRM11793ContactType('Individual'); } /** * @param $contactType */ public function _testCRM11793ContactType($contactType) { $result = $this->callAPISuccess( 'contact', 'get', array( 'contact_type' => $contactType, ) ); foreach ($result['values'] as $idx => $contact) { $this->assertEquals($contact['contact_type'], $contactType, "In line " . __LINE__); } } }