From f55c5fa8546ac5ee989f61fd49c8b47ec10694a0 Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Wed, 28 Jan 2015 06:39:17 +1300 Subject: [PATCH] Alter contribution example test to try to get an error message --- tests/phpunit/api/v3/ContributionTest.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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( -- 2.25.1