From: Eileen McNaughton Date: Tue, 27 Jan 2015 17:39:17 +0000 (+1300) Subject: Alter contribution example test to try to get an error message X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=f55c5fa8546ac5ee989f61fd49c8b47ec10694a0;p=civicrm-core.git Alter contribution example test to try to get an error message --- diff --git a/tests/phpunit/api/v3/ContributionTest.php b/tests/phpunit/api/v3/ContributionTest.php index dfc84cf1db..2cd594c840 100644 --- a/tests/phpunit/api/v3/ContributionTest.php +++ b/tests/phpunit/api/v3/ContributionTest.php @@ -712,15 +712,13 @@ class api_v3_ContributionTest extends CiviUnitTestCase { $this->callAPISuccess('contribution_page', 'create', $this->_pageParams); require_once 'api/v3/examples/Contribution/Create.php'; $result = contribution_create_example(); - $this->assertArrayHasKey('is_error', $result, print_r($result, TRUE)); - $contributionId = $result['id']; $expectedResult = contribution_create_expectedresult(); $this->checkArrayEquals($expectedResult, $result); - $this->contributionDelete($contributionId); + $this->contributionDelete($result['id']); } /** - * Function tests that additional financial records are created when fee amount is recorded + * Function tests that additional financial records are created when fee amount is recorded. */ public function testCreateContributionWithFee() { $params = array(