Fixed hardcoded contribution_id
authorJitendra Purohit <jitendra.purohit@webaccessglobal.com>
Wed, 6 Aug 2014 10:42:06 +0000 (16:12 +0530)
committerJitendra Purohit <jitendra.purohit@webaccessglobal.com>
Wed, 6 Aug 2014 10:42:06 +0000 (16:12 +0530)
tests/phpunit/api/v3/ContributionTest.php

index e9a8fc886485e542f52f78112d781b8f2a06edf6..1f9462d285a87d2bb34bb3cdb302eac2c536eb4c 100644 (file)
@@ -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,