From 0c250cae5c0e59900f1f464b2c54541c907b7107 Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Mon, 22 Dec 2014 11:59:59 -0800 Subject: [PATCH] api_v3_SurveyTest --- tests/phpunit/api/v3/SurveyTest.php | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/tests/phpunit/api/v3/SurveyTest.php b/tests/phpunit/api/v3/SurveyTest.php index 0b80f4f398..06ca4da8df 100644 --- a/tests/phpunit/api/v3/SurveyTest.php +++ b/tests/phpunit/api/v3/SurveyTest.php @@ -56,6 +56,7 @@ class api_v3_SurveyTest extends CiviUnitTestCase { function setUp() { $phoneBankActivityTypeID = $this->callAPISuccessGetValue('Option_value', array('label' => 'PhoneBank', 'return' => 'value'), 'integer'); + $this->useTransaction(); $this->enableCiviCampaign(); $this->params = array( 'title' => "survey title", @@ -66,16 +67,6 @@ class api_v3_SurveyTest extends CiviUnitTestCase { parent::setUp(); } -/** - * Here we clean up any test data we created. - * Note that the quickCleanup function turns off Foreign keys first - * so will not remove related entities - */ - function tearDown() { - $tablesToTruncate = array('civicrm_survey'); - $this->quickCleanup($tablesToTruncate); - } - /** * Test create function succeeds */ -- 2.25.1