From: jitendrapurohit Date: Tue, 8 Jul 2014 13:42:01 +0000 (+0530) Subject: API Test fix 4.5beta2 X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=82e4a144de846d5b59ce33649f61c24d9637bd31;p=civicrm-core.git API Test fix 4.5beta2 --- diff --git a/CRM/Member/BAO/MembershipBlock.php b/CRM/Member/BAO/MembershipBlock.php index f4367a2210..88465ae1e7 100644 --- a/CRM/Member/BAO/MembershipBlock.php +++ b/CRM/Member/BAO/MembershipBlock.php @@ -56,6 +56,7 @@ class CRM_Member_BAO_MembershipBlock extends CRM_Member_DAO_MembershipBlock { $dao->copyValues($params); $dao->id = CRM_Utils_Array::value('id', $params); CRM_Utils_Hook::post($hook, 'MembershipBlock', $dao->id, $dao); + $dao->save(); return $dao; } diff --git a/tests/phpunit/api/v3/GrantTest.php b/tests/phpunit/api/v3/GrantTest.php index e8c9a25d23..5909e5ee8f 100644 --- a/tests/phpunit/api/v3/GrantTest.php +++ b/tests/phpunit/api/v3/GrantTest.php @@ -84,7 +84,7 @@ class api_v3_GrantTest extends CiviUnitTestCase { $ids['custom_group_id'] = $result['id']; $customTable = $result['values'][$result['id']]['table_name']; $result = $this->customFieldCreate(array( - 'html_type' => 'Checkbox', + 'html_type' => 'CheckBox', 'custom_group_id' => $ids['custom_group_id'], 'option_values' => array( array('label' => 'my valley', 'value' => 'valley', 'is_active' => TRUE, 'weight' => 1),