Merge pull request #20313 from eileenmcnaughton/mem_move2
[civicrm-core.git] / tests / phpunit / CiviTest / CiviUnitTestCase.php
index a6e5986b396a965cd9c0a73432967eca43cf2eeb..dfd7c3db30bce23294cd10df36bdc8b7e3e29cb2 100644 (file)
@@ -158,11 +158,11 @@ class CiviUnitTestCase extends PHPUnit\Framework\TestCase {
    *
    * This can be used to test hooks within tests. For example in the ACL_PermissionTrait:
    *
-   * $this->hookClass->setHook('civicrm_aclWhereClause', array($this, 'aclWhereHookAllResults'));
+   * $this->hookClass->setHook('civicrm_aclWhereClause', [$this, 'aclWhereHookAllResults']);
    *
    * @var \CRM_Utils_Hook_UnitTests
    */
-  public $hookClass = NULL;
+  public $hookClass;
 
   /**
    * @var array