From 77c099919d9302cf56e65acb1d00f3a9f68ea329 Mon Sep 17 00:00:00 2001 From: kurund Date: Wed, 7 Aug 2013 17:05:12 +0530 Subject: [PATCH] fixed failing mailing CRM tests --- tests/phpunit/CRM/Mailing/BAO/QueryTest.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/phpunit/CRM/Mailing/BAO/QueryTest.php b/tests/phpunit/CRM/Mailing/BAO/QueryTest.php index dad254c4d8..13efbd49fa 100644 --- a/tests/phpunit/CRM/Mailing/BAO/QueryTest.php +++ b/tests/phpunit/CRM/Mailing/BAO/QueryTest.php @@ -53,6 +53,10 @@ class CRM_Mailing_BAO_QueryTest extends CiviUnitTestCase { $params = CRM_Contact_BAO_Query::convertFormValues($fv); $obj = new CRM_Contact_BAO_Query($params); + + // let's set useGroupBy=true, to prevent duplicate records + $obj->_useGroupBy = TRUE; + $dao = $obj->searchQuery(); $contacts = array(); -- 2.25.1