From 1fde2cb2799e9f9a55baa070584e0ee8d1360f5d Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Mon, 22 Dec 2014 15:05:38 -0800 Subject: [PATCH] api_v3_LocBlockTest - useTransaction() --- tests/phpunit/api/v3/LocBlockTest.php | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/tests/phpunit/api/v3/LocBlockTest.php b/tests/phpunit/api/v3/LocBlockTest.php index 2cbe617c33..2b62afe54d 100644 --- a/tests/phpunit/api/v3/LocBlockTest.php +++ b/tests/phpunit/api/v3/LocBlockTest.php @@ -36,9 +36,7 @@ class api_v3_LocBlockTest extends CiviUnitTestCase { public function setUp() { parent::setUp(); - } - - function tearDown() { + $this->useTransaction(TRUE); } public function testCreateLocBlock() { @@ -113,11 +111,5 @@ class api_v3_LocBlockTest extends CiviUnitTestCase { $result = $this->callAPISuccess($this->_entity, 'delete', array('id' => $id)); } - public static function setUpBeforeClass() { - // put stuff here that should happen before all tests in this unit - } - - public static function tearDownAfterClass(){ - } } -- 2.25.1