[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 50/54: improve test for fiche get_row
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 50/54: improve test for fiche get_row |
Date: |
Sat, 11 Jul 2020 13:27:01 -0400 (EDT) |
sparkyx pushed a commit to annotated tag entreprise-0500
in repository noalyss.
commit fa4c55ade95ed711829de3c08de5084d6b44777a
Author: Dany De Bontridder <danydb@noalyss.eu>
AuthorDate: Sat Oct 26 16:07:10 2019 +0200
improve test for fiche get_row
---
scenario/FicheTest.php | 22 ++++++++++++++++++----
1 file changed, 18 insertions(+), 4 deletions(-)
diff --git a/scenario/FicheTest.php b/scenario/FicheTest.php
index b1970ec..9267f61 100644
--- a/scenario/FicheTest.php
+++ b/scenario/FicheTest.php
@@ -42,12 +42,26 @@ $_POST=array (
$_POST['gDossier']=$gDossierLogInput;
$_GET['gDossier']=$gDossierLogInput;
$_REQUEST=array_merge($_GET,$_POST);
+$card_count=$cn->get_array("select count(*),f_id ".
+ " from jrnx ".
+ " where ".
+ " f_id is not null ".
+ "group by f_id order by count(*) desc");
+$a=new Fiche($cn,$card_count[0]['f_id']);
+$min=$cn->get_value("select p_id from parm_periode order by p_start asc limit
1");
+$max=$cn->get_value("select p_id from parm_periode order by p_start desc limit
1");
+printf ("Max période %s Min période %s",$max,$min);
+$result=$a->get_row($min,$max);
+$result_date=$a->get_row_date('01.01.2010','01.01.2090');
+
+if ( count($result_date) != count($result)) {
+ echo "Erreur";
+}
-$a=new Fiche($cn,230);
echo h1("Fiche->get_row");
-$result=$a->get_row(227,230);
var_dump($result);
+
echo h1("Fiche->get_row_date");
-$result=$a->get_row_date('01.01.2015','01.01.2017');
-var_dump($result);
+
+var_dump($result_date);
- [Noalyss-commit] [noalyss] 37/54: Merge branch 'accept7100' into entreprise, (continued)
- [Noalyss-commit] [noalyss] 37/54: Merge branch 'accept7100' into entreprise, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 41/54: Merge branch 'bug-printtva' into entreprise, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 42/54: If currency not given then supposed to be the default one (id=0), Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 43/54: Save_form_plan must use the array, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 49/54: Adapt printtva to entreprise, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 52/54: test : find the accounting with the biggest number of records, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 47/54: Merge branch 'dev7102' into entreprise, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 48/54: Acc_Ledger : problem with acc_ledger::load(), Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 45/54: fixup! Printtva , under some circumstance tva_summary::check fails, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 46/54: indent, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 50/54: improve test for fiche get_row,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 51/54: test : compute min et max periode, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 53/54: test : use the accounting with the biggest number of records, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 54/54: Improve Scenario Test, Dany De Bontridder, 2020/07/11