webtest fixes
[civicrm-core.git] / tests / phpunit / WebTest / Contribute / UpdateContributionTest.php
index e682016b0f5893df80328b2f231f9fe96ad78a54..385a58960657a95830c5f2cbf79f54151a567a73 100755 (executable)
@@ -323,9 +323,10 @@ class WebTest_Contribute_UpdateContributionTest extends CiviSeleniumTestCase {
     $defaults = array();
     $items = CRM_Financial_BAO_FinancialItem::retrieve($itemParams, $defaults);
     $this->assertEquals($items->amount, $itemParams['amount'], 'Verify Amount for financial Item');
-    $totalAmount = $this->_getPremiumActualCost($items->id, 'Accounts Receivable', NULL, "-100.00", "'civicrm_financial_item'");
+    // CRM-17183 - check Financial Trxn in $to_financial_account_id
+    $totalAmount = $this->_getPremiumActualCost($items->id, NULL, 'Accounts Receivable', "-100.00", "'civicrm_financial_item'");
     $this->assertEquals($totalAmount, "-$amount", 'Verify Amount for Financial Trxn');
-    $totalAmount = $this->_getPremiumActualCost($contId, 'Accounts Receivable', NULL, "-100.00", "'civicrm_contribution'");
+    $totalAmount = $this->_getPremiumActualCost($contId, NULL, 'Accounts Receivable', "-100.00", "'civicrm_contribution'");
     $this->assertEquals($totalAmount, "-$amount", 'Verify Amount for Financial Trxn');
   }