Improve PHPUNIT
This commit is contained in:
parent
8b630f32ff
commit
0d57e8fbea
2 changed files with 6 additions and 2 deletions
|
|
@ -91,7 +91,9 @@ class Acc_LedgerTest extends TestCase
|
|||
*/
|
||||
public function testGet_last_pj()
|
||||
{
|
||||
|
||||
// reset sequence
|
||||
global $g_connection;
|
||||
$g_connection->exec_sql("alter sequence s_jrn_pj2 restart with 43");
|
||||
$this->object->id=2;
|
||||
$sPj=$this->object->get_last_pj(2);
|
||||
$this->assertEquals(42,$sPj);
|
||||
|
|
@ -240,6 +242,8 @@ class Acc_LedgerTest extends TestCase
|
|||
*/
|
||||
public function testGuess_pj()
|
||||
{
|
||||
global $g_connection;
|
||||
$g_connection->exec_sql("alter sequence s_jrn_pj2 restart with 43");
|
||||
$this->object->id=2;
|
||||
$r=$this->object->guess_pj();
|
||||
$this->assertEquals("VEN43",$r);
|
||||
|
|
|
|||
|
|
@ -124,7 +124,7 @@ EOF;
|
|||
$pdf_anc_acc=new PDF_Anc_Acc_List($anc_acc_list);
|
||||
$pdf_anc_acc->export_pdf()->Output(__DIR__."/file/pdf_anc_acc_list-card-activity.pdf","F");
|
||||
$filesize=filesize(__DIR__."/file/pdf_anc_acc_list-card-activity.pdf");
|
||||
$this->assertTrue($filesize==76920||$filesize==79619,
|
||||
$this->assertTrue($filesize==77276,
|
||||
__DIR__."/file/pdf_anc_acc_list-card-activity.pdf incorrect");
|
||||
|
||||
// By Account / Activity
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue