Code improvement : change fiche function

getAttribut becomes load_attribute,
 strAttribut becomes set_attribute
getAttribut becomes get_attribute
This commit is contained in:
sparkyx 2025-08-01 17:44:22 +02:00
parent bec8b39afa
commit 6c3154abbd
45 changed files with 316 additions and 311 deletions

View file

@ -110,9 +110,9 @@ class Ajax_MiscTest extends TestCase
// card for Merchandise
$fiche->set_fiche_def(1);
Card_Property::load($fiche);
$fiche->setAttribut(1, "Inserted by PHPUNIT-" . __CLASS__ . ":" . __FUNCTION__);
$fiche->setAttribut(ATTR_DEF_TVA, '210A');
$fiche->setAttribut(ATTR_DEF_QUICKCODE, 'MA1');
$fiche->set_attribute(1, "Inserted by PHPUNIT-" . __CLASS__ . ":" . __FUNCTION__);
$fiche->set_attribute(ATTR_DEF_TVA, '210A');
$fiche->set_attribute(ATTR_DEF_QUICKCODE, 'MA1');
$fiche->insert(1, $fiche->to_array());
return $fiche;
}