From 9090302a33e0d146b038cbba5fca3175b63f0348 Mon Sep 17 00:00:00 2001 From: Dany De Bontridder Date: Wed, 10 Jan 2018 10:54:04 +0100 Subject: [PATCH] Rewriting Change class Own by Noalyss_Parameter_Folder --- dev/misc-testing/pdf/pdf-page-break.php | 2 +- html/ajax.php | 4 ++-- html/ajax_misc.php | 2 +- html/ajax_test.php | 2 +- html/do.php | 2 +- html/fid.php | 2 +- html/test.php | 2 +- include/ajax/ajax_fiche_def_detail.php | 7 ++++--- include/ajax/ajax_ledger.php | 6 +++--- include/cfgfiche.inc.php | 2 +- include/class/acc_ledger_sold.class.php | 2 +- include/class/document.class.php | 2 +- include/class/fiche_def.class.php | 4 ++-- .../{own.class.php => noalyss_parameter_folder.class.php} | 2 +- include/class/print_ledger.class.php | 4 ++-- include/company.inc.php | 6 +++--- include/export/export_gl_csv.php | 2 +- include/export/export_gl_pdf.php | 2 +- include/export/export_ledger_csv.php | 4 ++-- include/export/export_ledger_pdf.php | 4 ++-- include/header_print.php | 4 ++-- include/impress_jrn.inc.php | 2 +- include/lib/pdf.class.php | 4 ++-- include/template/ledger_detail_ach.php | 4 ++-- include/template/ledger_detail_bottom.php | 2 +- include/template/ledger_detail_fin.php | 4 ++-- include/template/ledger_detail_misc.php | 6 +++--- include/template/ledger_detail_ven.php | 4 ++-- include/tva.inc.php | 4 ++-- unit-test/global.example.php | 2 +- unit-test/include/class/acc_account.classTest.php | 2 +- unit-test/include/class/acc_account_ledgerTest.class.php | 2 +- unit-test/include/class/acc_balanceTest.class.php | 2 +- unit-test/include/class/acc_bilanTest.class.php | 2 +- 34 files changed, 54 insertions(+), 53 deletions(-) rename include/class/{own.class.php => noalyss_parameter_folder.class.php} (99%) diff --git a/dev/misc-testing/pdf/pdf-page-break.php b/dev/misc-testing/pdf/pdf-page-break.php index e44a7c2be..dc5b3c266 100644 --- a/dev/misc-testing/pdf/pdf-page-break.php +++ b/dev/misc-testing/pdf/pdf-page-break.php @@ -25,7 +25,7 @@ include_once '../../include/constant.php'; require_once NOALYSS_INCLUDE.'/lib/pdf.class.php'; require_once NOALYSS_INCLUDE.'/class/dossier.class.php'; -require_once NOALYSS_INCLUDE.'/class/own.class.php'; +require_once NOALYSS_INCLUDE.'/class/noalyss_parameter_folder.class.php'; bcscale(2); $_REQUEST['gDossier']=37; $_GET['gDossier']=37; diff --git a/html/ajax.php b/html/ajax.php index 28a45034b..ea0a84fe6 100644 --- a/html/ajax.php +++ b/html/ajax.php @@ -19,12 +19,12 @@ require_once NOALYSS_INCLUDE.'/class/user.class.php'; require_once NOALYSS_INCLUDE.'/class/extension.class.php'; if ( !isset ($_REQUEST['gDossier'])) exit(); -require_once NOALYSS_INCLUDE.'/class/own.class.php'; +require_once NOALYSS_INCLUDE.'/class/noalyss_parameter_folder.class.php'; mb_internal_encoding("UTF-8"); global $g_user,$cn,$g_parameter; $cn=Dossier::connect(); -$g_parameter=new Own($cn); +$g_parameter=new Noalyss_Parameter_Folder($cn); $g_user=new User($cn); $g_user->check(true); set_language(); diff --git a/html/ajax_misc.php b/html/ajax_misc.php index 984ebb915..bf4883a6e 100644 --- a/html/ajax_misc.php +++ b/html/ajax_misc.php @@ -71,7 +71,7 @@ global $g_user, $cn, $g_parameter; // if ($gDossier<>0) { $cn =Dossier::connect(); - $g_parameter=new Own($cn); + $g_parameter=new Noalyss_Parameter_Folder($cn); $g_user = new User($cn); $g_user->check(true); if ( $g_user->check_dossier($gDossier, true) == 'X' ) { diff --git a/html/ajax_test.php b/html/ajax_test.php index ea444dc6c..01fd2b59e 100644 --- a/html/ajax_test.php +++ b/html/ajax_test.php @@ -48,7 +48,7 @@ $gDossierLogInput=$gDossier; global $cn, $g_user, $g_succeed, $g_failed; $cn=Dossier::connect(); -$g_parameter=new Own($cn); +$g_parameter=new Noalyss_Parameter_Folder($cn); $g_user=new User($cn); if (!file_exists('authorized_debug')) diff --git a/html/do.php b/html/do.php index bee66ad0c..1bd08fb08 100644 --- a/html/do.php +++ b/html/do.php @@ -142,7 +142,7 @@ if ( DEBUG ) { Check(); $g_user->check_dossier(Dossier::id()); diff --git a/html/fid.php b/html/fid.php index fd1746bc9..d8be46521 100644 --- a/html/fid.php +++ b/html/fid.php @@ -33,7 +33,7 @@ *\note if the j is -1 then all the card are shown */ require_once '../include/constant.php'; -require_once NOALYSS_INCLUDE.'/class/own.class.php'; +require_once NOALYSS_INCLUDE.'/class/noalyss_parameter_folder.class.php'; require_once NOALYSS_INCLUDE.'/lib/database.class.php'; require_once NOALYSS_INCLUDE.'/lib/user_common.php'; require_once NOALYSS_INCLUDE.'/lib/http_input.class.php'; diff --git a/html/test.php b/html/test.php index 2d8265f5c..36ff91d5f 100644 --- a/html/test.php +++ b/html/test.php @@ -53,7 +53,7 @@ $gDossierLogInput=$gDossier; global $cn, $g_user, $g_succeed, $g_failed; $cn=Dossier::connect(); -$g_parameter=new Own($cn); +$g_parameter=new Noalyss_Parameter_Folder($cn); $g_user=new User($cn); if (!file_exists('authorized_debug')) diff --git a/include/ajax/ajax_fiche_def_detail.php b/include/ajax/ajax_fiche_def_detail.php index 9c62f343f..2b01b9cf4 100644 --- a/include/ajax/ajax_fiche_def_detail.php +++ b/include/ajax/ajax_fiche_def_detail.php @@ -31,9 +31,10 @@ require_once NOALYSS_INCLUDE.'/lib/single_record.class.php'; global $g_user; $g_user->can_request(FICCAT,0); - -$fd=new Fiche_Def($cn,$_GET['id']); -if ( $_GET['id'] > 0 ) +$http=new HttpInput(); +$id=$http->get("id","number"); +$fd=new Fiche_Def($cn,$id); +if ( $id > 0 ) { echo $fd->input_detail(); diff --git a/include/ajax/ajax_ledger.php b/include/ajax/ajax_ledger.php index 7da244893..5560099cc 100644 --- a/include/ajax/ajax_ledger.php +++ b/include/ajax/ajax_ledger.php @@ -38,7 +38,7 @@ require_once NOALYSS_INCLUDE.'/class/fiche.class.php'; require_once NOALYSS_INCLUDE.'/class/acc_reconciliation.class.php'; require_once NOALYSS_INCLUDE.'/class/anc_operation.class.php'; require_once NOALYSS_INCLUDE.'/lib/idate.class.php'; -require_once NOALYSS_INCLUDE.'/class/own.class.php'; +require_once NOALYSS_INCLUDE.'/class/noalyss_parameter_folder.class.php'; require_once NOALYSS_INCLUDE.'/lib/iconcerned.class.php'; require_once NOALYSS_INCLUDE.'/lib/http_input.class.php'; $http=new HttpInput(); @@ -68,7 +68,7 @@ catch (Exception $exc) */ $cn=Dossier::connect(); -$g_parameter=new Own($cn); +$g_parameter=new Noalyss_Parameter_Folder($cn); $g_user->check(); if ( $g_user->check_dossier(dossier::id(),true)=='X' ) @@ -484,7 +484,7 @@ case 'save': //////////////////////////////////////////////////// // CA ////////////////////////////////////////////////// - $owner = new Own($cn); + $owner = new Noalyss_Parameter_Folder($cn); if ( $owner->MY_ANALYTIC != "nu" && isset ($_POST['op']) ) { // for each item, insert into operation_analytique */ diff --git a/include/cfgfiche.inc.php b/include/cfgfiche.inc.php index 47aaa1d63..89aef1f81 100644 --- a/include/cfgfiche.inc.php +++ b/include/cfgfiche.inc.php @@ -160,6 +160,6 @@ if ( isset($_POST['add_modele'])) } $fiche_def=new Fiche_def($cn); -$fiche_def->Display(); +$fiche_def->display(); $dossier=Dossier::id(); ?> diff --git a/include/class/acc_ledger_sold.class.php b/include/class/acc_ledger_sold.class.php index 4c5a20d06..cce0f27cb 100644 --- a/include/class/acc_ledger_sold.class.php +++ b/include/class/acc_ledger_sold.class.php @@ -37,7 +37,7 @@ require_once NOALYSS_INCLUDE.'/class/anc_operation.class.php'; require_once NOALYSS_INCLUDE.'/lib/user_common.php'; require_once NOALYSS_INCLUDE.'/class/acc_payment.class.php'; require_once NOALYSS_INCLUDE.'/lib/ac_common.php'; -require_once NOALYSS_INCLUDE.'/class/own.class.php'; +require_once NOALYSS_INCLUDE.'/class/noalyss_parameter_folder.class.php'; require_once NOALYSS_INCLUDE.'/lib/itva_popup.class.php'; require_once NOALYSS_INCLUDE.'/class/acc_ledger_fin.class.php'; require_once NOALYSS_INCLUDE.'/class/stock_goods.class.php'; diff --git a/include/class/document.class.php b/include/class/document.class.php index 54f6103ae..8a81ff2b7 100644 --- a/include/class/document.class.php +++ b/include/class/document.class.php @@ -17,7 +17,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ // Copyright Author Dany De Bontridder danydb@aevalys.eu -require_once NOALYSS_INCLUDE.'/class/own.class.php'; +require_once NOALYSS_INCLUDE.'/class/noalyss_parameter_folder.class.php'; require_once NOALYSS_INCLUDE.'/class/acc_account_ledger.class.php'; require_once NOALYSS_INCLUDE.'/class/follow_up.class.php'; require_once NOALYSS_INCLUDE.'/class/acc_tva.class.php'; diff --git a/include/class/fiche_def.class.php b/include/class/fiche_def.class.php index 55ded5b89..f913ed523 100644 --- a/include/class/fiche_def.class.php +++ b/include/class/fiche_def.class.php @@ -160,11 +160,11 @@ class Fiche_Def } /*! ************************************************** - * \brief Display category into a table + * \brief Display all card categories into a table * * \return HTML row */ - function Display() + function display() { $tab = new Sort_Table(); diff --git a/include/class/own.class.php b/include/class/noalyss_parameter_folder.class.php similarity index 99% rename from include/class/own.class.php rename to include/class/noalyss_parameter_folder.class.php index 1d2b544ad..8f784429e 100644 --- a/include/class/own.class.php +++ b/include/class/noalyss_parameter_folder.class.php @@ -24,7 +24,7 @@ * \brief Class to manage the company parameter (address, name...) */ -class Own +class Noalyss_Parameter_Folder { var $db; var $MY_NAME; diff --git a/include/class/print_ledger.class.php b/include/class/print_ledger.class.php index 08372ea48..7503fca4d 100644 --- a/include/class/print_ledger.class.php +++ b/include/class/print_ledger.class.php @@ -62,7 +62,7 @@ class Print_Ledger { //---------------------------------------------------------------------- // Simple Printing Purchase Ledger //--------------------------------------------------------------------- - $own = new Own($cn); + $own = new Noalyss_Parameter_Folder($cn); $jrn_type = $p_ledger->get_type(); @@ -98,7 +98,7 @@ class Print_Ledger { /********************************************************** * Print Detail Operation + Item ********************************************************** */ - $own = new Own($cn); + $own = new Noalyss_Parameter_Folder($cn); $jrn_type = $p_ledger->get_type(); if ($jrn_type == 'FIN') { $pdf = new Print_Ledger_Financial($cn, $p_ledger); diff --git a/include/company.inc.php b/include/company.inc.php index f6e5c27ec..c7dcc540e 100644 --- a/include/company.inc.php +++ b/include/company.inc.php @@ -26,10 +26,10 @@ if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis'); global $g_user; $http=new HttpInput(); echo '
'; -require_once NOALYSS_INCLUDE.'/class/own.class.php'; +require_once NOALYSS_INCLUDE.'/class/noalyss_parameter_folder.class.php'; if (isset($_POST['record_company'])) { - $m = new Own($cn); + $m = new Noalyss_Parameter_Folder($cn); $m->MY_NAME = $http->post("p_name"); $m->MY_TVA = $http->post("p_tva"); $m->MY_STREET = $http->post("p_street"); @@ -52,7 +52,7 @@ if (isset($_POST['record_company'])) $m->Update(); } -$my = new Own($cn); +$my = new Noalyss_Parameter_Folder($cn); ///// Compta analytic $array = array( array("value" => "ob", 'label' => _("obligatoire")), diff --git a/include/export/export_gl_csv.php b/include/export/export_gl_csv.php index 2c7a1b346..bb3415b53 100644 --- a/include/export/export_gl_csv.php +++ b/include/export/export_gl_csv.php @@ -43,7 +43,7 @@ include_once NOALYSS_INCLUDE.'/class/acc_account_ledger.class.php'; include_once NOALYSS_INCLUDE.'/lib/ac_common.php'; require_once NOALYSS_INCLUDE.'/lib/database.class.php'; include_once NOALYSS_INCLUDE.'/lib/impress.class.php'; -require_once NOALYSS_INCLUDE.'/class/own.class.php'; +require_once NOALYSS_INCLUDE.'/class/noalyss_parameter_folder.class.php'; require_once NOALYSS_INCLUDE.'/class/dossier.class.php'; require_once NOALYSS_INCLUDE.'/class/user.class.php'; require_once NOALYSS_INCLUDE.'/lib/noalyss_csv.class.php'; diff --git a/include/export/export_gl_pdf.php b/include/export/export_gl_pdf.php index 6d3faa523..8bb9f899d 100644 --- a/include/export/export_gl_pdf.php +++ b/include/export/export_gl_pdf.php @@ -27,7 +27,7 @@ include_once('class/acc_account_ledger.class.php'); include_once('lib/ac_common.php'); require_once NOALYSS_INCLUDE.'/lib/database.class.php'; include_once('lib/impress.class.php'); -require_once NOALYSS_INCLUDE.'/class/own.class.php'; +require_once NOALYSS_INCLUDE.'/class/noalyss_parameter_folder.class.php'; require_once NOALYSS_INCLUDE.'/class/dossier.class.php'; require_once NOALYSS_INCLUDE.'/class/user.class.php'; require_once NOALYSS_INCLUDE.'/lib/pdf.class.php'; diff --git a/include/export/export_ledger_csv.php b/include/export/export_ledger_csv.php index fce407220..9041f5862 100644 --- a/include/export/export_ledger_csv.php +++ b/include/export/export_ledger_csv.php @@ -22,7 +22,7 @@ */ if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis'); include_once NOALYSS_INCLUDE."/lib/ac_common.php"; -require_once NOALYSS_INCLUDE.'/class/own.class.php'; +require_once NOALYSS_INCLUDE.'/class/noalyss_parameter_folder.class.php'; require_once NOALYSS_INCLUDE.'/class/acc_ledger_sold.class.php'; require_once NOALYSS_INCLUDE.'/class/acc_ledger_purchase.class.php'; require_once NOALYSS_INCLUDE.'/class/dossier.class.php'; @@ -246,7 +246,7 @@ if ($get_option == 1) . "where " . "jr_id in (select jra_concerned from jrn_rapt where jr_id = $1 union all select jr_id from jrn_rapt where jra_concerned=$1)"); - $own=new Own($cn); + $own=new Noalyss_Parameter_Folder($cn); $title=array(); $title[]=_('Date'); $title[]=_("Paiement"); diff --git a/include/export/export_ledger_pdf.php b/include/export/export_ledger_pdf.php index 2123e534f..ea2fcc10c 100644 --- a/include/export/export_ledger_pdf.php +++ b/include/export/export_ledger_pdf.php @@ -34,7 +34,7 @@ require_once NOALYSS_INCLUDE.'/lib/ac_common.php'; require_once NOALYSS_INCLUDE.'/lib/database.class.php'; require_once NOALYSS_INCLUDE.'/lib/impress.class.php'; require_once NOALYSS_INCLUDE.'/class/acc_ledger.class.php'; -require_once NOALYSS_INCLUDE.'/class/own.class.php'; +require_once NOALYSS_INCLUDE.'/class/noalyss_parameter_folder.class.php'; require_once NOALYSS_INCLUDE.'/class/periode.class.php'; require_once NOALYSS_INCLUDE.'/class/print_ledger.class.php'; require_once NOALYSS_INCLUDE.'/lib/http_input.class.php'; @@ -56,7 +56,7 @@ catch (Exception $exc) throw $exc; } $l_type = "JRN"; -$own = new Own($cn); +$own = new Noalyss_Parameter_Folder($cn); $Jrn = new Acc_Ledger($cn, $jrn_id); diff --git a/include/header_print.php b/include/header_print.php index 5a1d8f44d..d0e6eb9be 100644 --- a/include/header_print.php +++ b/include/header_print.php @@ -25,7 +25,7 @@ */ require_once NOALYSS_INCLUDE.'/lib/database.class.php'; -require_once NOALYSS_INCLUDE.'/class/own.class.php'; +require_once NOALYSS_INCLUDE.'/class/noalyss_parameter_folder.class.php'; require_once NOALYSS_INCLUDE.'/class/dossier.class.php'; @@ -33,7 +33,7 @@ date_default_timezone_set ('Europe/Brussels'); function header_txt($p_cn) { - $own=new own($p_cn); + $own=new Noalyss_Parameter_Folder($p_cn); $soc=$own->MY_NAME; $date=date('d / m / Y H:i '); diff --git a/include/impress_jrn.inc.php b/include/impress_jrn.inc.php index 12b690d0d..d8bc42d96 100644 --- a/include/impress_jrn.inc.php +++ b/include/impress_jrn.inc.php @@ -338,7 +338,7 @@ if (isset($_REQUEST['bt_html'])) /* * Ledger ACH or VEN */ - $own=new Own($cn); + $own=new Noalyss_Parameter_Folder($cn); require_once NOALYSS_TEMPLATE.'/print_ledger_simple.php'; } diff --git a/include/lib/pdf.class.php b/include/lib/pdf.class.php index 636509fcd..90600bd7b 100644 --- a/include/lib/pdf.class.php +++ b/include/lib/pdf.class.php @@ -74,7 +74,7 @@ class PDF extends TFPDF date_default_timezone_set ('Europe/Paris'); $this->cn = $p_cn; - $this->own = new own($this->cn); + $this->own = new Noalyss_Parameter_Folder($this->cn); $this->soc = $this->own->MY_NAME; $this->date = date('d.m.Y'); $this->cells=array(); @@ -344,7 +344,7 @@ class PDFLand extends PDF $this->AddFont('DejaVuCond','I','DejaVuSansCondensed-Oblique.ttf',true); $this->cn = $p_cn; - $this->own = new own($this->cn); + $this->own = new Noalyss_Parameter_Folder($this->cn); $this->soc = $this->own->MY_NAME; $this->date = date('d.m.Y'); } diff --git a/include/template/ledger_detail_ach.php b/include/template/ledger_detail_ach.php index eff84cdbc..97981af2d 100644 --- a/include/template/ledger_detail_ach.php +++ b/include/template/ledger_detail_ach.php @@ -5,8 +5,8 @@ $str_anc=""; ?>
diff --git a/include/template/ledger_detail_bottom.php b/include/template/ledger_detail_bottom.php index 4900a090f..1431661a2 100644 --- a/include/template/ledger_detail_bottom.php +++ b/include/template/ledger_detail_bottom.php @@ -298,7 +298,7 @@ if ( $div != 'popup' ) { */ if ( $access=='W') { echo HtmlInput::submit('save',_('Sauver'),'onClick="return verify_ca(\'popup\');"'); - $owner=new Own($cn); + $owner=new Noalyss_Parameter_Folder($cn); if ($owner->MY_ANALYTIC != 'nu' /*&& $div=='popup' */){ echo ''; } diff --git a/include/template/ledger_detail_fin.php b/include/template/ledger_detail_fin.php index b352499ad..a34f4b680 100644 --- a/include/template/ledger_detail_fin.php +++ b/include/template/ledger_detail_fin.php @@ -5,8 +5,8 @@ $str_anc=""; ?>
@@ -86,8 +86,8 @@ require_once NOALYSS_INCLUDE.'/class/anc_plan.class.php';
diff --git a/include/template/ledger_detail_ven.php b/include/template/ledger_detail_ven.php index 82dc7c88b..fa7c3acaf 100644 --- a/include/template/ledger_detail_ven.php +++ b/include/template/ledger_detail_ven.php @@ -11,8 +11,8 @@ ?>
diff --git a/include/tva.inc.php b/include/tva.inc.php index 527cae616..6f9442272 100644 --- a/include/tva.inc.php +++ b/include/tva.inc.php @@ -21,7 +21,7 @@ * \brief included file for customizing with the vat (account,rate...) */ if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis'); -require_once NOALYSS_INCLUDE.'/class/own.class.php'; +require_once NOALYSS_INCLUDE.'/class/noalyss_parameter_folder.class.php'; require_once NOALYSS_INCLUDE.'/lib/html_input.class.php'; require_once NOALYSS_INCLUDE.'/lib/ihidden.class.php'; require_once NOALYSS_INCLUDE.'/lib/itextarea.class.php'; @@ -87,7 +87,7 @@ if (isset($_POST['confirm_mod']) } } // If company not use VAT -$own = new Own($cn); +$own = new Noalyss_Parameter_Folder($cn); if ($own->MY_TVA_USE == 'N') { echo '

'._("Vous n'êtes pas assujetti à la TVA").'

'; diff --git a/unit-test/global.example.php b/unit-test/global.example.php index ef5a767ba..499571755 100644 --- a/unit-test/global.example.php +++ b/unit-test/global.example.php @@ -26,7 +26,7 @@ global $g_connection,$g_parameter,$g_user; $_REQUEST['gDossier'] = DOSSIER; $g_connection=new Database(DOSSIER); -$g_parameter = new Own($g_connection); +$g_parameter = new Noalyss_Parameter_Folder($g_connection); $_SESSION['g_user']='phpcompta'; $_SESSION['g_pass']='dany'; $_SESSION['g_pagesize']='50'; diff --git a/unit-test/include/class/acc_account.classTest.php b/unit-test/include/class/acc_account.classTest.php index e4ea1956d..e8af419b2 100644 --- a/unit-test/include/class/acc_account.classTest.php +++ b/unit-test/include/class/acc_account.classTest.php @@ -20,7 +20,7 @@ class Acc_AccountTest extends PHPUnit_Framework_TestCase global $g_connection, $g_parameter, $g_user; $_REQUEST['gDossier']=DOSSIER; $g_connection=new Database(DOSSIER); - $g_parameter=new Own($g_connection); + $g_parameter=new Noalyss_Parameter_Folder($g_connection); $g_user=new User($g_connection); $cn=Dossier::connect(); $this->object=new Acc_Account($cn, '400'); diff --git a/unit-test/include/class/acc_account_ledgerTest.class.php b/unit-test/include/class/acc_account_ledgerTest.class.php index 46053423f..52acf96b3 100644 --- a/unit-test/include/class/acc_account_ledgerTest.class.php +++ b/unit-test/include/class/acc_account_ledgerTest.class.php @@ -21,7 +21,7 @@ class Acc_Account_LedgerTest extends PHPUnit_Framework_TestCase global $g_connection, $g_parameter,$g_user; $_REQUEST['gDossier']=DOSSIER; $g_connection=new Database(DOSSIER); - $g_parameter=new Own($g_connection); + $g_parameter=new Noalyss_Parameter_Folder($g_connection); $g_user=new User($g_connection); $this->object=new Acc_Account_Ledger($g_connection, 400); } diff --git a/unit-test/include/class/acc_balanceTest.class.php b/unit-test/include/class/acc_balanceTest.class.php index 0ee7926ab..91b6f018d 100644 --- a/unit-test/include/class/acc_balanceTest.class.php +++ b/unit-test/include/class/acc_balanceTest.class.php @@ -20,7 +20,7 @@ class Acc_BalanceTest extends PHPUnit_Framework_TestCase global $g_connection, $g_parameter; $_REQUEST['gDossier']=DOSSIER; $g_connection=new Database(DOSSIER); - $g_parameter=new Own($g_connection); + $g_parameter=new Noalyss_Parameter_Folder($g_connection); $this->object=new Acc_Balance($g_connection); } diff --git a/unit-test/include/class/acc_bilanTest.class.php b/unit-test/include/class/acc_bilanTest.class.php index 3cb07d467..35b93c5f1 100644 --- a/unit-test/include/class/acc_bilanTest.class.php +++ b/unit-test/include/class/acc_bilanTest.class.php @@ -21,7 +21,7 @@ class Acc_BilanTest extends PHPUnit_Framework_TestCase global $g_connection, $g_parameter; $_REQUEST['gDossier']=DOSSIER; $g_connection=new Database(DOSSIER); - $g_parameter=new Own($g_connection); + $g_parameter=new Noalyss_Parameter_Folder($g_connection); $this->object=new Acc_Bilan($g_connection); }