Merge pull request #10030 from eileenmcnaughton/test
[civicrm-core.git] / tests / phpunit / api / v3 / ContributionSoftTest.php
index fe374aafbd0ab80cfaea83f9cb54417dc42379cc..c3894f38bba99086b914f7b1e0432d63abc90be8 100644 (file)
@@ -1,9 +1,9 @@
 <?php
 /*
  +--------------------------------------------------------------------+
- | CiviCRM version 4.6                                                |
+ | CiviCRM version 4.7                                                |
  +--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2015                                |
+ | Copyright CiviCRM LLC (c) 2004-2017                                |
  +--------------------------------------------------------------------+
  | 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;
@@ -58,7 +71,7 @@ class api_v3_ContributionSoftTest extends CiviUnitTestCase {
     $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',
@@ -85,6 +98,7 @@ class api_v3_ContributionSoftTest extends CiviUnitTestCase {
 
   /**
    * Test get methods.
+   *
    * @todo - this might be better broken down into more smaller tests
    */
   public function testGetContributionSoft() {