[REF][PHP8.2] Avoid dynamic property in CRM_SMS_ProviderTest
authorBradley Taylor <hello@brad-taylor.co.uk>
Thu, 19 Jan 2023 20:41:44 +0000 (20:41 +0000)
committerBradley Taylor <hello@brad-taylor.co.uk>
Thu, 19 Jan 2023 20:41:44 +0000 (20:41 +0000)
tests/phpunit/CRM/SMS/ProviderTest.php

index 9bf2993bb6eb2b535feeb50a7c30345a94fa81e4..ba87f805ec2383762af9f56bbcfdce2f1a474b75 100644 (file)
@@ -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);