From cd5e1cac735fbe23039433b005601b00c1b27ffa Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Mon, 22 Dec 2014 11:59:38 -0800 Subject: [PATCH] api_v3_WebsiteTest --- tests/phpunit/api/v3/WebsiteTest.php | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/tests/phpunit/api/v3/WebsiteTest.php b/tests/phpunit/api/v3/WebsiteTest.php index 79771e292b..bdc2e1a9ab 100644 --- a/tests/phpunit/api/v3/WebsiteTest.php +++ b/tests/phpunit/api/v3/WebsiteTest.php @@ -45,6 +45,7 @@ class api_v3_WebsiteTest extends CiviUnitTestCase { function setUp() { parent::setUp(); + $this->useTransaction(); $this->_entity = 'website'; $this->_contactID = $this->organizationCreate(); @@ -55,13 +56,6 @@ class api_v3_WebsiteTest extends CiviUnitTestCase { ); } - function tearDown() { - $this->quickCleanup(array( - 'civicrm_website', - 'civicrm_contact' - )); - } - public function testCreateWebsite() { $result = $this->callAPIAndDocument($this->_entity, 'create', $this->params, __FUNCTION__, __FILE__); $this->assertEquals(1, $result['count'], 'In line ' . __LINE__); -- 2.25.1