From d122e297277d34794b18ea47badc2ee2c3313e00 Mon Sep 17 00:00:00 2001 From: eileen Date: Sat, 22 Jun 2013 19:34:57 +1200 Subject: [PATCH] survey respondent test = e-notice compliant --- api/v3/examples/SurveyRespondantGet.php | 4 ++-- tests/phpunit/api/v3/SurveyRespondantTest.php | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/api/v3/examples/SurveyRespondantGet.php b/api/v3/examples/SurveyRespondantGet.php index 81a48fc320..c77a550999 100644 --- a/api/v3/examples/SurveyRespondantGet.php +++ b/api/v3/examples/SurveyRespondantGet.php @@ -4,7 +4,7 @@ */ function survey_respondant_get_example(){ -$params = array( +$params = array( 'version' => 3, 'sequential' => '1', 'survey_id' => 1, @@ -20,7 +20,7 @@ $params = array( */ function survey_respondant_get_expectedresult(){ - $expectedResult = array( + $expectedResult = array( 'is_error' => 0, 'version' => 3, 'count' => 0, diff --git a/tests/phpunit/api/v3/SurveyRespondantTest.php b/tests/phpunit/api/v3/SurveyRespondantTest.php index 6e591007ba..d7cea28c64 100644 --- a/tests/phpunit/api/v3/SurveyRespondantTest.php +++ b/tests/phpunit/api/v3/SurveyRespondantTest.php @@ -30,6 +30,8 @@ require_once 'CiviTest/CiviUnitTestCase.php'; class api_v3_SurveyRespondantTest extends CiviUnitTestCase { protected $_apiversion; protected $params; + public $_eNoticeCompliant = TRUE; + function setUp() { $this->_apiversion = 3; $phoneBankActivity = civicrm_api('Option_value', 'Get', array('label' => 'PhoneBank', 'version' => $this->_apiversion, 'sequential' => 1)); -- 2.25.1