fixed failing mailing CRM tests
authorkurund <kurund@civicrm.org>
Wed, 7 Aug 2013 11:35:12 +0000 (17:05 +0530)
committerkurund <kurund@civicrm.org>
Wed, 7 Aug 2013 11:35:12 +0000 (17:05 +0530)
tests/phpunit/CRM/Mailing/BAO/QueryTest.php

index dad254c4d887cab95ec7845a5b45d4603c3bb152..13efbd49fa9c85cae3b3ff25b04734639769e891 100644 (file)
@@ -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();