Autoformat /tests directory with php short array syntax
[civicrm-core.git] / tests / phpunit / CRM / UF / Page / ProfileEditorTest.php
index 55433d3eda1a83f6d6bcdddca6a234d441353e68..6ee808a4356161ad6d23ba03d79d33f9bd11f39b 100644 (file)
@@ -1,19 +1,20 @@
 <?php
-require_once 'CiviTest/CiviUnitTestCase.php';
 
 /**
  * Class CRM_UF_Page_ProfileEditorTest
+ * @group headless
  */
 class CRM_UF_Page_ProfileEditorTest extends CiviUnitTestCase {
-  function setUp() {
+
+  public function setUp() {
     parent::setUp();
   }
 
   /**
-   * Spot check a few fields that should appear in schema
+   * Spot check a few fields that should appear in schema.
    */
-  function testGetSchema() {
-    $schema = CRM_UF_Page_ProfileEditor::getSchema(array('IndividualModel', 'ActivityModel'));
+  public function testGetSchema() {
+    $schema = CRM_UF_Page_ProfileEditor::getSchema(['IndividualModel', 'ActivityModel']);
     foreach ($schema as $entityName => $entityDef) {
       foreach ($entityDef['schema'] as $fieldName => $fieldDef) {
         $this->assertNotEmpty($fieldDef['type']);
@@ -43,4 +44,5 @@ class CRM_UF_Page_ProfileEditorTest extends CiviUnitTestCase {
     $this->assertTrue(empty($schema['ActivityModel']['schema']['street_address']));
 
   }
+
 }