@@ -31,7 +31,7 @@ discard block |
||
31 | 31 | $_SERVER['PHP_SELF'] = "phpunit"; |
32 | 32 | } |
33 | 33 | |
34 | -global $conf,$user,$langs,$db; |
|
34 | +global $conf, $user, $langs, $db; |
|
35 | 35 | //define('TEST_DB_FORCE_TYPE','mysql'); // This is to force using mysql driver |
36 | 36 | //require_once 'PHPUnit/Autoload.php'; |
37 | 37 | require_once dirname(__FILE__).'/../../htdocs/master.inc.php'; |
@@ -91,7 +91,7 @@ discard block |
||
91 | 91 | parent::__construct($name, $data, $dataName); |
92 | 92 | |
93 | 93 | //$this->sharedFixture |
94 | - global $conf,$user,$langs,$db; |
|
94 | + global $conf, $user, $langs, $db; |
|
95 | 95 | $this->savconf = $conf; |
96 | 96 | $this->savuser = $user; |
97 | 97 | $this->savlangs = $langs; |
@@ -110,7 +110,7 @@ discard block |
||
110 | 110 | */ |
111 | 111 | public static function setUpBeforeClass(): void |
112 | 112 | { |
113 | - global $conf,$user,$langs,$db; |
|
113 | + global $conf, $user, $langs, $db; |
|
114 | 114 | $db->begin(); // This is to have all actions inside a transaction even if test launched without suite. |
115 | 115 | |
116 | 116 | if ((int) getenv('PHPUNIT_DEBUG') > 0) { |
@@ -193,7 +193,7 @@ discard block |
||
193 | 193 | */ |
194 | 194 | protected function setUp(): void |
195 | 195 | { |
196 | - global $conf,$user,$langs,$db; |
|
196 | + global $conf, $user, $langs, $db; |
|
197 | 197 | |
198 | 198 | $conf = $this->savconf; |
199 | 199 | $user = $this->savuser; |
@@ -276,7 +276,7 @@ discard block |
||
276 | 276 | 'accounting' => 'Accounting', |
277 | 277 | 'agenda' => 'Agenda', |
278 | 278 | 'ai' => 'Ai', |
279 | - 'anothermodule' => null, // Not used in code, used in translations.lang |
|
279 | + 'anothermodule' => null, // Not used in code, used in translations.lang |
|
280 | 280 | 'api' => 'Api', |
281 | 281 | 'asset' => 'Asset', |
282 | 282 | 'bank' => 'Banque', |
@@ -288,9 +288,9 @@ discard block |
||
288 | 288 | 'cashdesk' => null, |
289 | 289 | 'category' => 'Categorie', |
290 | 290 | 'clicktodial' => 'ClickToDial', |
291 | - 'collab' => 'Collab', // TODO: fill in proper name |
|
291 | + 'collab' => 'Collab', // TODO: fill in proper name |
|
292 | 292 | 'comptabilite' => 'Comptabilite', |
293 | - 'contact' => null, // TODO: fill in proper class |
|
293 | + 'contact' => null, // TODO: fill in proper class |
|
294 | 294 | 'contract' => 'Contrat', |
295 | 295 | 'cron' => 'Cron', |
296 | 296 | 'datapolicy' => 'DataPolicy', |
@@ -298,22 +298,22 @@ discard block |
||
298 | 298 | 'debugbar' => 'DebugBar', |
299 | 299 | 'shipping' => 'Expedition', |
300 | 300 | 'deplacement' => 'Deplacement', |
301 | - "documentgeneration" => 'DocumentGeneration', // TODO: fill in proper name |
|
301 | + "documentgeneration" => 'DocumentGeneration', // TODO: fill in proper name |
|
302 | 302 | 'don' => 'Don', |
303 | 303 | 'dynamicprices' => 'DynamicPrices', |
304 | 304 | 'ecm' => 'ECM', |
305 | - 'ecotax' => null, // TODO: External module ? |
|
305 | + 'ecotax' => null, // TODO: External module ? |
|
306 | 306 | 'emailcollector' => 'EmailCollector', |
307 | 307 | 'eventorganization' => 'EventOrganization', |
308 | 308 | 'expensereport' => 'ExpenseReport', |
309 | 309 | 'export' => 'Export', |
310 | - 'externalrss' => 'ExternalRss', // TODO: fill in proper name |
|
310 | + 'externalrss' => 'ExternalRss', // TODO: fill in proper name |
|
311 | 311 | 'externalsite' => 'ExternalSite', |
312 | 312 | 'fckeditor' => 'Fckeditor', |
313 | 313 | 'fournisseur' => 'Fournisseur', |
314 | 314 | 'ftp' => 'FTP', |
315 | - 'geoipmaxmind' => 'GeoIPMaxmind', // TODO: fill in proper name |
|
316 | - 'google' => null, // External ? |
|
315 | + 'geoipmaxmind' => 'GeoIPMaxmind', // TODO: fill in proper name |
|
316 | + 'google' => null, // External ? |
|
317 | 317 | 'gravatar' => 'Gravatar', |
318 | 318 | 'holiday' => 'Holiday', |
319 | 319 | 'hrm' => 'HRM', |
@@ -327,7 +327,7 @@ discard block |
||
327 | 327 | 'ldap' => 'Ldap', |
328 | 328 | 'loan' => 'Loan', |
329 | 329 | 'mailing' => 'Mailing', |
330 | - 'mailman' => null, // Same module as mailmanspip -> MailmanSpip ?? |
|
330 | + 'mailman' => null, // Same module as mailmanspip -> MailmanSpip ?? |
|
331 | 331 | 'mailmanspip' => 'MailmanSpip', |
332 | 332 | 'margin' => 'Margin', |
333 | 333 | 'member' => 'Adherent', |
@@ -340,7 +340,7 @@ discard block |
||
340 | 340 | 'notification' => 'Notification', |
341 | 341 | 'numberwords' => null, // Not provided by default, no module tests |
342 | 342 | 'oauth' => 'Oauth', |
343 | - 'openstreetmap' => null, // External module? |
|
343 | + 'openstreetmap' => null, // External module? |
|
344 | 344 | 'opensurvey' => 'OpenSurvey', |
345 | 345 | 'order' => 'Commande', |
346 | 346 | 'partnership' => 'Partnership', |
@@ -367,8 +367,8 @@ discard block |
||
367 | 367 | 'stock' => 'Stock', |
368 | 368 | 'stocktransfer' => 'StockTransfer', |
369 | 369 | 'stripe' => 'Stripe', |
370 | - 'supplier_invoice' => null, // Special case, uses invoice |
|
371 | - 'supplier_order' => null, // Special case, uses invoice |
|
370 | + 'supplier_invoice' => null, // Special case, uses invoice |
|
371 | + 'supplier_order' => null, // Special case, uses invoice |
|
372 | 372 | 'supplier_proposal' => 'SupplierProposal', |
373 | 373 | 'syslog' => 'Syslog', |
374 | 374 | 'takepos' => 'TakePos', |
@@ -379,7 +379,7 @@ discard block |
||
379 | 379 | 'webhook' => 'Webhook', |
380 | 380 | 'webportal' => 'WebPortal', |
381 | 381 | 'webservices' => 'WebServices', |
382 | - 'webservicesclient' => 'WebServicesClient', // TODO: set proper name |
|
382 | + 'webservicesclient' => 'WebServicesClient', // TODO: set proper name |
|
383 | 383 | 'website' => 'Website', |
384 | 384 | 'workflow' => 'Workflow', |
385 | 385 | 'workstation' => 'Workstation', |