Skip to content

Instantly share code, notes, and snippets.

@monishdeb
Created March 24, 2017 15:05
Show Gist options
  • Save monishdeb/dfc0b33db972e03994f88b687bfab1ff to your computer and use it in GitHub Desktop.
Save monishdeb/dfc0b33db972e03994f88b687bfab1ff to your computer and use it in GitHub Desktop.
diff --git a/api/v3/examples/Activity/Create.php b/api/v3/examples/Activity/Create.php
index a380f12..c3fae35 100644
--- a/api/v3/examples/Activity/Create.php
+++ b/api/v3/examples/Activity/Create.php
@@ -8,7 +8,7 @@
function activity_create_example() {
$params = array(
'source_contact_id' => 1,
- 'activity_type_id' => '55',
+ 'activity_type_id' => '99',
'subject' => 'test activity type id',
'activity_date_time' => '2011-06-02 14:36:13',
'status_id' => 2,
@@ -55,7 +55,7 @@ function activity_create_expectedresult() {
'1' => array(
'id' => '1',
'source_record_id' => '',
- 'activity_type_id' => '55',
+ 'activity_type_id' => '99',
'subject' => 'test activity type id',
'activity_date_time' => '20110602143613',
'duration' => '120',
diff --git a/tests/phpunit/api/v3/ActivityTest.php b/tests/phpunit/api/v3/ActivityTest.php
index 5ce55f7..131fe01 100644
--- a/tests/phpunit/api/v3/ActivityTest.php
+++ b/tests/phpunit/api/v3/ActivityTest.php
@@ -64,6 +64,7 @@ class api_v3_ActivityTest extends CiviUnitTestCase {
'option_group_id' => 2,
'name' => 'Test activity type',
'label' => 'Test activity type',
+ 'value' => 99,
'sequential' => 1,
));
$this->test_activity_type_value = $activityTypes['values'][0]['value'];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment