projects
/
civicrm-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f11f973
)
fixed failing mailing CRM tests
author
kurund
<kurund@civicrm.org>
Wed, 7 Aug 2013 11:35:12 +0000
(17:05 +0530)
committer
kurund
<kurund@civicrm.org>
Wed, 7 Aug 2013 11:35:12 +0000
(17:05 +0530)
tests/phpunit/CRM/Mailing/BAO/QueryTest.php
patch
|
blob
|
blame
|
history
diff --git
a/tests/phpunit/CRM/Mailing/BAO/QueryTest.php
b/tests/phpunit/CRM/Mailing/BAO/QueryTest.php
index dad254c4d887cab95ec7845a5b45d4603c3bb152..13efbd49fa9c85cae3b3ff25b04734639769e891 100644
(file)
--- 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();