* @package CiviCRM_APIv3
* @subpackage API_ContributionSoft
*/
-
class api_v3_ContributionSoftTest extends CiviUnitTestCase {
/**
'contact_id' => $this->_individualId,
'receive_date' => '20120511',
'total_amount' => 100.00,
- 'financial_type_id' => $this->_financialTypeId,
+ 'financial_type_id' => $this->_financialTypeId,
'non_deductible_amount' => 10.00,
'fee_amount' => 5.00,
'net_amount' => 95.00,
//test get by contact id works
$result = $this->callAPISuccess('contribution_soft', 'get', array(
- 'contact_id' => $this->_softIndividual2Id)
+ 'contact_id' => $this->_softIndividual2Id
+ )
);
$this->assertEquals(1, $result['count'], 'In line ' . __LINE__);
$this->callAPISuccess('ContributionSoft', 'Delete', array(
'id' => $this->_softcontribution2['id'],
- ));
+ ));
}
);
}
- /*
+ /**
* Function tests that additional financial records are created when fee amount is recorded
*/
public function testCreateContributionSoft() {