Remove a couple of instances of 'contribution_mdoe' from tests
authorEileen McNaughton <emcnaughton@wikimedia.org>
Mon, 12 Jul 2021 10:54:56 +0000 (22:54 +1200)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Mon, 12 Jul 2021 10:54:56 +0000 (22:54 +1200)
This should not be required - we should pass in correct line items....

tests/phpunit/CRM/Contribute/BAO/ContributionTest.php
tests/phpunit/CiviTest/CiviUnitTestCase.php

index 7141f17f89b4aff4290f008e8be3eb421f7f540e..8b8f2508a853e3f009495c9aacdf125104b0b083 100644 (file)
@@ -739,7 +739,6 @@ WHERE eft.entity_id = %1 AND ft.to_financial_account_id <> %2";
       'contact_id' => $this->_contactId,
       'financial_type_id' => 4,
       'contribution_status_id' => 'Pending',
-      'contribution_mode' => 'participant',
       'participant_id' => $participant->id,
       'sequential' => TRUE,
       'api.Payment.create' => ['total_amount' => 150],
index 75a94b52e587177877874c00435d35c29ee94325..97f91f596aa058c697e7a0d69b50c46aee3942a1 100644 (file)
@@ -3555,7 +3555,6 @@ VALUES
       'contact_id' => $this->individualCreate(),
       'financial_type_id' => 4,
       'contribution_status_id' => 'Pending',
-      'contribution_mode' => 'participant',
     ];
     foreach ($priceFields['values'] as $key => $priceField) {
       $orderParams['line_items'][] = [