function setUp() {
$this->_apiversion = 3;
parent::setUp();
+ $this->useTransaction();
$this->_contactID = $this->organizationCreate();
$loc = $this->locationTypeCreate();
$this->_locationType = $loc->id;
CRM_Core_PseudoConstant::flush();
- $this->quickCleanup(array('civicrm_phone'));
$this->_params = array(
'contact_id' => $this->_contactID,
'location_type_id' => $this->_locationType,
);
}
- function tearDown() {
- $this->locationTypeDelete($this->_locationType);
- $this->contactDelete($this->_contactID);
- }
-
public function testCreatePhone() {
$result = $this->callAPIAndDocument('phone', 'create', $this->_params, __FUNCTION__, __FILE__);