dev/financial#11 Expand unit test to ensure that the correct currency is outputted...
authorSeamus Lee <seamuslee001@gmail.com>
Fri, 9 Oct 2020 00:51:06 +0000 (11:51 +1100)
committerSeamus Lee <seamuslee001@gmail.com>
Fri, 9 Oct 2020 00:51:06 +0000 (11:51 +1100)
tests/phpunit/CRM/Contribute/BAO/ContributionTest.php

index 2a2ab93835a42654d39138947f785e20f2989a00..b43e4cbf74b9a5bd7cf543e755328ab202abd207 100644 (file)
@@ -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("<p>Contribution Source: ABC</p></br>
       <p>Contribution Invoice ID: 12345</p></br>
       <p>Contribution Receive Date: May 11th, 2015 12:00 AM</p></br>