From cfba875b25ad8e56d7399c8636e9235b8f975415 Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Mon, 22 Dec 2014 15:05:37 -0800 Subject: [PATCH] api_v3_ActivityTypeTest - useTransaction() --- tests/phpunit/api/v3/ActivityTypeTest.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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', -- 2.25.1