From b05dc6c39c24200e57e07b8f262fd30fb9418124 Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Sun, 17 Dec 2023 10:33:47 +1300 Subject: [PATCH] Fix tests to test-template-data-update --- tests/phpunit/api/v3/ContributionTest.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tests/phpunit/api/v3/ContributionTest.php b/tests/phpunit/api/v3/ContributionTest.php index 176649c4c8..8a523832be 100644 --- a/tests/phpunit/api/v3/ContributionTest.php +++ b/tests/phpunit/api/v3/ContributionTest.php @@ -132,6 +132,7 @@ class api_v3_ContributionTest extends CiviUnitTestCase { } } $this->restoreUFGroupOne(); + $this->revertTemplateToReservedTemplate(); parent::tearDown(); } @@ -2002,7 +2003,7 @@ class api_v3_ContributionTest extends CiviUnitTestCase { $mut->checkMailLog([ 'email:::anthony_anderson@civicrm.org', 'is_monetary:::1', - 'amount:::100.00', + 'amount:::$100.00', 'currency:::USD', 'receive_date:::' . date('Ymd', strtotime($contribution['receive_date'])), "receipt_date:::\n", @@ -2042,7 +2043,7 @@ class api_v3_ContributionTest extends CiviUnitTestCase { $mut->checkMailLog([ 'email:::anthony_anderson@civicrm.org', 'is_monetary:::1', - 'amount:::100.00', + 'amount:::€100.00', 'currency:::EUR', 'receive_date:::' . date('Ymd', strtotime($contribution['receive_date'])), "receipt_date:::\n", @@ -3150,7 +3151,7 @@ class api_v3_ContributionTest extends CiviUnitTestCase { $this->mut->checkMailLog([ 'email:::anthony_anderson@civicrm.org', 'is_monetary:::1', - 'amount:::100.00', + 'amount:::$100.00', 'currency:::USD', 'receive_date:::' . date('Ymd', strtotime($receive_date)), 'receipt_date:::' . date('Ymd'), @@ -3320,7 +3321,7 @@ class api_v3_ContributionTest extends CiviUnitTestCase { ]); $this->assertEquals(1, $status); $mut->checkMailLog([ - 'amount:::500.00', + 'amount:::$500.00', // The `receive_date` should remain as it was created. // TODO: the latest payment transaction date (and maybe other details, // such as amount and payment instrument) would be a useful token to make -- 2.25.1