From dd348dec9bca6ab5da6fa013a6763f3e1ccf76fb Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Mon, 22 Dec 2014 12:03:35 -0800 Subject: [PATCH] api_v3_SurveyRespondantTest.php --- tests/phpunit/api/v3/SurveyRespondantTest.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/tests/phpunit/api/v3/SurveyRespondantTest.php b/tests/phpunit/api/v3/SurveyRespondantTest.php index e922fcd857..563cfa3d90 100644 --- a/tests/phpunit/api/v3/SurveyRespondantTest.php +++ b/tests/phpunit/api/v3/SurveyRespondantTest.php @@ -36,6 +36,8 @@ class api_v3_SurveyRespondantTest extends CiviUnitTestCase { function setUp() { + parent::setUp(); + $this->useTransaction(TRUE); $phoneBankActivity = $this->callAPISuccess('Option_value', 'Get', array('label' => 'PhoneBank', 'sequential' => 1)); $phoneBankActivityTypeID = $phoneBankActivity['values'][0]['value']; $surveyParams = array( @@ -49,11 +51,6 @@ class api_v3_SurveyRespondantTest extends CiviUnitTestCase { 'sequential' =>'1', 'survey_id' => $surveyID ); - parent::setUp(); - } - - function tearDown() { - $this->quickCleanup(array('civicrm_survey')); } /** -- 2.25.1