Merge pull request #5536 from totten/4.5-httpclient
[civicrm-core.git] / tests / phpunit / api / v3 / GrantTest.php
index 84267928ea0bf4fd051d6ac07569aec43603f567..a581bd499f5599a85c620e16185c3e88c1bc06d7 100644 (file)
@@ -3,7 +3,7 @@
  +--------------------------------------------------------------------+
  | CiviCRM version 4.6                                                |
  +--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2014                                |
+ | Copyright CiviCRM LLC (c) 2004-2015                                |
  +--------------------------------------------------------------------+
  | This file is a part of CiviCRM.                                    |
  |                                                                    |
@@ -119,19 +119,6 @@ class api_v3_GrantTest extends CiviUnitTestCase {
     $savedValue = CRM_Core_DAO::singleValueQuery("SELECT {$columnName} FROM $customTable WHERE entity_id = {$result['id']}");
     $this->assertEquals($expectedValue, $savedValue);
 
-    // & check it will do the separating
-    $this->params[$customFieldLabel] = 'valley,goat';
-    $result = $this->callAPISuccess($this->_entity, 'create', $this->params);
-    $savedValue = CRM_Core_DAO::singleValueQuery("SELECT {$columnName} FROM $customTable WHERE entity_id = {$result['id']}");
-    $this->assertEquals($expectedValue, $savedValue);
-
-    //& here is the odd but previously supported (form-oriented) format
-    //& an array for good measure
-    $this->params[$customFieldLabel] = array('valley' => 1, 'goat' => 1);
-    $result = $this->callAPISuccess($this->_entity, 'create', $this->params);
-    $savedValue = CRM_Core_DAO::singleValueQuery("SELECT {$columnName} FROM $customTable WHERE entity_id = {$result['id']}");
-    $this->assertEquals($expectedValue, $savedValue);
-
     //& an array for good measure
     $this->params[$customFieldLabel] = array('valley', 'goat');
     $result = $this->callAPISuccess($this->_entity, 'create', $this->params);