From cec5b0b986a77bea695214cb564be1ceee1fed37 Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Wed, 27 Apr 2016 11:52:47 -0700 Subject: [PATCH] CRM-17984 - CustomGroupTest - Fix style errors There were problems in this line: * The missing comma (required by Drupal style) * The use of literal CtrlA causes phpcs to produce invalid output --- tests/phpunit/CRM/Core/BAO/CustomGroupTest.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/phpunit/CRM/Core/BAO/CustomGroupTest.php b/tests/phpunit/CRM/Core/BAO/CustomGroupTest.php index 74cd8e335c..39b7e6c933 100644 --- a/tests/phpunit/CRM/Core/BAO/CustomGroupTest.php +++ b/tests/phpunit/CRM/Core/BAO/CustomGroupTest.php @@ -83,11 +83,12 @@ class CRM_Core_BAO_CustomGroupTest extends CiviUnitTestCase { * inconsistency. */ public function testGetTreeCampaignSubType() { + $sep = CRM_Core_DAO::VALUE_SEPARATOR; $this->campaignCreate(); $this->campaignCreate(); $customGroup = $this->CustomGroupCreate(array( 'extends' => 'Campaign', - 'extends_entity_column_value' => '12' + 'extends_entity_column_value' => "{$sep}1{$sep}2{$sep}", )); $customField = $this->customFieldCreate(array('custom_group_id' => $customGroup['id'])); $result1 = CRM_Core_BAO_CustomGroup::getTree('Campaign', NULL, NULL, NULL, '12'); -- 2.25.1