noalyss-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Noalyss-commit] [noalyss] 02/02: PHPUNIT : fiche adapt to Postgresql 10


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 02/02: PHPUNIT : fiche adapt to Postgresql 10.0
Date: Thu, 19 Aug 2021 05:53:03 -0400 (EDT)

sparkyx pushed a commit to branch master
in repository noalyss.

commit 07f215d0eeed76aba7b623c56529d57fb8277805
Author: sparkyx <danydb@noalyss.eu>
AuthorDate: Thu Aug 19 11:52:53 2021 +0200

    PHPUNIT : fiche adapt to Postgresql 10.0
---
 include/sql/patch/upgrade165.sql       | 2 +-
 unit-test/include/class/fiche.Test.php | 3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/include/sql/patch/upgrade165.sql b/include/sql/patch/upgrade165.sql
index ac60229..3794045 100644
--- a/include/sql/patch/upgrade165.sql
+++ b/include/sql/patch/upgrade165.sql
@@ -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');
diff --git a/unit-test/include/class/fiche.Test.php 
b/unit-test/include/class/fiche.Test.php
index c46ecb3..77175bb 100644
--- a/unit-test/include/class/fiche.Test.php
+++ b/unit-test/include/class/fiche.Test.php
@@ -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();
 
     }
     /**



reply via email to

[Prev in Thread] Current Thread [Next in Thread]