From 006d636194e3931612829294ad2aad0665736000 Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Wed, 28 Jan 2015 09:48:58 +1300 Subject: [PATCH] still getting example test to pass --- tests/phpunit/api/v3/ContributionTest.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/phpunit/api/v3/ContributionTest.php b/tests/phpunit/api/v3/ContributionTest.php index 2cd594c840..edaa93a211 100644 --- a/tests/phpunit/api/v3/ContributionTest.php +++ b/tests/phpunit/api/v3/ContributionTest.php @@ -712,9 +712,10 @@ 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(); + $id = $result['id']; $expectedResult = contribution_create_expectedresult(); $this->checkArrayEquals($expectedResult, $result); - $this->contributionDelete($result['id']); + $this->contributionDelete($id); } /** -- 2.25.1