From: Tim Otten Date: Mon, 22 Dec 2014 23:05:38 +0000 (-0800) Subject: api_v3_OptionGroupTest - useTransaction() X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=370ca0ffcbf50001c32ec2533431834b5cd3aa6e;p=civicrm-core.git api_v3_OptionGroupTest - useTransaction() --- diff --git a/tests/phpunit/api/v3/OptionGroupTest.php b/tests/phpunit/api/v3/OptionGroupTest.php index 7b91b4365c..ffce423da0 100644 --- a/tests/phpunit/api/v3/OptionGroupTest.php +++ b/tests/phpunit/api/v3/OptionGroupTest.php @@ -37,6 +37,7 @@ class api_v3_OptionGroupTest extends CiviUnitTestCase { function setUp() { parent::setUp(); + $this->useTransaction(TRUE); $this->_params = array( 'name' => 'our test Option Group', 'is_reserved' => 1, @@ -44,7 +45,6 @@ class api_v3_OptionGroupTest extends CiviUnitTestCase { ); } - function tearDown() {} /* * Good to test option group as a representative on the Camel Case */ @@ -118,6 +118,7 @@ class api_v3_OptionGroupTest extends CiviUnitTestCase { 'name' => 'civicrm_rolback_test', 'is_reserved' => 1, 'is_active' => 1, + 'is_transactional' => 'nest', // executing within useTransactional() test case 'api.OptionValue.create' => array( 'label' => 'invalid entry', 'value' => 35,