API Test fix 4.5beta2
authorjitendrapurohit <jituraj7760@gmail.com>
Tue, 8 Jul 2014 13:42:01 +0000 (19:12 +0530)
committerjitendrapurohit <jituraj7760@gmail.com>
Wed, 9 Jul 2014 05:30:02 +0000 (11:00 +0530)
CRM/Member/BAO/MembershipBlock.php
tests/phpunit/api/v3/GrantTest.php

index f4367a22100d85cde80106d70642943f3ed65a9f..88465ae1e7b18058f9d8d004b0d98df72eebf890 100644 (file)
@@ -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;
   }
 
index e8c9a25d23f1b85dc10d029fded60e4a93234a60..5909e5ee8faf9b91e5aa68fd247477bb1fd150ed 100644 (file)
@@ -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),