<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.3 |
+ | CiviCRM version 4.5 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2013 |
+ | Copyright CiviCRM LLC (c) 2004-2014 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
* @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.
*/
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);
}
/**