From: Seamus Lee Date: Fri, 22 Jul 2016 22:23:11 +0000 (+1000) Subject: CRM-19118 Fix Syntax Confromance test by specifiy data for children and parent fields... X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=c955c26c8f1d69bee4bd7760125e1d4cfc2a0b84;p=civicrm-core.git CRM-19118 Fix Syntax Confromance test by specifiy data for children and parent fields when generating test data --- diff --git a/CRM/Contact/BAO/Group.php b/CRM/Contact/BAO/Group.php index cf6483eba9..e6ff9a8006 100644 --- a/CRM/Contact/BAO/Group.php +++ b/CRM/Contact/BAO/Group.php @@ -1323,4 +1323,20 @@ WHERE {$whereClause}"; return CRM_Utils_PagerAToZ::getAToZBar($dao, $this->_sortByCharacter, TRUE); } + /** + * Assign Test Value. + * + * @param string $fieldName + * @param array $fieldDef + * @param int $counter + */ + protected function assignTestValue($fieldName, &$fieldDef, $counter) { + if ($fieldName == 'children' || $fieldName = 'parents') { + $this->{$fieldName} = "NULL"; + } + else { + parent::assignTestValues($fieldaName, $fieldDef, $counter); + } + } + }