From cbf33c9423a8dff51ca04f1fd884c211124cc2e7 Mon Sep 17 00:00:00 2001 From: Seamus Lee Date: Sun, 15 Jan 2023 20:13:35 +0000 Subject: [PATCH] [REF][PHP8.2] Fix PHP8.2 creation of dynamic properties in the elavon tests and Payment Processor class --- ext/elavon/CRM/Core/Payment/Elavon.php | 7 +++++++ .../tests/phpunit/CRM/Core/Payment/ElavonTest.php | 12 ++++++++++++ 2 files changed, 19 insertions(+) diff --git a/ext/elavon/CRM/Core/Payment/Elavon.php b/ext/elavon/CRM/Core/Payment/Elavon.php index 32f6039b61da..3615ccf621b6 100644 --- a/ext/elavon/CRM/Core/Payment/Elavon.php +++ b/ext/elavon/CRM/Core/Payment/Elavon.php @@ -27,6 +27,13 @@ */ class CRM_Core_Payment_Elavon extends CRM_Core_Payment { + /** + * Payment Processor Mode + * either test or live + * @var string + */ + protected $_mode; + /** * Constructor. * diff --git a/ext/elavon/tests/phpunit/CRM/Core/Payment/ElavonTest.php b/ext/elavon/tests/phpunit/CRM/Core/Payment/ElavonTest.php index c6a785d390c4..76ca53526e9b 100644 --- a/ext/elavon/tests/phpunit/CRM/Core/Payment/ElavonTest.php +++ b/ext/elavon/tests/phpunit/CRM/Core/Payment/ElavonTest.php @@ -25,6 +25,18 @@ class CRM_Core_Payment_ElavonTest extends \PHPUnit\Framework\TestCase implements use \Civi\Test\GuzzleTestTrait; use \Civi\Test\Api3TestTrait; + /** + * Instance of CRM_Core_Payment_Elavon|null + * @var CRM_Core_Payment_Elavon + */ + protected $processor; + + /** + * Created Object Ids + * @var array + */ + public $ids; + /** * Setup used when HeadlessInterface is implemented. *