dev/core#3177 Switch sms to use flexmailer token rendering
[civicrm-core.git] / tests / phpunit / CRM / SMS / PreviewTest.php
index fa81cecad305129b74eb7f2cd3bbe2dc58d53346..c3dd21950f48dbb4427d319f9414f89fbff65b98 100644 (file)
@@ -27,7 +27,7 @@ class CRM_SMS_PreviewTest extends CiviUnitTestCase {
   /**
    * Test SMS preview.
    */
-  public function testSMSPreview() {
+  public function testSMSPreview(): void {
     $result = $this->callAPISuccess('SmsProvider', 'create', [
       'title' => 'test SMS provider',
       'username' => 'test',
@@ -41,10 +41,10 @@ class CRM_SMS_PreviewTest extends CiviUnitTestCase {
     $provider_id = $result['id'];
     $result = $this->callAPISuccess('Mailing', 'create', [
       'name' => "Test1",
-      'from_name' => "+12223334444",
-      'from_email' => "test@test.com",
+      'from_name' => '+12223334444',
+      'from_email' => 'test@test.com',
       'replyto_email' => "test@test.com",
-      'body_text' => "Testing body",
+      'body_text' => 'Testing body',
       'sms_provider_id' => $provider_id,
       'header_id' => NULL,
       'footer_id' => NULL,