From d861680d22d7356a8baac6fc345707e75c2a2403 Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Tue, 27 Jan 2015 17:55:45 +1300 Subject: [PATCH] improve error reporting on failed example test --- tests/phpunit/api/v3/ContributionTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/phpunit/api/v3/ContributionTest.php b/tests/phpunit/api/v3/ContributionTest.php index 93fd7c5027..dfc84cf1db 100644 --- a/tests/phpunit/api/v3/ContributionTest.php +++ b/tests/phpunit/api/v3/ContributionTest.php @@ -712,7 +712,7 @@ 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->assertAPISuccess($result); + $this->assertArrayHasKey('is_error', $result, print_r($result, TRUE)); $contributionId = $result['id']; $expectedResult = contribution_create_expectedresult(); $this->checkArrayEquals($expectedResult, $result); -- 2.25.1