[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 119/173: improve test for fiche get_row
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 119/173: improve test for fiche get_row |
Date: |
Mon, 22 Mar 2021 12:59:05 -0400 (EDT) |
sparkyx pushed a commit to branch master
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] 92/173: Merge branch 'accept7100' into entreprise, (continued)
- [Noalyss-commit] [noalyss] 92/173: Merge branch 'accept7100' into entreprise, Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 95/173: Merge branch 'accept7100' into entreprise, Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 97/173: Merge branch 'accept7100' into entreprise, Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 102/173: Task #0001698: Problème affichage historique fiches, Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 141/173: Merge commit '3e075a0a1aa8b6e42c458571ef0380a9c38f18fa' into entreprise, Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 106/173: Merge branch 'accept7100' into entreprise, Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 108/173: Bug with p_jrn, Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 109/173: Task #1759 = PRINTBAL sur 4 colonnes, Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 112/173: Save_form_plan must use the array, Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 116/173: Merge branch 'dev7102' into entreprise, Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 119/173: improve test for fiche get_row,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 134/173: Merge branch 'dev7202' into entreprise, Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 135/173: Merge branch 'dev7220' into entreprise, Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 137/173: Fiche.Test : add test cmp_name and get_row, Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 145/173: Merge branch 'entreprise' into next-release-8, Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 138/173: Test Unit Acc_Account_Legder , rounded value fixed, Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 139/173: Fix cosmetic and typo, Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 147/173: Error : duplicate function update_row, Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 151/173: htmlspecialchars use HTML5 and UTF8, Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 114/173: fixup! Printtva , under some circumstance tva_summary::check fails, Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 131/173: Merge branch 'dev-7201' into entreprise, Dany De Bontridder, 2021/03/22