X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=api%2Fv3%2Fexamples%2FContribution%2FContributionCreateWithNote.php;h=4a19762036ba1bc554ec2c46587aa2fe201b9b6c;hb=a828d7b823956a46f5a3cea184389c9b108f80ac;hp=d68597b41585120f3a606a697328b647263b5a04;hpb=6fd0519667b8c37759460c6c1516a22210418aa5;p=civicrm-core.git diff --git a/api/v3/examples/Contribution/ContributionCreateWithNote.php b/api/v3/examples/Contribution/ContributionCreateWithNote.php index d68597b415..4a19762036 100644 --- a/api/v3/examples/Contribution/ContributionCreateWithNote.php +++ b/api/v3/examples/Contribution/ContributionCreateWithNote.php @@ -1,15 +1,15 @@ 18, + 'contact_id' => 17, 'receive_date' => '2012-01-01', 'total_amount' => '100', 'financial_type_id' => 1, @@ -25,7 +25,7 @@ function contribution_create_example() { ); try{ - $result = civicrm_api3('contribution', 'create', $params); + $result = civicrm_api3('Contribution', 'create', $params); } catch (CiviCRM_API3_Exception $e) { // Handle error here. @@ -58,7 +58,7 @@ function contribution_create_expectedresult() { 'values' => array( '1' => array( 'id' => '1', - 'contact_id' => '18', + 'contact_id' => '17', 'financial_type_id' => '1', 'contribution_page_id' => '', 'payment_instrument_id' => '1', @@ -93,11 +93,10 @@ function contribution_create_expectedresult() { return $expectedResult; } -/** +/* * This example has been generated from the API test suite. -* The test that created it is called -* testCreateContributionWithNote -* and can be found in +* The test that created it is called "testCreateContributionWithNote" +* and can be found at: * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ContributionTest.php * * You can see the outcome of the API tests at