From: Coleman Watts Date: Mon, 9 Mar 2015 20:31:49 +0000 (-0400) Subject: CRM-16077 - Remove unsupported test cases X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=7c212cbe4dc421deafe0514e9131c435c1d78699;p=civicrm-core.git CRM-16077 - Remove unsupported test cases 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. --- diff --git a/tests/phpunit/api/v3/GrantTest.php b/tests/phpunit/api/v3/GrantTest.php index 84267928ea..0604331b3d 100644 --- a/tests/phpunit/api/v3/GrantTest.php +++ b/tests/phpunit/api/v3/GrantTest.php @@ -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);