test fixes
authorEileen McNaughton <eileen@fuzion.co.nz>
Fri, 17 Jul 2015 17:59:45 +0000 (05:59 +1200)
committerEileen McNaughton <eileen@fuzion.co.nz>
Fri, 17 Jul 2015 17:59:45 +0000 (05:59 +1200)
tests/phpunit/CRM/Core/Payment/AuthorizeNetTest.php

index 78bed99e815b2d593c95a8a9c5516ffb1d556fd5..da8791fd825eaca5a86a24379abc34ae339d306d 100644 (file)
@@ -46,7 +46,6 @@ class CRM_Core_Payment_AuthorizeNetTest extends CiviUnitTestCase {
   }
 
   public function tearDown() {
-    $this->paymentProcessor->delete($this->processorParams->id);
     $this->quickCleanUpFinancialEntities();
   }
 
@@ -210,7 +209,7 @@ class CRM_Core_Payment_AuthorizeNetTest extends CiviUnitTestCase {
       'invoice_id' => $invoiceID,
       'contribution_status_id' => 2,
       'is_test' => 1,
-      'payment_processor_id' => $this->processorParams->id,
+      'payment_processor_id' => $this->_paymentProcessorID,
     );
     $recur = CRM_Contribute_BAO_ContributionRecur::add($contributionRecurParams, $ids);
 
@@ -255,7 +254,7 @@ class CRM_Core_Payment_AuthorizeNetTest extends CiviUnitTestCase {
       'from_email_address' => "{$firstName}.{$lastName}@example.com",
       'receive_date' => $start_date,
       'receipt_date_time' => '',
-      'payment_processor_id' => $this->processorParams->id,
+      'payment_processor_id' => $this->_paymentProcessorID,
       'price_set_id' => '',
       'total_amount' => $amount,
       'currency' => 'USD',