Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CRM-19298 - ensure we get two receipts, with no total line. #9438

Merged
merged 4 commits into from
Nov 28, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 12 additions & 4 deletions tests/phpunit/api/v3/ContributionPageTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -439,10 +439,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