test fixes
authoreileenmcnaughton <eileen@fuzion.co.nz>
Mon, 13 Jul 2015 08:57:31 +0000 (08:57 +0000)
committereileenmcnaughton <eileen@fuzion.co.nz>
Mon, 13 Jul 2015 08:57:31 +0000 (08:57 +0000)
tests/phpunit/api/v3/ContributionTest.php
tests/phpunit/api/v3/PledgePaymentTest.php

index 7d316767951972dc76610dd0fdafdaddd27ea922..12661a81e7b68bc24140d2c5b4a9178939b25aec 100644 (file)
@@ -1242,7 +1242,7 @@ class api_v3_ContributionTest extends CiviUnitTestCase {
 
   public function testDeleteContribution() {
 
-    $contributionID = $this->contributionCreate($this->_individualId, $this->_financialTypeId, 'dfsdf', 12389);
+    $contributionID = $this->contributionCreate(array('contact_id' => $this->_individualId), $this->_financialTypeId, 'dfsdf', 12389);
     $params = array(
       'id' => $contributionID,
     );
index 2b23ac835189c4bf15b7900cee6f5d448ba12496..80106ff2cf2bd70ee0bc404380c09fad593efcce 100644 (file)
@@ -214,7 +214,8 @@ class api_v3_PledgePaymentTest extends CiviUnitTestCase {
       'sequential' => 1,
     );
 
-    $contributionID = $this->contributionCreate($this->_individualId, $this->_financialTypeId, 45, 45);
+    $contributionID = $this->contributionCreate(array('contact_id' => $this->_individualId), $this->_financialTypeId,
+      45, 45);
     $pledge = $this->callAPISuccess('Pledge', 'Create', $pledgeParams);
 
     //test the pledge_payment_create function