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:
ba399c1
)
api_v3_MembershipTypeTest - Change quickCleanup() to useTransaction()
author
Tim Otten
<totten@civicrm.org>
Mon, 22 Dec 2014 20:51:56 +0000
(12:51 -0800)
committer
Tim Otten
<totten@civicrm.org>
Mon, 22 Dec 2014 22:07:02 +0000
(14:07 -0800)
tests/phpunit/api/v3/MembershipTypeTest.php
patch
|
blob
|
blame
|
history
diff --git
a/tests/phpunit/api/v3/MembershipTypeTest.php
b/tests/phpunit/api/v3/MembershipTypeTest.php
index 1ccf3be47f4a45151d23f767946f664107e07b25..c679f7a89264720a23935fd69eef92e0c776a200 100644
(file)
--- a/
tests/phpunit/api/v3/MembershipTypeTest.php
+++ b/
tests/phpunit/api/v3/MembershipTypeTest.php
@@
-51,15
+51,11
@@
class api_v3_MembershipTypeTest extends CiviUnitTestCase {
function setUp() {
parent::setUp();
+ $this->useTransaction(TRUE);
$this->_apiversion = 3;
$this->_contactID = $this->organizationCreate(NULL);
}
- function tearDown() {
- $tablesToTruncate = array('civicrm_contact');
- $this->quickCleanup($tablesToTruncate);
- }
-
function testGetWithoutId() {
$params = array(
'name' => '60+ Membership',