From dde68276b650a3f42c662b4e662df111af09763a Mon Sep 17 00:00:00 2001 From: KarinG Date: Wed, 8 Mar 2017 13:36:25 -0700 Subject: [PATCH] Remove php unit test for function that no longer exists. --- .../CRM/Contribute/BAO/ContributionTest.php | 33 ------------------- 1 file changed, 33 deletions(-) diff --git a/tests/phpunit/CRM/Contribute/BAO/ContributionTest.php b/tests/phpunit/CRM/Contribute/BAO/ContributionTest.php index 4d76bad800..cf43e04a5f 100644 --- a/tests/phpunit/CRM/Contribute/BAO/ContributionTest.php +++ b/tests/phpunit/CRM/Contribute/BAO/ContributionTest.php @@ -1005,39 +1005,6 @@ WHERE eft.entity_id = %1 AND ft.to_financial_account_id <> %2"; } } - /** - * Test calculateNetAmount. - */ - public function testcalculateNetAmount() { - $testParams = array( - array( - 'net_amount' => 100, - 'tax_amount' => 10, - 'expectedNetAmount' => 90, - ), - array( - 'net_amount' => 200, - 'tax_amount' => 0, - 'expectedNetAmount' => 200, - ), - array( - 'net_amount' => 300, - 'tax_amount' => NULL, - 'expectedNetAmount' => 300, - ), - array( - 'net_amount' => -100, - 'tax_amount' => 20, - 'expectedNetAmount' => -120, - ), - ); - - foreach ($testParams as $params) { - $netAmount = CRM_Contribute_BAO_Contribution::calculateNetAmount($params['net_amount'], $params['tax_amount']); - $this->assertEquals($netAmount, $params['expectedNetAmount'], 'Invalid Net amount.'); - } - } - /** * Test recording of amount with comma separator. */ -- 2.25.1