CRM-17984 - CustomGroupTest - Fix style errors
authorTim Otten <totten@civicrm.org>
Wed, 27 Apr 2016 18:52:47 +0000 (11:52 -0700)
committerTim Otten <totten@civicrm.org>
Wed, 27 Apr 2016 18:52:47 +0000 (11:52 -0700)
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

index efd65a52070c797e86b321d910c50d5a16565ca3..9e07753e5f2c7b67c5698a08b7db3f093199d9e9 100644 (file)
@@ -79,11 +79,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' => '\ 11\ 12\ 1'
+      '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, '\ 11\ 12\ 1');