PHPUNIT : add test folder
This commit is contained in:
parent
16b459a481
commit
ea1cc6b594
3 changed files with 8 additions and 1 deletions
6
unit-test/create-dossier-test.sh
Executable file
6
unit-test/create-dossier-test.sh
Executable file
|
|
@ -0,0 +1,6 @@
|
|||
#!/bin/bash
|
||||
|
||||
DOSSIER_TEST=dossier48
|
||||
|
||||
pg_restore -Fc --no-owner --no-privilege --verbose -d $DOSSIER_TEST db/dossiertest.bin
|
||||
|
||||
BIN
unit-test/db/dossiertest.bin.gz
Normal file
BIN
unit-test/db/dossiertest.bin.gz
Normal file
Binary file not shown.
|
|
@ -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);
|
||||
$g_user=new User($g_connection);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue