Skip to content

Commit

Permalink
CRM-16189 Fixed jenkins error
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
Edzelopez committed Jul 5, 2016
1 parent c6a9ae2 commit 31b3d1d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/phpunit/CRM/Event/BAO/ChangeDeferredTransactionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public function testChangeStartDate() {
$finAcc = new CRM_Financial_DAO_FinancialAccount();
$finAcc->name = "Deferred Revenue - Event Fee";
$finAcc->find(TRUE);

$this->assertEquals($dao->from_financial_account_id, $finAcc->id, 'Financial Account is not of type Deferred');
$this->assertEquals($dao->status_id, 3, 'Status must be of type Cancelled');

Expand All @@ -91,7 +91,7 @@ public function testChangeStartDate() {
);
$dao = CRM_Core_DAO::executeQuery($sql, $sqlParams);
$dao->fetch();

$this->assertEquals($dao->from_financial_account_id, $finAcc->id, 'Financial Account is not of type Deferred');
$this->assertEquals($dao->status_id, 1, 'Status must be of type Completed');
$this->assertEquals(date('Ymd', strtotime($dao->trxn_date)), date('Ymd', strtotime('+2 month')), 'Trxn dates do not match');
Expand Down

0 comments on commit 31b3d1d

Please sign in to comment.