From 6fc6274e9b25778a2d9e9af1d1c0190559999340 Mon Sep 17 00:00:00 2001 From: Seamus Lee Date: Fri, 9 Oct 2020 11:51:06 +1100 Subject: [PATCH] dev/financial#11 Expand unit test to ensure that the correct currency is outputted in the token --- tests/phpunit/CRM/Contribute/BAO/ContributionTest.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/phpunit/CRM/Contribute/BAO/ContributionTest.php b/tests/phpunit/CRM/Contribute/BAO/ContributionTest.php index 2a2ab93835..b43e4cbf74 100644 --- a/tests/phpunit/CRM/Contribute/BAO/ContributionTest.php +++ b/tests/phpunit/CRM/Contribute/BAO/ContributionTest.php @@ -1422,6 +1422,7 @@ WHERE eft.entity_id = %1 AND ft.to_financial_account_id <> %2"; 'source' => 'SSF', 'contribution_status_id' => 2, "custom_{$customField['id']}" => 'value1', + 'currency' => 'EUR', ]; $contribution1 = $this->contributionCreate($params); $contactId2 = $this->individualCreate(); @@ -1460,7 +1461,7 @@ WHERE eft.entity_id = %1 AND ft.to_financial_account_id <> %2"; TRUE ); - $this->assertEquals("Contribution Amount: $ 100.00", $contributionDetails[$contactId1]['text'], "The text does not match"); + $this->assertEquals("Contribution Amount: € 100.00", $contributionDetails[$contactId1]['text'], "The text does not match"); $this->assertEquals("

Contribution Source: ABC


Contribution Invoice ID: 12345


Contribution Receive Date: May 11th, 2015 12:00 AM


-- 2.25.1