projects
/
civicrm-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Rename (some) labels to differ from names to simulate the fact they are different...
[civicrm-core.git]
/
tests
/
phpunit
/
api
/
v3
/
PledgePaymentTest.php
diff --git
a/tests/phpunit/api/v3/PledgePaymentTest.php
b/tests/phpunit/api/v3/PledgePaymentTest.php
index 5de1670e485cecb2cc36e9bdf4698224db079d29..17a2c98d854ed1e9e2623605fa169f3a7f95865e 100644
(file)
--- a/
tests/phpunit/api/v3/PledgePaymentTest.php
+++ b/
tests/phpunit/api/v3/PledgePaymentTest.php
@@
-35,12
+35,15
@@
class api_v3_PledgePaymentTest extends CiviUnitTestCase {
protected $_individualId;
protected $_pledgeID;
protected $_individualId;
protected $_pledgeID;
- protected $_apiversion = 3;
protected $_contributionID;
protected $_financialTypeId = 1;
protected $_entity = 'PledgePayment';
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();
public function setUp() {
parent::setUp();
$this->_individualId = $this->individualCreate();
@@
-48,6
+51,10
@@
class api_v3_PledgePaymentTest extends CiviUnitTestCase {
$this->_contributionID = $this->contributionCreate(['contact_id' => $this->_individualId]);
}
$this->_contributionID = $this->contributionCreate(['contact_id' => $this->_individualId]);
}
+ /**
+ * Clean up after function.
+ * @throws \CRM_Core_Exception
+ */
public function tearDown() {
$tablesToTruncate = [
'civicrm_contribution',
public function tearDown() {
$tablesToTruncate = [
'civicrm_contribution',
@@
-106,7
+113,7
@@
class api_v3_PledgePaymentTest extends CiviUnitTestCase {
'id' => $this->_pledgeID,
'return' => 'pledge_status',
]);
'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', []);
//Execute process_pledge job log.
$result = $this->callAPISuccess('Job', 'process_pledge', []);
@@
-129,7
+136,7
@@
class api_v3_PledgePaymentTest extends CiviUnitTestCase {
'id' => $this->_pledgeID,
'return' => 'pledge_status',
]);
'id' => $this->_pledgeID,
'return' => 'pledge_status',
]);
- $this->assertEquals('Pending', $checkStatus['pledge_status']);
+ $this->assertEquals('Pending
Label**
', $checkStatus['pledge_status']);
//Make first payment.
$paymentParams = [
//Make first payment.
$paymentParams = [