Merge pull request #15316 from mepps/order-campaign-dashboard
[civicrm-core.git] / tests / phpunit / CRM / Utils / MailTest.php
index 6a7627685cd8755c40186a8e6af225261cef732f..f87b9f8392b0998f895316b36ab94989a3f62e50 100644 (file)
@@ -2,6 +2,7 @@
 
 /**
  * Class CRM_Utils_MailTest
+ * @group headless
  */
 class CRM_Utils_MailTest extends CiviUnitTestCase {
 
@@ -15,40 +16,40 @@ class CRM_Utils_MailTest extends CiviUnitTestCase {
    */
   public function testFormatRFC822() {
 
-    $values = array(
-      array(
+    $values = [
+      [
         'name' => "Test User",
         'email' => "foo@bar.com",
         'result' => "Test User <foo@bar.com>",
-      ),
-      array(
+      ],
+      [
         'name' => '"Test User"',
         'email' => "foo@bar.com",
         'result' => "Test User <foo@bar.com>",
-      ),
-      array(
+      ],
+      [
         'name' => "User, Test",
         'email' => "foo@bar.com",
         'result' => '"User, Test" <foo@bar.com>',
-      ),
-      array(
+      ],
+      [
         'name' => '"User, Test"',
         'email' => "foo@bar.com",
         'result' => '"User, Test" <foo@bar.com>',
-      ),
-      array(
+      ],
+      [
         'name' => '"Test User"',
         'email' => "foo@bar.com",
         'result' => '"Test User" <foo@bar.com>',
         'useQuote' => TRUE,
-      ),
-      array(
+      ],
+      [
         'name' => "User, Test",
         'email' => "foo@bar.com",
         'result' => '"User, Test" <foo@bar.com>',
         'useQuote' => TRUE,
-      ),
-    );
+      ],
+    ];
     foreach ($values as $value) {
       $result = CRM_Utils_Mail::formatRFC822Email($value['name'],
         $value['email'],