From: Eileen McNaughton Date: Tue, 27 Jan 2015 04:55:45 +0000 (+1300) Subject: improve error reporting on failed example test X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=d861680d22d7356a8baac6fc345707e75c2a2403;p=civicrm-core.git improve error reporting on failed example test --- 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);