+--------------------------------------------------------------------+
| CiviCRM version 5 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2019 |
+ | Copyright CiviCRM LLC (c) 2004-2020 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
public function setUp() {
parent::setUp();
$this->contactID = $this->createLoggedInUser();
- $this->params = array(
+ $this->params = [
'contact_id' => $this->contactID,
'sequential' => 1,
- );
+ ];
}
public function testUserGet() {
* Test retrieval of label metadata.
*/
public function testGetFields() {
- $result = $this->callAPIAndDocument($this->_entity, 'getfields', array('action' => 'get'), __FUNCTION__, __FILE__);
+ $result = $this->callAPIAndDocument($this->_entity, 'getfields', ['action' => 'get'], __FUNCTION__, __FILE__);
$this->assertArrayKeyExists('name', $result['values']);
}