Unit test : test changes 10.2

This commit is contained in:
sparkyx 2026-04-30 16:34:23 +02:00
parent 0fb3ab4973
commit 85022945dc
5 changed files with 42 additions and 17 deletions

View file

@ -49,6 +49,9 @@ class FacturXTest extends TestCase {
function testBuild_Data() {
$cn=\Dossier::connect();
$facturx=new \Noalyss\XMLDocument\FacturX($cn);
$data=$facturx->get_data() ;
$this->assertTrue($data == []
," Build Data fails : get null value");
}
@ -137,6 +140,6 @@ class FacturXTest extends TestCase {
$customer=$facturx->get_data()['customer'];
$a_error = $facturx->check_customer_data($customer['card_id']);
print_r($a_error);
$this->assertTrue(count($a_error)==6, "nb of error incorrect ,expected 6, received = ".print_r($a_error,true));
$this->assertTrue(count($a_error)==5, "nb of error incorrect (JR_INTERNAL=V000002),expected 5, received = ".print_r($a_error,true));
}
}