CRM-16077 - Remove unsupported test cases
authorColeman Watts <coleman@civicrm.org>
Mon, 9 Mar 2015 20:31:49 +0000 (16:31 -0400)
committerColeman Watts <coleman@civicrm.org>
Mon, 9 Mar 2015 20:31:49 +0000 (16:31 -0400)
The grant tests gave custom field data in some obscure unsupported formats.
Rather than try to restore support for them I move to just remove the failing tests.
Justification: api for core fields haven't supported these formats in years.

tests/phpunit/api/v3/GrantTest.php

index 84267928ea0bf4fd051d6ac07569aec43603f567..0604331b3d440517b923df4cb7d03fcf0cccf8ef 100644 (file)
@@ -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);