From: Tim Otten Date: Mon, 22 Dec 2014 23:05:37 +0000 (-0800) Subject: api_v3_ActivityTypeTest - useTransaction() X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=cfba875b25ad8e56d7399c8636e9235b8f975415;p=civicrm-core.git api_v3_ActivityTypeTest - useTransaction() --- diff --git a/tests/phpunit/api/v3/ActivityTypeTest.php b/tests/phpunit/api/v3/ActivityTypeTest.php index 6920029e51..79a97a8706 100644 --- a/tests/phpunit/api/v3/ActivityTypeTest.php +++ b/tests/phpunit/api/v3/ActivityTypeTest.php @@ -40,6 +40,7 @@ class api_v3_ActivityTypeTest extends CiviUnitTestCase { $this->_apiversion = 3; CRM_Core_PseudoConstant::activityType(TRUE, TRUE, TRUE, 'name'); parent::setUp(); + $this->useTransaction(TRUE); } /** @@ -56,7 +57,6 @@ class api_v3_ActivityTypeTest extends CiviUnitTestCase { * Test civicrm_activity_type_create() */ function testActivityTypeCreate() { - $params = array( 'weight' => '2', 'label' => 'send out letters', @@ -72,7 +72,6 @@ class api_v3_ActivityTypeTest extends CiviUnitTestCase { * Test civicrm_activity_type_create - check id */ function testActivityTypecreatecheckId() { - $params = array( 'label' => 'type_create', 'weight' => '2', @@ -86,7 +85,6 @@ class api_v3_ActivityTypeTest extends CiviUnitTestCase { * Test civicrm_activity_type_delete() */ function testActivityTypeDelete() { - $params = array( 'label' => 'type_create_delete', 'weight' => '2',