TEST fix bug in acc_balanceTest

This commit is contained in:
Dany De Bontridder 2019-11-02 22:55:16 +01:00
parent 986a480e90
commit 5b39c50a45

View file

@ -63,8 +63,10 @@ class Acc_BalanceTest extends TestCase
$this->object->jrn=1;
$this->object->filter_cat(array());
$this->assertEquals($this->object->jrn,null);
$this->object->filter_cat(array('FIN'));
$this->assertEquals($this->object->jrn[0],2);
$this->object->filter_cat(array('2'=>'FIN'));
$this->assertEquals($this->object->jrn,[1]);
$this->object->filter_cat(array('1'=>'ACH','2'=>'FIN'));
$this->assertEquals($this->object->jrn,[3,35,1]);
}
/**
*@covers Acc_Balance::summary_add
@ -102,15 +104,7 @@ class Acc_BalanceTest extends TestCase
}
/**
*@covers Acc_Balance::summary_add
*/
public function testSummary_display_pdf()
{
// No test since a PDF is modified and cannot be tested
// by PHPUNIT
$this->markTestSkipped("Summary_display_pdf cannot be tested since it modify a PDF");
}
/**
*@covers Acc_Balance::summary_init
*/