From: Eileen McNaughton Date: Fri, 17 Jul 2015 23:04:41 +0000 (+1200) Subject: CRM-16813 alter test to reflect true desired behaviour X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=a4ed7706e0f17aabdfe3e161c7202412fa92b9fe;p=civicrm-core.git CRM-16813 alter test to reflect true desired behaviour --- diff --git a/tests/phpunit/CRM/Contribute/Form/ContributionTest.php b/tests/phpunit/CRM/Contribute/Form/ContributionTest.php index c868dd5e02..9fffdd1dd2 100644 --- a/tests/phpunit/CRM/Contribute/Form/ContributionTest.php +++ b/tests/phpunit/CRM/Contribute/Form/ContributionTest.php @@ -489,8 +489,8 @@ class CRM_Contribute_Form_ContributionTest extends CiviUnitTestCase { $financialTransactions = $this->callAPISuccess('FinancialTrxn', 'get', array('sequential' => TRUE)); $this->assertEquals(2, $financialTransactions['count']); $this->assertEquals(50, $financialTransactions['values'][0]['total_amount']); - $this->assertEquals(45, $financialTransactions['values'][1]['net_amount']); - $this->assertEquals(45, $financialTransactions['values'][1]['total_amount']); + $this->assertEquals(-5, $financialTransactions['values'][1]['total_amount']); + $this->assertEquals(-5, $financialTransactions['values'][1]['net_amount']); $lineItem = $this->callAPISuccessGetSingle('LineItem', array()); $this->assertEquals(45, $lineItem['line_total']); }