From e98e62a53d8b6e1356c11fc58725bbac2fd5fb26 Mon Sep 17 00:00:00 2001 From: Bradley Taylor Date: Thu, 19 Jan 2023 20:41:44 +0000 Subject: [PATCH] [REF][PHP8.2] Avoid dynamic property in CRM_SMS_ProviderTest --- tests/phpunit/CRM/SMS/ProviderTest.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/tests/phpunit/CRM/SMS/ProviderTest.php b/tests/phpunit/CRM/SMS/ProviderTest.php index 9bf2993bb6..ba87f805ec 100644 --- a/tests/phpunit/CRM/SMS/ProviderTest.php +++ b/tests/phpunit/CRM/SMS/ProviderTest.php @@ -21,7 +21,13 @@ require_once 'CiviTest/CiviTestSMSProvider.php'; class CRM_SMS_ProviderTest extends CiviUnitTestCase { /** - * Set Up Funtion + * ID of option_value record created in setUp + * @var int + */ + private $option_value; + + /** + * Set Up Function */ public function setUp(): void { parent::setUp(); @@ -42,7 +48,7 @@ class CRM_SMS_ProviderTest extends CiviUnitTestCase { * CRM-20238 Add test of the processInbound function for SMSs */ public function testProcessInbound() { - $testSourceContact = $this->individualCreate(['phone' => [1 => ['phone_type_id' => 'Phone', 'location_type_id' => 'Home', 'phone' => '+61487654321']]]); + $this->individualCreate(['phone' => [1 => ['phone_type_id' => 'Phone', 'location_type_id' => 'Home', 'phone' => '+61487654321']]]); $provider = new CiviTestSMSProvider('CiviTestSMSProvider'); $result = $provider->processInbound('+61412345678', 'This is a test message', '+61487654321'); $this->assertEquals('This is a test message', $result->details); -- 2.25.1