[REF][PHP8.2] Avoid dynamic properties in module tests
authorBradley Taylor <hello@brad-taylor.co.uk>
Sun, 15 Jan 2023 10:32:59 +0000 (10:32 +0000)
committerBradley Taylor <hello@brad-taylor.co.uk>
Sun, 15 Jan 2023 10:32:59 +0000 (10:32 +0000)
tests/phpunit/CRM/Extension/Manager/ModuleTest.php
tests/phpunit/CRM/Extension/Manager/ModuleUpgTest.php

index 59d1de4d062feac7c28cd616fafa6e973c2114f1..3599dbe350186c12d36c7529d88f6a229fe27cea 100644 (file)
@@ -6,6 +6,16 @@
  */
 class CRM_Extension_Manager_ModuleTest extends CiviUnitTestCase {
 
+  /**
+   * @var string
+   */
+  protected $basedir;
+
+  /**
+   * @var \CRM_Extension_System
+   */
+  protected $system;
+
   public function setUp():void {
     parent::setUp();
     // $query = "INSERT INTO civicrm_domain ( name, version ) VALUES ( 'domain', 3 )";
index 16eb9960116917d0fb76f1d1ab71b654820e1f4a..b2c67d66fbbd4c7e15887f35b3ac6ac3edfd01df 100644 (file)
@@ -6,6 +6,11 @@
  */
 class CRM_Extension_Manager_ModuleUpgTest extends CiviUnitTestCase {
 
+  /**
+   * @var string
+   */
+  protected $basedir;
+
   /**
    * @var \CRM_Extension_System
    */