+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2014 |
+ | Copyright CiviCRM LLC (c) 2004-2015 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
-*/
+ */
require_once 'CiviTest/CiviUnitTestCase.php';
}
/**
- * Test retrieval of metadata
+ * Test retrieval of metadata.
*/
public function testGetMetadata() {
$result = $this->callAPIAndDocument($this->_entity, 'get', array(
'options' => array(
'metadata' => array('fields'),
- )
+ ),
), __FUNCTION__, __FILE__, 'Demonostrates returning field metadata', 'GetWithMetadata');
$this->assertEquals('Website', $result['metadata']['fields']['url']['title']);
}
/**
- * Test retrieval of label metadata
+ * Test retrieval of label metadata.
*/
public function testGetFields() {
$result = $this->callAPIAndDocument($this->_entity, 'getfields', array('action' => 'get'), __FUNCTION__, __FILE__);
$this->assertArrayKeyExists('url', $result['values']);
}
+
}