Update Copywrite year to be 2019
[civicrm-core.git] / tests / phpunit / api / v3 / CRM11793Test.php
index bd15adc12be78c8a60a774efc8d875a1794b0194..61484322fe3fe5dca88a084339fe9bd692b3fd35 100644 (file)
@@ -8,6 +8,7 @@
  *  Test APIv3 civicrm_activity_* functions
  *
  * @package   CiviCRM
+ * @group headless
  */
 class api_v3_CRM11793Test extends CiviUnitTestCase {
 
@@ -18,15 +19,11 @@ class api_v3_CRM11793Test extends CiviUnitTestCase {
    * 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() {