-- CRM-15055, Fixed CRM test for membership batch create
authorPradeep Nayak <pradeep.nayak@webaccess.co.in>
Mon, 22 Sep 2014 12:03:58 +0000 (17:33 +0530)
committerPradeep Nayak <pradeep.nayak@webaccess.co.in>
Mon, 22 Sep 2014 12:03:58 +0000 (17:33 +0530)
----------------------------------------
* CRM-15055: Line item for membership entity should be created even when Record Payment is not checked
  https://issues.civicrm.org/jira/browse/CRM-15055

tests/phpunit/CRM/Batch/Form/EntryTest.php

index dbe88accb2243130df1701ef6636889fbb24b067..1fab4fb6441f3b2bd568bcd4ebe326709cb56b58 100644 (file)
@@ -219,7 +219,7 @@ class CRM_Batch_Form_EntryTest extends CiviUnitTestCase {
         ),
       'field' => array(
         1 => array(
-          'membership_type' => Array (0 => 1, 1 => 1),// (I was unable to determine what these both mean but both are refered to in code
+          'membership_type' => Array (0 => $this->_orgContactID, 1 => $this->_membershipTypeID),
           'join_date' => '07/22/2013',
           'membership_start_date' => NULL,
           'membership_end_date' => NULL,
@@ -233,7 +233,7 @@ class CRM_Batch_Form_EntryTest extends CiviUnitTestCase {
           'contribution_status_id' => 1,
         ),
       2 => array(
-        'membership_type' => Array (0 => 1, 1 => 1 ),
+        'membership_type' => Array (0 => $this->_orgContactID, 1 => $this->_membershipTypeID),
         'join_date' => '07/03/2013',
         'membership_start_date' => '02/03/2013',
         'membership_end_date' => NULL,
@@ -248,7 +248,7 @@ class CRM_Batch_Form_EntryTest extends CiviUnitTestCase {
        ),
         // no join date, coded end date
        3 => array(
-         'membership_type' => Array (0 => 1, 1 => 1 ),
+         'membership_type' => Array (0 => $this->_orgContactID, 1 => $this->_membershipTypeID),
          'join_date' => NULL,
          'membership_start_date' => NULL,
          'membership_end_date' => '2013-12-01',