diff --git a/unit-test/create-dossier-test.sh b/unit-test/create-dossier-test.sh new file mode 100755 index 000000000..0526bd615 --- /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 000000000..de95570fd 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 499571755..70f4ab106 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);