CRM-16813 alter test to reflect true desired behaviour
authorEileen McNaughton <eileen@fuzion.co.nz>
Fri, 17 Jul 2015 23:04:41 +0000 (11:04 +1200)
committerEileen McNaughton <eileen@fuzion.co.nz>
Fri, 17 Jul 2015 23:04:41 +0000 (11:04 +1200)
tests/phpunit/CRM/Contribute/Form/ContributionTest.php

index c868dd5e02514a12bfae802e3a83dc4878fd3ebe..9fffdd1dd2ede1d73d845c984ed313b49f0b06ad 100644 (file)
@@ -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']);
   }