* @package CiviCRM_APIv3
* @subpackage API_Core
*/
-
class api_v3_TagTest extends CiviUnitTestCase {
protected $_apiversion = 3;
/**
*/
public function testGetReturnArray() {
$description = "demonstrates use of Return as an array";
- $subfile = "getReturnArray";
+ $subfile = "getReturnArray";
$params = array(
'id' => $this->tagID,
public function testTagGetfields() {
$description = "demonstrate use of getfields to interrogate api";
- $params = array('action' => 'create');
- $result = $this->callAPIAndDocument('tag', 'getfields', $params, __FUNCTION__, __FILE__, $description, NULL, 'getfields');
+ $params = array('action' => 'create');
+ $result = $this->callAPIAndDocument('tag', 'getfields', $params, __FUNCTION__, __FILE__, $description, NULL, 'getfields');
$this->assertEquals('civicrm_contact', $result['values']['used_for']['api.default']);
}
$description = "Demonstrates use of api.getlist for autocomplete and quicksearch applications";
$params = array(
'input' => $this->tag['name'],
- 'extra' => array('used_for')
+ 'extra' => array('used_for'),
);
$result = $this->callAPIAndDocument('tag', 'getlist', $params, __FUNCTION__, __FILE__, $description);
$this->assertEquals($this->tag['id'], $result['values'][0]['id'], 'In line ' . __LINE__);