Code improvement : change fiche function
getAttribut becomes load_attribute, strAttribut becomes set_attribute getAttribut becomes get_attribute
This commit is contained in:
parent
bec8b39afa
commit
6c3154abbd
45 changed files with 316 additions and 311 deletions
|
|
@ -160,7 +160,7 @@ class Fiche_DefTest extends Testcase
|
|||
}
|
||||
|
||||
/**
|
||||
* @testdox getAttribut
|
||||
* @testdox load_attribute
|
||||
*/
|
||||
function testGetAttribut()
|
||||
{
|
||||
|
|
@ -168,7 +168,7 @@ class Fiche_DefTest extends Testcase
|
|||
$fiche_def=$this->getFicheDef();
|
||||
|
||||
$aProperty=$g_connection->get_array("select ad_id from jnt_fic_attr where fd_id=$1", [$fiche_def->id]);
|
||||
$this->assertEquals(count($fiche_def->getAttribut()),count($aProperty)," number of property different in db and function getAttribut");
|
||||
$this->assertEquals(count($fiche_def->load_attribute()),count($aProperty)," number of property different in db and function load_attribute");
|
||||
}
|
||||
/**
|
||||
* @testdox if we insert a attribut ; all the cards from this category will have these attributes
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue