From 8be629ac847b3c30585d36c0dd92d9149c833269 Mon Sep 17 00:00:00 2001 From: eileenmcnaughton Date: Tue, 27 Jan 2015 01:11:08 +0000 Subject: [PATCH] further minor tidy ups to example tests --- .../examples/Contribution/ContributionCreateWithSoftCredit.php | 2 +- tests/phpunit/api/v3/ContributionTest.php | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/api/v3/examples/Contribution/ContributionCreateWithSoftCredit.php b/api/v3/examples/Contribution/ContributionCreateWithSoftCredit.php index 3bb8a9baca..ea2e98ca6e 100644 --- a/api/v3/examples/Contribution/ContributionCreateWithSoftCredit.php +++ b/api/v3/examples/Contribution/ContributionCreateWithSoftCredit.php @@ -105,7 +105,7 @@ function contribution_create_expectedresult() { /** * This example has been generated from the API test suite. * The test that created it is called -* testCreateContributionWithSoftCredt +* testCreateContributionWithSoftCredit * and can be found in * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ContributionTest.php * diff --git a/tests/phpunit/api/v3/ContributionTest.php b/tests/phpunit/api/v3/ContributionTest.php index 6ce910e490..93fd7c5027 100644 --- a/tests/phpunit/api/v3/ContributionTest.php +++ b/tests/phpunit/api/v3/ContributionTest.php @@ -709,8 +709,7 @@ class api_v3_ContributionTest extends CiviUnitTestCase { */ public function testContributionCreateExample() { //make sure at least on page exists since there is a truncate in tear down - $page = $this->callAPISuccess('contribution_page', 'create', $this->_pageParams); - $this->assertAPISuccess($page); + $this->callAPISuccess('contribution_page', 'create', $this->_pageParams); require_once 'api/v3/examples/Contribution/Create.php'; $result = contribution_create_example(); $this->assertAPISuccess($result); -- 2.25.1