api_v3_LocBlockTest - useTransaction()
[civicrm-core.git] / tests / phpunit / api / v3 / BatchTest.php
index f6895b00e6b4131243d0e663ca4f5e557bb08ccb..22f462ad7032612b2656558b4dae7c1416d3e542 100644 (file)
@@ -1,9 +1,9 @@
 <?php
 /*
  +--------------------------------------------------------------------+
- | CiviCRM version 4.4                                                |
+ | CiviCRM version 4.5                                                |
  +--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2013                                |
+ | Copyright CiviCRM LLC (c) 2004-2014                                |
  +--------------------------------------------------------------------+
  | This file is a part of CiviCRM.                                    |
  |                                                                    |
@@ -33,19 +33,10 @@ require_once 'CiviTest/CiviUnitTestCase.php';
  *  @package CiviCRM_APIv3
  */
 class api_v3_BatchTest extends CiviUnitTestCase {
-  public $_eNoticeCompliant = TRUE;
+
   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);
   }
 
   /**