From: eileenmcnaughton Date: Mon, 13 Jul 2015 08:57:31 +0000 (+0000) Subject: test fixes X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=2b08d91494a9e6ff40d5ded7f1c9d9c7fa3ca9e1;p=civicrm-core.git test fixes --- diff --git a/tests/phpunit/api/v3/ContributionTest.php b/tests/phpunit/api/v3/ContributionTest.php index 7d31676795..12661a81e7 100644 --- a/tests/phpunit/api/v3/ContributionTest.php +++ b/tests/phpunit/api/v3/ContributionTest.php @@ -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, ); diff --git a/tests/phpunit/api/v3/PledgePaymentTest.php b/tests/phpunit/api/v3/PledgePaymentTest.php index 2b23ac8351..80106ff2cf 100644 --- a/tests/phpunit/api/v3/PledgePaymentTest.php +++ b/tests/phpunit/api/v3/PledgePaymentTest.php @@ -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