Merge pull request #17621 from colemanw/sortOptions
[civicrm-core.git] / tests / phpunit / CRM / Utils / RestTest.php
index 55ee7784de92a896376c5637a18865c442864604..00c7d3f406bc89efdb143a987471122761268bb0 100644 (file)
@@ -1,8 +1,8 @@
 <?php
-require_once 'CiviTest/CiviUnitTestCase.php';
 
 /**
  * Class CRM_Utils_RestTest
+ * @group headless
  */
 class CRM_Utils_RestTest extends CiviUnitTestCase {
 
@@ -12,24 +12,24 @@ class CRM_Utils_RestTest extends CiviUnitTestCase {
 
   public function testProcessMultiple() {
     $_SERVER['REQUEST_METHOD'] = 'POST';
-    $input = array(
-      'cow' => array(
+    $input = [
+      'cow' => [
         'contact',
         'create',
-        array(
+        [
           'contact_type' => 'Individual',
           'first_name' => 'Cow',
-        ),
-      ),
-      'sheep' => array(
+        ],
+      ],
+      'sheep' => [
         'contact',
         'create',
-        array(
+        [
           'contact_type' => 'Individual',
           'first_name' => 'Sheep',
-        ),
-      ),
-    );
+        ],
+      ],
+    ];
     $_REQUEST['json'] = json_encode($input);
     $output = CRM_Utils_REST::processMultiple();
     $this->assertGreaterThan(0, $output['cow']['id']);