Skip to content

Commit

Permalink
CRM-16189, fixed jenkins test
Browse files Browse the repository at this point in the history
----------------------------------------
* CRM-16189: Improve support for Accrual Method bookkeeping
  https://issues.civicrm.org/jira/browse/CRM-16189
  • Loading branch information
pradpnayak committed Sep 22, 2016
1 parent e048475 commit c5e6ce6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/phpunit/CRM/Contribute/BAO/ContributionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,7 @@ public function testIsPaymentFlag() {
);
$defaults = array();
$financialTrxn = CRM_Core_BAO_FinancialTrxn::retrieve($trxnArray, $defaults);
$this->assertEquals(2, $financialTrxn->N, 'Mismatch count for is payment flag.');
$this->assertEquals(1, $financialTrxn->N, 'Mismatch count for is payment flag.');
//update contribution amount
$ids = array('contribution' => $contribution->id);
$params['total_amount'] = 150;
Expand All @@ -514,10 +514,10 @@ public function testIsPaymentFlag() {
);
$defaults = array();
$financialTrxn = CRM_Core_BAO_FinancialTrxn::retrieve($trxnArray, $defaults);
$this->assertEquals(3, $financialTrxn->N, 'Mismatch count for is payment flag.');
$this->assertEquals(2, $financialTrxn->N, 'Mismatch count for is payment flag.');
$trxnArray['is_payment'] = 0;
$financialTrxn = CRM_Core_BAO_FinancialTrxn::retrieve($trxnArray, $defaults);
$this->assertEquals(NULL, $financialTrxn, 'Mismatch count for is payment flag.');
$this->assertEquals(1, $financialTrxn->N, 'Mismatch count for is payment flag.');
}

/**
Expand Down

0 comments on commit c5e6ce6

Please sign in to comment.