Improve PHPUNIT

This commit is contained in:
sparkyx 2025-10-06 16:38:39 +02:00
parent 4b84ba4879
commit 003fccf58b
7 changed files with 24 additions and 9 deletions

View file

@ -22,11 +22,12 @@
/*
* Global variables
*/
global $g_connection,$g_parameter,$g_user;
global $g_connection,$g_parameter,$g_user,$cn;
if (!defined("DOSSIER"))define ("DOSSIER",25);
$_REQUEST['gDossier'] = DOSSIER;
$g_connection=new Database(DOSSIER);
$cn=&$g_connection;
$g_parameter = new Noalyss_Parameter_Folder($g_connection);
$_SESSION[SESSION_KEY.'use_name']='unit test';
$_SESSION[SESSION_KEY.'use_first_name']='automatic';