From: Pradeep Nayak Date: Mon, 22 Sep 2014 12:03:58 +0000 (+0530) Subject: -- CRM-15055, Fixed CRM test for membership batch create X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=0455cbd805984af4171939cee994b58dab69b706;p=civicrm-core.git -- CRM-15055, Fixed CRM test for membership batch create ---------------------------------------- * 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 --- diff --git a/tests/phpunit/CRM/Batch/Form/EntryTest.php b/tests/phpunit/CRM/Batch/Form/EntryTest.php index dbe88accb2..1fab4fb644 100644 --- a/tests/phpunit/CRM/Batch/Form/EntryTest.php +++ b/tests/phpunit/CRM/Batch/Form/EntryTest.php @@ -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',