projects
/
civicrm-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a73525a
)
api_v3_OptionGroupTest - useTransaction()
author
Tim Otten
<totten@civicrm.org>
Mon, 22 Dec 2014 23:05:38 +0000
(15:05 -0800)
committer
Tim Otten
<totten@civicrm.org>
Mon, 22 Dec 2014 23:09:14 +0000
(15:09 -0800)
tests/phpunit/api/v3/OptionGroupTest.php
patch
|
blob
|
blame
|
history
diff --git
a/tests/phpunit/api/v3/OptionGroupTest.php
b/tests/phpunit/api/v3/OptionGroupTest.php
index 7b91b4365c7aaacc42c6a2438a2ab9421ebe6bc7..ffce423da0fb2eb2dcb5f858a16f176bf5fa83d9 100644
(file)
--- 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,