Skip to content

Commit

Permalink
Fix Smarty Syntax in payment_or_refund_notification_text template and…
Browse files Browse the repository at this point in the history
… update unit tests to match the change in langauge in the templates
  • Loading branch information
seamuslee001 committed Nov 6, 2019
1 parent cb34252 commit 8406034
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
10 changes: 5 additions & 5 deletions tests/phpunit/CRM/Contribute/Form/AdditionalPaymentTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ public function testAddPaymentUsingCreditCardForPartiallyPaidContribution() {
'From: site@something.com',
'Dear Anthony,',
'Payment Details',
'Total Fees: $ 100.00',
'Total Amount: $ 100.00',
'This Payment Amount: $ 70.00',
'Balance Owed: $ 0.00 ',
'Billing Name and Address',
Expand Down Expand Up @@ -238,8 +238,8 @@ public function testMultiplePaymentForPartiallyPaidContributionWithOneCreditCard
$mut->assertSubjects(['Payment Receipt - Mr. Anthony Anderson II']);
$mut->checkMailLog([
'Dear Anthony,',
'A payment has been received',
'Total Fees: $ 100.00',
'Below you will find a receipt for this payment.',
'Total Amount: $ 100.00',
'This Payment Amount: $ 50.00',
'Balance Owed: $ 20.00 ',
'Paid By: Check',
Expand Down Expand Up @@ -268,8 +268,8 @@ public function testAddPaymentUsingCreditCardForPendingPayLaterContribution() {
$this->checkResults([100], 1);

$mut->checkMailLog([
'A payment has been received',
'Total Fees: $ 100.00',
'Below you will find a receipt for this payment.',
'Total Amount: $ 100.00',
'This Payment Amount: $ 100.00',
'Balance Owed: $ 0.00 ',
'Paid By: Credit Card',
Expand Down
10 changes: 5 additions & 5 deletions tests/phpunit/api/v3/PaymentTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ public function testPaymentEmailReceipt() {
$mut->checkMailLog([
'From: "FIXME" <info@EXAMPLE.ORG>',
'Dear Anthony,',
'Total Fees: $ 300.00',
'Total Amount: $ 300.00',
'This Payment Amount: $ 50.00',
//150 was paid in the 1st payment.
'Balance Owed: $ 100.00',
Expand Down Expand Up @@ -221,8 +221,8 @@ public function testPaymentEmailReceiptFullyPaid() {
$mut->checkMailLog([
'From: "FIXME" <info@EXAMPLE.ORG>',
'Dear Anthony,',
'A payment has been received.',
'Total Fees: $ 300.00',
'Below you will find a receipt for this payment.',
'Total Amount: $ 300.00',
'This Payment Amount: $ 150.00',
'Balance Owed: $ 0.00',
'Thank you for completing this payment.',
Expand Down Expand Up @@ -273,12 +273,12 @@ public function testRefundEmailReceipt($thousandSeparator) {
$mut->checkMailLog([
'Dear Anthony,',
'A refund has been issued based on changes in your registration selections.',
'Total Fees: $ 300' . $decimalSeparator . '00',
'Total Amount: $ 300' . $decimalSeparator . '00',
'Refund Amount: $ -30' . $decimalSeparator . '00',
'Event Information and Location',
'Paid By: Check',
'Transaction Date: November 13th, 2018 12:01 PM',
'You Paid: $ 170' . $decimalSeparator . '00',
'Totally Paid: $ 170' . $decimalSeparator . '00',
]);
$mut->stop();
$mut->clearMessages();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
===============================================================================
{ts}This Payment Amount{/ts}: {$paymentAmount|crmMoney}
------------------------------------------------------------------------------------

{/if}
{if $receive_date}
{ts}Transaction Date{/ts}: {$receive_date|crmDate}
{/if}
Expand Down

0 comments on commit 8406034

Please sign in to comment.