+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2015 |
+ | Copyright CiviCRM LLC (c) 2004-2016 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
+--------------------------------------------------------------------+
*/
-require_once 'CiviTest/CiviUnitTestCase.php';
-
/**
* Test APIv3 civicrm_contribute_* functions
*
* @package CiviCRM_APIv3
* @subpackage API_ContributionSoft
+ * @group headless
*/
class api_v3_ContributionSoftTest extends CiviUnitTestCase {
/**
- * Assume empty database with just civicrm_data.
+ * The hard credit contact.
+ *
+ * @var int
+ */
+ protected $_individualId;
+
+ /**
+ * The first soft credit contact.
+ *
+ * @var int
*/
- protected $_individualId; //the hard credit contact
- protected $_softIndividual1Id; //the first soft credit contact
- protected $_softIndividual2Id; //the second soft credit contact
+ protected $_softIndividual1Id;
+
+ /**
+ * The second soft credit contact.
+ *
+ * @var int
+ */
+ protected $_softIndividual2Id;
protected $_contributionId;
protected $_financialTypeId = 1;
protected $_apiversion = 3;
$this->_softIndividual2Id = $this->individualCreate();
$this->_contributionId = $this->contributionCreate(array('contact_id' => $this->_individualId));
- $paymentProcessor = $this->processorCreate();
+ $this->processorCreate();
$this->_params = array(
'contact_id' => $this->_individualId,
'receive_date' => '20120511',
/**
* Test get methods.
+ *
* @todo - this might be better broken down into more smaller tests
*/
public function testGetContributionSoft() {