From ca367b107819f5e234717f658398408433d1cfa2 Mon Sep 17 00:00:00 2001 From: Bradley Taylor Date: Sun, 15 Jan 2023 10:32:59 +0000 Subject: [PATCH] [REF][PHP8.2] Avoid dynamic properties in module tests --- tests/phpunit/CRM/Extension/Manager/ModuleTest.php | 10 ++++++++++ tests/phpunit/CRM/Extension/Manager/ModuleUpgTest.php | 5 +++++ 2 files changed, 15 insertions(+) diff --git a/tests/phpunit/CRM/Extension/Manager/ModuleTest.php b/tests/phpunit/CRM/Extension/Manager/ModuleTest.php index 59d1de4d06..3599dbe350 100644 --- a/tests/phpunit/CRM/Extension/Manager/ModuleTest.php +++ b/tests/phpunit/CRM/Extension/Manager/ModuleTest.php @@ -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 )"; diff --git a/tests/phpunit/CRM/Extension/Manager/ModuleUpgTest.php b/tests/phpunit/CRM/Extension/Manager/ModuleUpgTest.php index 16eb996011..b2c67d66fb 100644 --- a/tests/phpunit/CRM/Extension/Manager/ModuleUpgTest.php +++ b/tests/phpunit/CRM/Extension/Manager/ModuleUpgTest.php @@ -6,6 +6,11 @@ */ class CRM_Extension_Manager_ModuleUpgTest extends CiviUnitTestCase { + /** + * @var string + */ + protected $basedir; + /** * @var \CRM_Extension_System */ -- 2.25.1