X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Fapi%2Fv3%2FPledgePaymentTest.php;h=17a2c98d854ed1e9e2623605fa169f3a7f95865e;hb=91786f443a2a7bf636d83723404e6cf925b8064d;hp=5de1670e485cecb2cc36e9bdf4698224db079d29;hpb=4408637ca3ab242eac95bee2ad76b47248bf6746;p=civicrm-core.git diff --git a/tests/phpunit/api/v3/PledgePaymentTest.php b/tests/phpunit/api/v3/PledgePaymentTest.php index 5de1670e48..17a2c98d85 100644 --- 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 $_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(); @@ -48,6 +51,10 @@ class api_v3_PledgePaymentTest extends CiviUnitTestCase { $this->_contributionID = $this->contributionCreate(['contact_id' => $this->_individualId]); } + /** + * Clean up after function. + * @throws \CRM_Core_Exception + */ public function tearDown() { $tablesToTruncate = [ 'civicrm_contribution', @@ -106,7 +113,7 @@ class api_v3_PledgePaymentTest extends CiviUnitTestCase { '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', []); @@ -129,7 +136,7 @@ class api_v3_PledgePaymentTest extends CiviUnitTestCase { 'id' => $this->_pledgeID, 'return' => 'pledge_status', ]); - $this->assertEquals('Pending', $checkStatus['pledge_status']); + $this->assertEquals('Pending Label**', $checkStatus['pledge_status']); //Make first payment. $paymentParams = [