SurveyTest Fix
authorjitendrapurohit <jitendra.purohit@webaccess.co.in>
Thu, 27 Mar 2014 14:33:12 +0000 (20:03 +0530)
committerjitendrapurohit <jitendra.purohit@webaccess.co.in>
Thu, 27 Mar 2014 14:33:12 +0000 (20:03 +0530)
tests/phpunit/api/v3/SurveyTest.php

index b751befff32613d05cb847236b9b42580faa2090..ec29b0750e13c8454b1f5233670d03d713c04269 100644 (file)
@@ -55,7 +55,8 @@ class api_v3_SurveyTest extends CiviUnitTestCase {
 
 
   function setUp() {
-    $phoneBankActivityTypeID = $this->callAPISuccessGetValue('Option_value', array('label' => 'PhoneBank', 'return' => 'id'), 'integer');
+    $phoneBankActivityTypeID = $this->callAPISuccessGetValue('Option_value', array('label' => 'PhoneBank', 'return' => 'value'), 'integer');
+    $this->enableCiviCampaign();
     $this->params = array(
       'title' => "survey title",
       'activity_type_id' => $phoneBankActivityTypeID,