From e150f7c9d5d91a729f366b328b7e5fda50a9e6d7 Mon Sep 17 00:00:00 2001 From: Edsel Date: Wed, 19 Oct 2016 19:28:53 +0530 Subject: [PATCH] CRM-19540 Fixed API test failures ---------------------------------------- * CRM-19540: UFGroup API does not respect name parameter https://issues.civicrm.org/jira/browse/CRM-19540 --- tests/phpunit/api/v3/UFGroupTest.php | 8 -------- 1 file changed, 8 deletions(-) diff --git a/tests/phpunit/api/v3/UFGroupTest.php b/tests/phpunit/api/v3/UFGroupTest.php index 204680804e..4aec70e25c 100644 --- a/tests/phpunit/api/v3/UFGroupTest.php +++ b/tests/phpunit/api/v3/UFGroupTest.php @@ -125,10 +125,6 @@ class api_v3_UFGroupTest extends CiviUnitTestCase { } $expected = $this->params[$key]; $received = $result['values'][$result['id']][$key]; - // group names are renamed to name_id by BAO - if ($key == 'name') { - $expected = $this->params[$key] . '_' . $result['id']; - } $this->assertEquals($expected, $received, "The string '$received' does not equal '$expected' for key '$key' in line " . __LINE__); } } @@ -187,10 +183,6 @@ class api_v3_UFGroupTest extends CiviUnitTestCase { } $expected = $this->params[$key]; $received = $result['values'][$result['id']][$key]; - // group names are renamed to name_id by BAO - if ($key == 'name') { - $expected = $this->params[$key] . '_' . $result['id']; - } $this->assertEquals($expected, $received, "The string '$received' does not equal '$expected' for key '$key' in line " . __LINE__); } } -- 2.25.1