CRM-15578 - Pull up static $mailsProcessed and reset during testing
authorTim Otten <totten@civicrm.org>
Tue, 18 Nov 2014 06:44:32 +0000 (22:44 -0800)
committerTim Otten <totten@civicrm.org>
Thu, 20 Nov 2014 23:08:58 +0000 (15:08 -0800)
commit97b7d4a0fc662d1ea658f3d453cf8e75911e5084
tree0d5ccf1cc212e04121406b01de8f4c0d8a46fd5f
parentbd6658bd3117b3ad05569d5821a69f2c374156cc
CRM-15578 - Pull up static $mailsProcessed and reset during testing

These static variables were leaking between test-cases in a way which caused
the second test to get stuck on an infinite loop.  It has been quite
difficult to identify the tests which are interacting
(api_v3_JobProcessMailingTest and api_v3_MailingTest), the particular loop
which went infinitely, and the leaky variables.

I don't understand why these statics exist, but I don't have time to fully
grok it -- right now, the branch "master-civimail-abtest" has gone off on a
bit of a limb with failing tests, I just want to bring it back to a stable
place.  Promoting & resetting the static is the simplest way.
CRM/Mailing/BAO/MailingJob.php
api/v3/Mailing.php
tests/phpunit/api/v3/JobProcessMailingTest.php
tests/phpunit/api/v3/MailingTest.php