Update DB Test for PHPUNIT
This commit is contained in:
parent
7dba3eb624
commit
63a9b1c311
3 changed files with 8 additions and 6 deletions
|
|
@ -64,9 +64,11 @@ class Acc_BalanceTest extends TestCase
|
|||
$this->object->filter_cat(array());
|
||||
$this->assertEquals($this->object->jrn,null);
|
||||
$this->object->filter_cat(array('2'=>'FIN'));
|
||||
sort($this->object->jrn);
|
||||
$this->assertEquals([1,83,152],$this->object->jrn);
|
||||
$this->object->filter_cat(array('1'=>'ACH','2'=>'FIN'));
|
||||
$this->assertEquals([35,3,1,83,152],$this->object->jrn);
|
||||
sort($this->object->jrn);
|
||||
$this->assertEquals([1,3,35,83,152],$this->object->jrn);
|
||||
}
|
||||
/**
|
||||
*@covers Acc_Balance::summary_add
|
||||
|
|
|
|||
|
|
@ -580,8 +580,8 @@ class Acc_Ledger_SaleTest extends TestCase
|
|||
|
||||
// cancel change
|
||||
$g_connection->get_value("update tva_rate set tva_both_side = $1 where tva_id=3 ",[$old_autoreverse]);
|
||||
$g_connection->exec_sql("delete from jrn where jr_mt=$1",[1734717784.385]);
|
||||
|
||||
$g_connection->exec_sql("delete from jrn where jr_mt=$1",[$array['mt']]);
|
||||
$g_connection->exec_sql('delete from jrnx where jrnx.j_grpt not in (select jr_grpt_id from jrn)');
|
||||
|
||||
}
|
||||
/**
|
||||
|
|
@ -595,7 +595,7 @@ class Acc_Ledger_SaleTest extends TestCase
|
|||
|
||||
$array['e_march1_tva_id']=5;
|
||||
|
||||
// clean
|
||||
// clean0
|
||||
$g_connection->exec_sql("delete from jrn where jr_mt=$1",[1734717784.385]);
|
||||
$this->object->insert($array);
|
||||
|
||||
|
|
@ -627,8 +627,8 @@ class Acc_Ledger_SaleTest extends TestCase
|
|||
|
||||
// cancel change
|
||||
|
||||
$g_connection->exec_sql("delete from jrn where jr_mt=$1",[1734717784.385]);
|
||||
|
||||
$g_connection->exec_sql("delete from jrn where jr_mt=$1",[$array['mt']]);
|
||||
$g_connection->exec_sql('delete from jrnx where jrnx.j_grpt not in (select jr_grpt_id from jrn)');
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue