noalyss-commit
[Top][All Lists]
Advanced

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

[Noalyss-commit] [noalyss] 02/11: PHPUNIT : add test folder


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 02/11: PHPUNIT : add test folder
Date: Fri, 25 Oct 2019 18:42:50 -0400 (EDT)

sparkyx pushed a commit to branch master
in repository noalyss.

commit ea1cc6b59416887abfbd35cc64a3a577df40fe71
Author: Dany De Bontridder <address@hidden>
Date:   Sun Sep 29 21:51:52 2019 +0200

    PHPUNIT : add test folder
---
 unit-test/create-dossier-test.sh |   6 ++++++
 unit-test/db/dossiertest.bin.gz  | Bin 0 -> 68624 bytes
 unit-test/global.example.php     |   3 ++-
 3 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/unit-test/create-dossier-test.sh b/unit-test/create-dossier-test.sh
new file mode 100755
index 0000000..0526bd6
--- /dev/null
+++ b/unit-test/create-dossier-test.sh
@@ -0,0 +1,6 @@
+#!/bin/bash
+
+DOSSIER_TEST=dossier48
+
+pg_restore -Fc --no-owner --no-privilege --verbose  -d $DOSSIER_TEST  
db/dossiertest.bin
+
diff --git a/unit-test/db/dossiertest.bin.gz b/unit-test/db/dossiertest.bin.gz
new file mode 100644
index 0000000..de95570
Binary files /dev/null and b/unit-test/db/dossiertest.bin.gz differ
diff --git a/unit-test/global.example.php b/unit-test/global.example.php
index 4995717..70f4ab1 100644
--- a/unit-test/global.example.php
+++ b/unit-test/global.example.php
@@ -24,10 +24,11 @@
  * Global variables
  */
 global $g_connection,$g_parameter,$g_user;
+define ("DOSSIER",48);
 $_REQUEST['gDossier'] = DOSSIER;
 $g_connection=new Database(DOSSIER);
 $g_parameter = new Noalyss_Parameter_Folder($g_connection);
 $_SESSION['g_user']='phpcompta';
 $_SESSION['g_pass']='dany';
 $_SESSION['g_pagesize']='50';
-$g_user=new User($g_connection);
\ No newline at end of file
+$g_user=new User($g_connection);



reply via email to

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