From c955c26c8f1d69bee4bd7760125e1d4cfc2a0b84 Mon Sep 17 00:00:00 2001 From: Seamus Lee Date: Sat, 23 Jul 2016 08:23:11 +1000 Subject: [PATCH] CRM-19118 Fix Syntax Confromance test by specifiy data for children and parent fields when generating test data --- CRM/Contact/BAO/Group.php | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) 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); + } + } + } -- 2.25.1