protected $_individualId;
protected $_pledgeID;
- protected $_apiversion = 3;
protected $_contributionID;
protected $_financialTypeId = 1;
protected $_entity = 'PledgePayment';
- public $DBResetRequired = TRUE;
+ /**
+ * Setup for tests.
+ *
+ * @throws \CRM_Core_Exception
+ */
public function setUp() {
parent::setUp();
$this->_individualId = $this->individualCreate();
$this->_contributionID = $this->contributionCreate(['contact_id' => $this->_individualId]);
}
+ /**
+ * Clean up after function.
+ * @throws \CRM_Core_Exception
+ */
public function tearDown() {
$tablesToTruncate = [
'civicrm_contribution',
'id' => $this->_pledgeID,
'return' => 'pledge_status',
]);
- $this->assertEquals('Pending', $checkStatus['pledge_status']);
+ $this->assertEquals('Pending Label**', $checkStatus['pledge_status']);
//Execute process_pledge job log.
$result = $this->callAPISuccess('Job', 'process_pledge', []);
'id' => $this->_pledgeID,
'return' => 'pledge_status',
]);
- $this->assertEquals('Pending', $checkStatus['pledge_status']);
+ $this->assertEquals('Pending Label**', $checkStatus['pledge_status']);
//Make first payment.
$paymentParams = [