From 9ce17194ea58313daed289591162c6b0597bad13 Mon Sep 17 00:00:00 2001 From: jitendrapurohit <jitendra.purohit@webaccess.co.in> Date: Thu, 27 Mar 2014 20:03:12 +0530 Subject: [PATCH] SurveyTest Fix --- tests/phpunit/api/v3/SurveyTest.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/phpunit/api/v3/SurveyTest.php b/tests/phpunit/api/v3/SurveyTest.php index b751befff3..ec29b0750e 100644 --- a/tests/phpunit/api/v3/SurveyTest.php +++ b/tests/phpunit/api/v3/SurveyTest.php @@ -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, -- GitLab