CRM-13072 also remove failing delete call from CRM layer - batch entry
authoreileen <eileen@fuzion.co.nz>
Thu, 25 Jul 2013 23:06:42 +0000 (11:06 +1200)
committereileen <eileen@fuzion.co.nz>
Thu, 25 Jul 2013 23:06:42 +0000 (11:06 +1200)
tests/phpunit/CRM/Batch/Form/EntryTest.php

index d408d2237c2fc1d46ce2aaed2cc91339d3218040..5eba99d7c310fcba1e7341dd913b61c6f477150f 100644 (file)
@@ -80,7 +80,7 @@ class CRM_Batch_Form_EntryTest extends CiviUnitTestCase {
     );
     $this->_relationshipTypeId = $this->relationshipTypeCreate($params);
     $this->_orgContactID = $this->organizationCreate();
-    $this->_contributionTypeId = $this->contributionTypeCreate();
+    $this->_financialTypeId = 1;
     $this->_membershipTypeName = 'Mickey Mouse Club Member';
     $params = array(
       'name' => $this->_membershipTypeName,
@@ -90,7 +90,7 @@ class CRM_Batch_Form_EntryTest extends CiviUnitTestCase {
       'member_of_contact_id' => $this->_orgContactID,
       'period_type' => 'fixed',
       'duration_interval' => 1,
-      'financial_type_id' => $this->_contributionTypeId,
+      'financial_type_id' => $this->_financialTypeId,
       'relationship_type_id' => $this->_relationshipTypeId,
       'visibility' => 'Public',
       'is_active' => 1,
@@ -128,7 +128,6 @@ class CRM_Batch_Form_EntryTest extends CiviUnitTestCase {
     $this->relationshipTypeDelete($this->_relationshipTypeId);
     $this->membershipTypeDelete(array('id' => $this->_membershipTypeID));
     $this->membershipStatusDelete($this->_mebershipStatusID);
-    $this->contributionTypeDelete(NULL);
     $this->contactDelete($this->_contactID);
     $this->contactDelete($this->_contactID2);
     $this->contactDelete($this->_orgContactID);