<?php
/*
+--------------------------------------------------------------------+
-| CiviCRM version 4.7 |
+| CiviCRM version 5 |
+--------------------------------------------------------------------+
-| Copyright CiviCRM LLC (c) 2004-2017 |
+| Copyright CiviCRM LLC (c) 2004-2018 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
$this->assertEquals($attachment['id'], $result[$cfId]);
}
+ public function testUpdateCustomField() {
+ $customGroup = $this->customGroupCreate(array('extends' => 'Individual'));
+ $params = array('id' => $customGroup['id'], 'is_active' => 0);
+ $result = $this->callAPISuccess('CustomGroup', 'create', $params);
+ $result = array_shift($result['values']);
+
+ $this->assertEquals(0, $result['is_active']);
+
+ $this->customGroupDelete($customGroup['id']);
+ }
+
/**
* @param $getFieldsResult
*