From 9f9fa5582e6a76683a3ae1fd4f57920089b51569 Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Thu, 14 Apr 2016 16:05:31 +1200 Subject: [PATCH] Update complete transaction test to reflect date change (#8135) This is a new test & the expected receive date is changed by the setting of trxn_date but the check was not updated --- tests/phpunit/api/v3/ContributionTest.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tests/phpunit/api/v3/ContributionTest.php b/tests/phpunit/api/v3/ContributionTest.php index 7d48202230..0dc9678ee9 100644 --- a/tests/phpunit/api/v3/ContributionTest.php +++ b/tests/phpunit/api/v3/ContributionTest.php @@ -2105,6 +2105,7 @@ class api_v3_ContributionTest extends CiviUnitTestCase { * that person. */ public function testCompleteTransactionUpdatePledgePayment() { + $this->swapMessageTemplateForTestTemplate(); $mut = new CiviMailUtils($this, TRUE); $mut->clearMessages(); $this->createLoggedInUser(); @@ -2124,10 +2125,12 @@ class api_v3_ContributionTest extends CiviUnitTestCase { )); $this->assertEquals(1, $status); $mut->checkMailLog(array( - '$ 500.00', - 'May 11th, 2012 12:00 AM', + 'amount:::500.00', + 'receive_date:::20130201000000', + 'receipt_date:::201', )); $mut->stop(); + $this->revertTemplateToReservedTemplate(); } /** -- 2.25.1