X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Fapi%2Fv3%2FUserTest.php;h=2130d58de23c099554e28ddb2830d322d609a060;hb=f299f7db79fed6f3598c84302966bda087e7cac3;hp=b8caa31fc933d3b87f8ad296c5375c27aafa9192;hpb=dce9a66ff021c2388bd39345b6104e8399bebc04;p=civicrm-core.git diff --git a/tests/phpunit/api/v3/UserTest.php b/tests/phpunit/api/v3/UserTest.php index b8caa31fc9..2130d58de2 100644 --- a/tests/phpunit/api/v3/UserTest.php +++ b/tests/phpunit/api/v3/UserTest.php @@ -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']); }