From 1274acef765f0d6849aaf11bdfd7af96b02b9a8c Mon Sep 17 00:00:00 2001 From: Jitendra Purohit Date: Wed, 6 Aug 2014 16:12:06 +0530 Subject: [PATCH] Fixed hardcoded contribution_id --- tests/phpunit/api/v3/ContributionTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/phpunit/api/v3/ContributionTest.php b/tests/phpunit/api/v3/ContributionTest.php index e9a8fc8864..1f9462d285 100644 --- a/tests/phpunit/api/v3/ContributionTest.php +++ b/tests/phpunit/api/v3/ContributionTest.php @@ -1397,7 +1397,7 @@ class api_v3_ContributionTest extends CiviUnitTestCase { $this->callAPISuccess('line_item', 'create', array( 'entity_id' => $contribution['id'], 'entity_table' => 'civicrm_contribution', - 'contribution_id' => 1, + 'contribution_id' => $contribution['id'], 'price_field_id' => $this->_ids['price_field'][0], 'qty' => 1, 'unit_price' => 20, -- 2.25.1