Merge pull request #7895 from cividesk/CRM-18130-master
[civicrm-core.git] / tests / phpunit / api / v3 / CRM11793Test.php
index 2fecf4f014ed70b9d55e5b86661acecba03f1761..f7dc52b00e8336d321b36906dba5c00a79cb98d1 100644 (file)
@@ -3,21 +3,20 @@
  *  File for the CRM11793 issue
  *  Include class definitions
  */
-require_once 'CiviTest/CiviUnitTestCase.php';
-
 
 /**
  *  Test APIv3 civicrm_activity_* functions
  *
  * @package   CiviCRM
+ * @group headless
  */
 class api_v3_CRM11793Test extends CiviUnitTestCase {
 
   /**
-   *  Test setup for every test
+   * Test setup for every test.
    *
-   *  Connect to the database, truncate the tables that will be used
-   *  and redirect stdin to a temporary file
+   * Connect to the database, truncate the tables that will be used
+   * and redirect stdin to a temporary file
    */
   public function setUp() {
     //  Connect to the database
@@ -35,10 +34,10 @@ class api_v3_CRM11793Test extends CiviUnitTestCase {
   }
 
   /**
-   *  Test civicrm_contact_create
+   * Test civicrm_contact_create.
    *
-   *  Verify that attempt to create individual contact with only
-   *  first and last names succeeds
+   * Verify that attempt to create individual contact with only
+   * first and last names succeeds
    */
   public function testCRM11793Organization() {
     $this->_testCRM11793ContactType('Organization');
@@ -47,6 +46,7 @@ class api_v3_CRM11793Test extends CiviUnitTestCase {
   public function testCRM11793Household() {
     $this->_testCRM11793ContactType('Household');
   }
+
   public function testCRM11793Individual() {
     $this->_testCRM11793ContactType('Individual');
   }
@@ -59,7 +59,7 @@ class api_v3_CRM11793Test extends CiviUnitTestCase {
       'contact',
       'get',
       array(
-        'contact_type' => $contactType
+        'contact_type' => $contactType,
       )
     );
 
@@ -67,4 +67,5 @@ class api_v3_CRM11793Test extends CiviUnitTestCase {
       $this->assertEquals($contact['contact_type'], $contactType, "In line " . __LINE__);
     }
   }
+
 }