From: Eileen McNaughton Date: Thu, 14 Apr 2016 04:05:31 +0000 (+1200) Subject: Update complete transaction test to reflect date change (#8135) X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=9f9fa5582e6a76683a3ae1fd4f57920089b51569;p=civicrm-core.git 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 --- 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(); } /**