From 72054bb51dda248847321a14fd0413891b829210 Mon Sep 17 00:00:00 2001 From: Seamus Lee Date: Fri, 20 May 2016 11:31:12 +0000 Subject: [PATCH] Convert test to having multiple custom groups separated by VALUE_SEPARATOR --- tests/phpunit/CRM/Core/BAO/CustomGroupTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/phpunit/CRM/Core/BAO/CustomGroupTest.php b/tests/phpunit/CRM/Core/BAO/CustomGroupTest.php index 887049a0bf..30de68a896 100644 --- a/tests/phpunit/CRM/Core/BAO/CustomGroupTest.php +++ b/tests/phpunit/CRM/Core/BAO/CustomGroupTest.php @@ -106,7 +106,7 @@ class CRM_Core_BAO_CustomGroupTest extends CiviUnitTestCase { $contactType2 = $this->callAPISuccess('ContactType', 'create', array('name' => 'Small Bank', 'label' => 'smallee', 'parent_id' => 'Organization')); $customGroup = $this->CustomGroupCreate(array('extends' => 'Organization', 'extends_entity_column_value' => array('Big_Bank', 'Small_Bank'))); $customField = $this->customFieldCreate(array('custom_group_id' => $customGroup['id'])); - $result1 = CRM_Core_BAO_CustomGroup::getTree('Organization', NULL, NULL, NULL, array('Big_Bank')); + $result1 = CRM_Core_BAO_CustomGroup::getTree('Organization', NULL, NULL, NULL, CRM_Core_DAO::VALUE_SEPARATOR . 'Big_Bank' . CRM_Core_DAO::VALUE_SEPARATOR . 'Small_Bank' . CRM_Core_DAO::VALUE_SEPARATOR); $this->assertEquals('Custom Field', $result1[$customGroup['id']]['fields'][$customField['id']]['label']); $this->customGroupDelete($customGroup['id']); $this->callAPISuccess('ContactType', 'delete', array('id' => $contactType1['id'])); -- 2.25.1