Add test demonstrating that an extraneous activity is being created
authoreileen <emcnaughton@wikimedia.org>
Sun, 22 Nov 2020 00:57:43 +0000 (13:57 +1300)
committereileen <emcnaughton@wikimedia.org>
Sun, 22 Nov 2020 20:47:59 +0000 (09:47 +1300)
commit0f0b7485d3286ce6d7b8898b7af4cb5a2b2d5e06
tree86da6d03e946e40923faebec292ce6d62cb492a4
parentf72d958ce0e78fb66399005dc0f9a4ab41907d02
Add test demonstrating that an extraneous activity is being created

This test checks that 1 & only 1 activity is created when a membership is cancelled because the related contribution is cancelled.

It is currently failing as there is an extra 'status changed from cancelled to cancelled' activity created.

The fix is simple but not included as https://github.com/civicrm/civicrm-core/pull/18997 needs to be merged first
CRM/Contribute/BAO/Contribution.php
ext/contributioncancelactions/tests/phpunit/CancelTest.php