From b81f44ddc02fde63ceba383de45b48e40e95bb23 Mon Sep 17 00:00:00 2001 From: kurund Date: Wed, 7 Aug 2013 16:14:56 +0530 Subject: [PATCH] fixed the test failure due to duplicate contacts being listed --- tests/phpunit/CRM/Contact/BAO/QueryTest.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/phpunit/CRM/Contact/BAO/QueryTest.php b/tests/phpunit/CRM/Contact/BAO/QueryTest.php index e43cbc7abe..de449036a5 100644 --- a/tests/phpunit/CRM/Contact/BAO/QueryTest.php +++ b/tests/phpunit/CRM/Contact/BAO/QueryTest.php @@ -48,6 +48,11 @@ class CRM_Contact_BAO_QueryTest extends CiviUnitTestCase { $params = CRM_Contact_BAO_Query::convertFormValues($fv); $obj = new CRM_Contact_BAO_Query($params); + + // let's set useGroupBy=true since we are listing contacts here who might belong to + // more than one group / tag / notes etc. + $obj->_useGroupBy = TRUE; + $dao = $obj->searchQuery(); $contacts = array(); -- 2.25.1