From: kurund Date: Wed, 7 Aug 2013 11:35:12 +0000 (+0530) Subject: fixed failing mailing CRM tests X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=77c099919d9302cf56e65acb1d00f3a9f68ea329;p=civicrm-core.git fixed failing mailing CRM tests --- 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();