+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2014 |
+ | Copyright CiviCRM LLC (c) 2004-2015 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
-*/
+ */
require_once 'CiviTest/CiviUnitTestCase.php';
class api_v3_ContributionSoftTest extends CiviUnitTestCase {
/**
- * Assume empty database with just civicrm_data
+ * Assume empty database with just civicrm_data.
*/
protected $_individualId; //the hard credit contact
protected $_softIndividual1Id; //the first soft credit contact
}
/**
- * Test get methods
+ * Test get methods.
* @todo - this might be better broken down into more smaller tests
*/
public function testGetContributionSoft() {
/**
- * civicrm_contribution_soft
+ * civicrm_contribution_soft.
*/
public function testCreateEmptyParamsContributionSoft() {
$softcontribution = $this->callAPIFailure('contribution_soft', 'create', array(),
}
/**
- * Function tests that additional financial records are created when fee amount is recorded
+ * Function tests that additional financial records are created when fee amount is recorded.
*/
public function testCreateContributionSoft() {
$params = array(
}
/**
- * To Update Soft Contribution
+ * To Update Soft Contribution.
*
*/
public function testCreateUpdateContributionSoft() {
}
/**
- * civicrm_contribution_soft_delete methods
+ * civicrm_contribution_soft_delete methods.
*
*/
public function testDeleteEmptyParamsContributionSoft() {
///////////////// civicrm_contribution_search methods
/**
- * Test civicrm_contribution_search with empty params.
- * All available contributions expected.
+ * Test civicrm_contribution_search with empty params.
+ * All available contributions expected.
*/
public function testSearchEmptyParams() {
$p = array(
}
/**
- * Test civicrm_contribution_soft_search. Success expected.
+ * Test civicrm_contribution_soft_search. Success expected.
*/
public function testSearch() {
$p1 = array(
$this->assertEquals($p2['amount'], $res['amount'], 'In line ' . __LINE__);
$this->assertEquals($p2['currency'], $res['currency'], 'In line ' . __LINE__);
}
+
}