*/
class CRM_SMS_BAO_ProviderTest extends CiviUnitTestCase {
+ /**
+ * Reference to option value in sms_provider_name group.
+ *
+ * @var int
+ */
+ private $optionValueID;
+
/**
* Set Up Funtion
*/
public function setUp(): void {
parent::setUp();
$option = $this->callAPISuccess('option_value', 'create', ['option_group_id' => 'sms_provider_name', 'name' => 'test_provider_name', 'label' => 'test_provider_name', 'value' => 1]);
- $this->option_value = $option['id'];
+ $this->optionValueID = $option['id'];
}
/**
*/
public function tearDown(): void {
parent::tearDown();
- $this->callAPISuccess('option_value', 'delete', ['id' => $this->option_value]);
+ $this->callAPISuccess('option_value', 'delete', ['id' => $this->optionValueID]);
}
/**
*/
class CRM_SMS_PreviewTest extends CiviUnitTestCase {
+ /**
+ * Reference to option value in sms_provider_name group.
+ *
+ * @var int
+ */
+ private $optionValueID;
+
/**
* Set Up Function
*/
public function setUp(): void {
parent::setUp();
$option = $this->callAPISuccess('option_value', 'create', ['option_group_id' => 'sms_provider_name', 'name' => 'test_provider_name', 'label' => 'Test Provider Label', 'value' => 1]);
- $this->option_value = $option['id'];
+ $this->optionValueID = $option['id'];
}
/**
*/
public function tearDown(): void {
parent::tearDown();
- $this->callAPISuccess('option_value', 'delete', ['id' => $this->option_value]);
+ $this->callAPISuccess('option_value', 'delete', ['id' => $this->optionValueID]);
}
/**