further minor tidy ups to example tests
authoreileenmcnaughton <eileen@fuzion.co.nz>
Tue, 27 Jan 2015 01:11:08 +0000 (01:11 +0000)
committereileenmcnaughton <eileen@fuzion.co.nz>
Tue, 27 Jan 2015 01:11:08 +0000 (01:11 +0000)
api/v3/examples/Contribution/ContributionCreateWithSoftCredit.php
tests/phpunit/api/v3/ContributionTest.php

index 3bb8a9baca4bf8b7a8b127a7f9e21380f4004885..ea2e98ca6ee4e4360301295e9dd99ebcbcf2a67f 100644 (file)
@@ -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
 *
index 6ce910e49005da133e5e29f4df5b2d7b412cf458..93fd7c50276bc8f2df5abb1e60e945e52b068153 100644 (file)
@@ -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);