Merge pull request #4789 from totten/master-test-tx
[civicrm-core.git] / tests / phpunit / api / v3 / ContributionSoftTest.php
index ad1a5af425fc42935967d1189524092a70e81430..6884bb71d95652bc9670be76cc46ddada3a35462 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 /*
  +--------------------------------------------------------------------+
- | CiviCRM version 4.5                                                |
+ | CiviCRM version 4.6                                                |
  +--------------------------------------------------------------------+
  | Copyright CiviCRM LLC (c) 2004-2014                                |
  +--------------------------------------------------------------------+
@@ -52,6 +52,7 @@ class api_v3_ContributionSoftTest extends CiviUnitTestCase {
 
   function setUp() {
     parent::setUp();
+    $this->useTransaction(TRUE);
 
     $this->_individualId = $this->individualCreate();
     $this->_softIndividual1Id = $this->individualCreate();
@@ -83,24 +84,8 @@ class api_v3_ContributionSoftTest extends CiviUnitTestCase {
     );
   }
 
-  function tearDown() {
-    $this->quickCleanup(array(
-      'civicrm_contribution',
-      'civicrm_event',
-      'civicrm_contribution_page',
-      'civicrm_participant',
-      'civicrm_participant_payment',
-      'civicrm_line_item',
-      'civicrm_financial_trxn',
-      'civicrm_financial_item',
-      'civicrm_entity_financial_trxn',
-      'civicrm_contact',
-      'civicrm_contribution_soft'
-    ));
-  }
-
   /**
-   * test get methods
+   * Test get methods
    * @todo - this might be better broken down into more smaller tests
    */
   function testGetContributionSoft() {