callAPISuccess('Option_value', 'Get', array('label' => 'PhoneBank', 'sequential' => 1)); $phoneBankActivityTypeID = $phoneBankActivity['values'][0]['value']; $surveyParams = array( 'title' => "survey respondent", 'activity_type_id' => $phoneBankActivityTypeID, 'instructions' => "Call people, ask for money", ); $survey = $this->callAPISuccess('survey', 'create', $surveyParams); $surveyID = $survey['id']; $this->params = array ( 'sequential' =>'1', 'survey_id' => $surveyID ); parent::setUp(); } function tearDown() { $this->quickCleanup(array('civicrm_survey')); } /** * Test survey respondent get. */ public function testGetSurveyRespondants() { $result = $this->callAPIAndDocument("SurveyRespondant","get", $this->params, __FUNCTION__, __FILE__); } }