api_v3_SurveyRespondantTest.php
authorTim Otten <totten@civicrm.org>
Mon, 22 Dec 2014 20:03:35 +0000 (12:03 -0800)
committerTim Otten <totten@civicrm.org>
Mon, 22 Dec 2014 22:05:05 +0000 (14:05 -0800)
tests/phpunit/api/v3/SurveyRespondantTest.php

index e922fcd857f7b96b1ceb104cbe20354a262bccfb..563cfa3d901b3f08d369080b8e4d810d5771987b 100644 (file)
@@ -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'));
   }
 
   /**