TEST
This commit is contained in:
parent
325e37434b
commit
e3ea7066c2
2 changed files with 11 additions and 3 deletions
|
|
@ -46,9 +46,9 @@ class Acc_OperationTest extends TestCase
|
|||
*/
|
||||
public function testSeek_group()
|
||||
{
|
||||
$this->object->jr_id=39;
|
||||
$this->object->jr_id=6;
|
||||
$r=$this->object->seek_group();
|
||||
$this->assertEquals(2922,$r);
|
||||
$this->assertEquals(8,$r);
|
||||
}
|
||||
/**
|
||||
* @covers Acc_Operation::set_id
|
||||
|
|
@ -74,6 +74,7 @@ class Acc_OperationTest extends TestCase
|
|||
$row=$this->object->db->get_array('select * from jrn where jr_rapt <> $1 limit 1',array('paid'));
|
||||
if ( ! $row ) {
|
||||
echo "Aucune ligne trouvée";
|
||||
$this->assertTrue(TRUE);
|
||||
} else {
|
||||
$this->object->jr_id=$row[0]['jr_id'];
|
||||
$this->object->set_paid();
|
||||
|
|
|
|||
|
|
@ -41,13 +41,20 @@ class Acc_Parm_CodeTest extends TestCase
|
|||
{
|
||||
|
||||
$a_result=$this->object->load_all();
|
||||
$err=0;
|
||||
for ($i=0;$i<count($a_result);$i++)
|
||||
{
|
||||
$code=$a_result[$i]->p_code;
|
||||
if (! in_array($code, array('BANQUE','CAISSE','COMPTE_COURANT','COMPTE_TVA',
|
||||
'CUSTOMER','DEP_PRIV','DNA','SUPPLIER','TVA_DED_IMPOT','TVA_DNA','VENTE','VIREMENT_INTERNE')))
|
||||
$this->assertNull('code inconnu'.$code);
|
||||
{
|
||||
$err++;
|
||||
$this->assertNull('code inconnu'.$code);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
$this->assertEquals(0,$err);
|
||||
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue