Update Copywrite year to be 2019
[civicrm-core.git] / tests / phpunit / api / v3 / CRM11793Test.php
index 7df9c9cdcc5e5ee64b1968959d1241b6047ef5e5..61484322fe3fe5dca88a084339fe9bd692b3fd35 100644 (file)
@@ -3,42 +3,37 @@
  *  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
     parent::setUp();
 
-    require_once 'CiviTest/Contact.php';
-
-    // lets create one contact of each type
-    Contact::createIndividual();
-    Contact::createHousehold();
-    Contact::createOrganisation();
+    $this->individualCreate();
+    $this->householdCreate();
+    $this->organizationCreate();
   }
 
   public function tearDown() {
   }
 
   /**
-   *  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');