X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Fapi%2Fv3%2FCRM11793Test.php;h=61484322fe3fe5dca88a084339fe9bd692b3fd35;hb=6b83d5bdd0f2ca546924feae6aa42aeddb1d40cf;hp=a30028faf0786e735b2cf58fbabd2175404b7bd8;hpb=49e5328671aec2d1a841fdd615b0d85e6c8fcfed;p=civicrm-core.git diff --git a/tests/phpunit/api/v3/CRM11793Test.php b/tests/phpunit/api/v3/CRM11793Test.php index a30028faf0..61484322fe 100644 --- a/tests/phpunit/api/v3/CRM11793Test.php +++ b/tests/phpunit/api/v3/CRM11793Test.php @@ -3,13 +3,12 @@ * 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 { @@ -20,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() {