CRM-19964 Changed assertion text
authorEdsel <edsel.lopez@jmaconsulting.biz>
Wed, 8 Feb 2017 15:09:04 +0000 (20:39 +0530)
committerEdsel <edsel.lopez@jmaconsulting.biz>
Wed, 8 Feb 2017 15:09:04 +0000 (20:39 +0530)
----------------------------------------
* CRM-19964: Event registration creates contribution without line item
  https://issues.civicrm.org/jira/browse/CRM-19964

tests/phpunit/CRM/Event/Form/Registration/ConfirmTest.php

index c8a2ec31b03c9d4d69ee1b6004ec4dfd9eaa6efb..d57e1eb6bd3cd2897ae9ee22b76aefb850b0ac69 100644 (file)
@@ -226,7 +226,7 @@ class CRM_Event_Form_Registration_ConfirmTest extends CiviUnitTestCase {
       ),
     ));
     $contribution = $this->callAPISuccess('Contribution', 'get', array('invoice_id' => '57adc34957a29171948e8643ce906332'));
-    $this->assertEquals($contribution['count'], '0', "Contribution should be created for zero fee event registration.");
+    $this->assertEquals($contribution['count'], '0', "Contribution should not be created for zero fee event registration when no price field selected.");
   }
 
 }