Update complete transaction test to reflect date change (#8135)
authorEileen McNaughton <eileen@mcnaughty.com>
Thu, 14 Apr 2016 04:05:31 +0000 (16:05 +1200)
committerEileen McNaughton <eileen@mcnaughty.com>
Thu, 14 Apr 2016 04:05:31 +0000 (16:05 +1200)
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

index 7d482022300fb6cc3c9b5bf24805aec6bba61f18..0dc9678ee9ef5d9f8452d146d4766a56a8d0d038 100644 (file)
@@ -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();
   }
 
   /**