X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Fapi%2Fv3%2FEmailTest.php;h=85c24952c4cfa5757a7e338808f9d6feada78abe;hb=7d61e75fdbf9dc67efb0d87f8fd273083eb2d487;hp=dde623258220a9c636cca089eebbaed41e2cd3a0;hpb=d161ee89826cb74dda8c7b47bf25d7891176b54f;p=civicrm-core.git diff --git a/tests/phpunit/api/v3/EmailTest.php b/tests/phpunit/api/v3/EmailTest.php index dde6232582..85c24952c4 100644 --- a/tests/phpunit/api/v3/EmailTest.php +++ b/tests/phpunit/api/v3/EmailTest.php @@ -1,28 +1,12 @@ _apiversion = $version; $params = $this->_params; unset($params['location_type_id']); - $result = $this->callAPIAndDocument('email', 'create', $params, __FUNCTION__, __FILE__); + $result = $this->callAPIAndDocument($this->_entity, 'create', $params, __FUNCTION__, __FILE__); $this->assertEquals(CRM_Core_BAO_LocationType::getDefault()->id, $result['values'][$result['id']]['location_type_id']); - $delresult = $this->callAPISuccess('email', 'delete', ['id' => $result['id']]); + $this->callAPISuccess($this->_entity, 'delete', ['id' => $result['id']]); } /**