CRM-13890 - Test fixes (unit tests were coded against the buggy behavior where real...
authorDave Greenberg <dave@civicrm.org>
Thu, 5 Dec 2013 18:11:17 +0000 (10:11 -0800)
committerDave Greenberg <dave@civicrm.org>
Thu, 5 Dec 2013 18:11:17 +0000 (10:11 -0800)
----------------------------------------
* CRM-13890: Participant status is not being passed to message template for online event registration
  http://issues.civicrm.org/jira/browse/CRM-13890

tests/phpunit/CRM/Core/Payment/BaseIPNTest.php
tests/phpunit/api/v3/ContributionTest.php

index 6dc3e459fc7dd142b601419ed7e615badbd8c93a..763b662039917f1c9c22256a4865c1375fd27bdd 100644 (file)
@@ -213,7 +213,7 @@ class CRM_Core_Payment_BaseIPNTest extends CiviUnitTestCase {
     $values = array();
     $this->assertFalse(empty($this->objects['event']));
     $msg = $this->IPN->sendMail($this->input, $this->ids, $this->objects, $values, False,True);
-    $this->assertContains('registration has been received and your status has been updated to registered', $msg['body']);
+    $this->assertContains('registration has been received and your status has been updated to Attended.', $msg['body']);
     $this->assertContains('Annual CiviCRM meet', $msg['html']);
   }
 
index 27ab3bbea66b06f74aa98c7dc69e5fc591984594..a827d8154a1c9107003db0b80f1bd32f426c6575 100644 (file)
@@ -1236,7 +1236,7 @@ class api_v3_ContributionTest extends CiviUnitTestCase {
     $mut->checkMailLog(array(
       'Annual CiviCRM meet',
       'Event',
-      'This letter is a confirmation that your registration has been received and your status has been updated to registered for the following',
+      'This letter is a confirmation that your registration has been received and your status has been updated to Registered.',
     ));
   $mut->stop();