X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Fapi%2Fv3%2FBatchTest.php;h=22f462ad7032612b2656558b4dae7c1416d3e542;hb=1fde2cb2799e9f9a55baa070584e0ee8d1360f5d;hp=3b1c7a8a12be5bb35c412081302d1b2ff83c01f3;hpb=4c95b949e863281d990ffa2a3104415079e6352d;p=civicrm-core.git diff --git a/tests/phpunit/api/v3/BatchTest.php b/tests/phpunit/api/v3/BatchTest.php index 3b1c7a8a12..22f462ad70 100644 --- a/tests/phpunit/api/v3/BatchTest.php +++ b/tests/phpunit/api/v3/BatchTest.php @@ -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); } /**