PHPUNIT : fiche adapt to Postgresql 10.0

This commit is contained in:
sparkyx 2021-08-19 11:52:53 +02:00
parent 6e96c8a9d5
commit 07f215d0ee
2 changed files with 3 additions and 2 deletions

View file

@ -160,7 +160,7 @@ LANGUAGE plpgsql;
create trigger fiche_detail_check_trg before update or insert
on
public.fiche_detail for each row execute function comptaproc.fiche_detail_check() ;
public.fiche_detail for each row execute procedure comptaproc.fiche_detail_check() ;
insert into version (val,v_description) values (166,'Fix bug for card with empty name or quickcode');

View file

@ -453,7 +453,7 @@ where
);
}
/**
* @testdox Test if it is possible to insert or update a empty name
* @testdox Test if it is possible to insert an empty name
* @dataProvider dataInsertName
*/
public function testInsertName($p_name,$p_result)
@ -465,6 +465,7 @@ where
$fiche->insert(2, ['av_text23' => 'QC', "av_text1" => $p_name]);
$fiche->load();
$this->assertEquals($p_result,$fiche->strAttribut(ATTR_DEF_NAME),'incorrect name');
$fiche->remove();
}
/**