api_v3_LocBlockTest - useTransaction()
[civicrm-core.git] / tests / phpunit / api / v3 / BatchTest.php
index 3b1c7a8a12be5bb35c412081302d1b2ff83c01f3..22f462ad7032612b2656558b4dae7c1416d3e542 100644 (file)
@@ -37,15 +37,6 @@ class api_v3_BatchTest extends CiviUnitTestCase {
   protected $_params = array();
   protected $_entity = 'batch';
 
-  /**
-   *  Constructor
-   *
-   *  Initialize configuration
-   */
-  function __construct() {
-    parent::__construct();
-  }
-
   /**
    * Sets up the fixture, for example, opens a network connection.
    * This method is called before a test is executed.
@@ -54,17 +45,7 @@ class api_v3_BatchTest extends CiviUnitTestCase {
    */
   protected function setUp() {
     parent::setUp();
-  }
-
-  /**
-   * Tears down the fixture, for example, closes a network connection.
-   * This method is called after a test is executed.
-   *
-   * @access protected
-   */
-  protected function tearDown() {
-    $tablesToTruncate = array('civicrm_batch');
-    $this->quickCleanup($tablesToTruncate);
+    $this->useTransaction(TRUE);
   }
 
   /**