Details
-
Type: Bug
-
Status: Open
-
Priority: Major
-
Resolution: Unresolved
-
Affects Version/s: 4.6, 4.7
-
Fix Version/s: None
-
Component/s: Core CiviCRM
-
Labels:None
-
Versioning Impact:Patch (backwards-compatible bug fixes)
-
Documentation Required?:User and Admin Doc
-
Funding Source:Needs Funding
Description
(Assigning to Coleman for triage.)
Steps to reproduce:
- Checkout https://github.com/civicrm/civicrm-core/pull/7683 ( aka https://github.com/totten/civicrm-core/tree/master-16514-tests/ )
- Run "./scripts/phpunit --group ActionSchedule CRM_AllTests"
- Observe: CRM_Contribute_ActionMapping_ByTypeTest fails in scenario "addAliceDues scheduleForAny startOnTime useHelloFirstName alsoRecipientBob"
That's a bit terse; in English, that's like:
- Create contacts Alice and Bob.
- Add a contribution record (type==Dues) for Alice (with receipt date on Feb 1).
- Create a scheduled reminder to deliver on the contribution receipt-date.
- Set the scheduled reminder to send an email ("Hello,
{first name}
").
- Set the scheduled reminder to also include Bob.
- Manipulate the clock and perform several cron-runs (once a day from Jan 20 to Mar 1).
Notes:
- For more discussion of the test, see the docblocks in https://github.com/totten/civicrm-core/blob/master-16514-tests/tests/phpunit/Civi/ActionSchedule/AbstractMappingTest.php
- In 4.7, the query-builder moved to Civi\ActionSchedule\RecipientBuilder. In particular, buildAddlFirstPass() and buildAddlRepeatPass() handle messages for "Also Include" functionality.
(This issue is an offshoot from CRM-16514.)