From 0455cbd805984af4171939cee994b58dab69b706 Mon Sep 17 00:00:00 2001 From: Pradeep Nayak Date: Mon, 22 Sep 2014 17:33:58 +0530 Subject: [PATCH] -- 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 --- tests/phpunit/CRM/Batch/Form/EntryTest.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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', -- 2.25.1