Skip to content

Commit

Permalink
Merge pull request #9438 from jmcclelland/CRM-19298
Browse files Browse the repository at this point in the history
CRM-19298 - ensure we get two receipts, with no total line.
  • Loading branch information
eileenmcnaughton authored Nov 28, 2016
2 parents 08e132b + 461ae02 commit 97f643c
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions tests/phpunit/api/v3/ContributionPageTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -440,10 +440,18 @@ public function testSubmitMembershipBlockIsSeparatePaymentWithEmail() {
$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);
}
Expand Down

0 comments on commit 97f643c

Please sign in to comment.