X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Fapi%2Fv3%2FContributionPageTest.php;h=fe257feb0db424ed5f3ebeef9f9e39b481c6ced2;hb=461ae02f8b5e088c0ffad5d87c94d46f3cfe0621;hp=2821ac7530a80452c669548fd6f7dd21789b42a0;hpb=0569a0a5e7047859930d433c5dbe18cb57b9c048;p=civicrm-core.git diff --git a/tests/phpunit/api/v3/ContributionPageTest.php b/tests/phpunit/api/v3/ContributionPageTest.php index 2821ac7530..fe257feb0d 100644 --- a/tests/phpunit/api/v3/ContributionPageTest.php +++ b/tests/phpunit/api/v3/ContributionPageTest.php @@ -439,10 +439,18 @@ class api_v3_ContributionPageTest extends CiviUnitTestCase { $this->assertTrue(in_array($membershipPayment['contribution_id'], array_keys($contributions['values']))); $membership = $this->callAPISuccessGetSingle('membership', array('id' => $membershipPayment['membership_id'])); $this->assertEquals($membership['contact_id'], $contributions['values'][$membershipPayment['contribution_id']]['contact_id']); - $mut->checkAllMailLog(array( - '$ 2.00', - 'Membership Fee', - )); + // We should have two separate email messages, each with their own amount + // line and no total line. + $mut->checkAllMailLog( + array( + 'Amount: $ 2.00', + 'Amount: $ 10.00', + 'Membership Fee', + ), + array( + 'Total: $', + ) + ); $mut->stop(); $mut->clearMessages(999); }