CRM-20016 preliminary work - add basis for unit testing and failing unit test.
authoreileen <emcnaughton@wikimedia.org>
Wed, 15 Feb 2017 01:57:01 +0000 (14:57 +1300)
committereileen <emcnaughton@wikimedia.org>
Wed, 15 Feb 2017 05:11:57 +0000 (18:11 +1300)
commitcdc5c4501ba1c6d6facbe4ef5d69de5600e7a344
treef084660adb8b1edc0322a39f7c1f4c878cd4655b
parent666e38d4c1011b6f7235511be9ec570a7b90a575
CRM-20016 preliminary work - add basis for unit testing and failing unit test.

In writing the test I identified the transation was not rolling back due
to the api not following our crud format. I fixed it to 'fail' because
we should not be passing despite mysql errors & ... we should fix the errors...

The BAO code in fact holds transaction handling to ensure that a fail causes a fail - but
we were bypassing it without passing in the 'is_transactional' param.
CRM/Mailing/Event/BAO/Bounce.php
CRM/Utils/Mail/EmailProcessor.php
tests/phpunit/CRM/Utils/Mail/EmailProcessorTest.php [new file with mode: 0644]
tests/phpunit/CRM/Utils/Mail/data/bounces/bounce_no_verp.txt [new file with mode: 0644]
tests/phpunit/CiviTest/CiviUnitTestCase.php