Update copyright date for 2020
[civicrm-core.git] / tests / phpunit / api / v3 / UserTest.php
index b8caa31fc933d3b87f8ad296c5375c27aafa9192..2130d58de23c099554e28ddb2830d322d609a060 100644 (file)
@@ -3,7 +3,7 @@
  +--------------------------------------------------------------------+
  | CiviCRM version 5                                                  |
  +--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2019                                |
+ | Copyright CiviCRM LLC (c) 2004-2020                                |
  +--------------------------------------------------------------------+
  | This file is a part of CiviCRM.                                    |
  |                                                                    |
@@ -43,10 +43,10 @@ class api_v3_UserTest extends CiviUnitTestCase {
   public function setUp() {
     parent::setUp();
     $this->contactID = $this->createLoggedInUser();
-    $this->params = array(
+    $this->params = [
       'contact_id' => $this->contactID,
       'sequential' => 1,
-    );
+    ];
   }
 
   public function testUserGet() {
@@ -61,7 +61,7 @@ class api_v3_UserTest extends CiviUnitTestCase {
    * 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']);
   }