Commit Graph

1807 Commits

Author SHA1 Message Date
thibdrev
ec3687528e
qual: Update ProfidLibTest.php - uncomment line testing that BE TIN shall start by 0 or 1
Since PR#27829 has been merged, we can now uncomment the line testing that a the Belgium Tax Identification Number shall start by 0 or 1.
2024-01-28 17:11:12 +01:00
thibdrev
e0b35d2f6b
typo 2024-01-27 23:24:01 +01:00
thibdrev
4946184648
phpcs 2024-01-27 14:15:16 +01:00
thibdrev
1d0a6411bc
qual: add phpunit tests for profid.lib.php 2024-01-27 14:09:04 +01:00
MDW
a04f2bf4e7
Qual: Spelling fixes that newly appeared. (#27495)
* Qual: Spelling fixes that newly appeared.

# Qual: Fix spelling erros that appeared since the bulk updates.

These issues mostly appeared since the bulk updates (a few ones were postponed
to make sure no real spelling errors were missed.)

* Update modulebuilder.lib.php

* Update pdf_standard.modules.php

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-01-14 12:26:37 +01:00
Laurent Destailleur
8f9d104ccd Fix phpunit 2024-01-13 19:37:06 +01:00
MDW
42a0d05b63
Qual: Spelling outside htdocs (#27448)
* Qual: Spelling outside htdocs

# Qual: Fix spelling of files not in the htdocs subdirectory.

Highlight:
- Change in email test from unvalid to invalid that should give the same test result.

* Update Dolibarr-soapui-project.xml

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-01-12 17:14:13 +01:00
Laurent Destailleur
c15627016a Fix bad test for disabling TCPDI. Add more phpunit 2024-01-10 21:51:32 +01:00
Alexandre Janniaux
a0a3339eb9 DiscountTest: fix create when no societe exists
Fix the following error when running without the dataset.

    ✘ Discount create
    ┐
    ├ ERROR:  23503: insert or update on table "llx_societe_remise_except" violates foreign key constraint "fk_soc_remise_fk_soc"                                                                                                                                                                                                                                                                                                                                      
    ├ DETAIL:  Key (fk_soc)=(1) is not present in table "llx_societe".                                                                                                                                                                                                                                                                                                                                                                                                 
    ├ SCHEMA NAME:  public                                                                                                                                                                                                                                                                                                                                                                                                                                             
    ├ TABLE NAME:  llx_societe_remise_except                                                                                                                                                                                                                                                                                                                                                                                                                           
    ├ CONSTRAINT NAME:  fk_soc_remise_fk_soc                                                                                                                                                                                                                                                                                                                                                                                                                           
    ├ LOCATION:  ri_ReportViolation, ri_triggers.c:2596 - sql=INSERT INTO llx_societe_remise_except (entity, datec, fk_soc, discount_type, fk_user, description, amount_ht, amount_tva, amount_ttc, tva_tx, vat_src_code, multicurrency_amount_ht, multicurrency_amount_tva, multicurrency_amount_ttc, fk_facture_source, fk_invoice_supplier_source) VALUES (1, '2024-01-05 14:05:20', 1, 0, 1, 'Specimen discount', 10, 1.96, 11.96, 19.6, '', 0, 0, 0,  null, null),
    ├ Failed asserting that 0 is less than -1.                                                                                                                                                                                                                                                                                                                                                                                                                         
    │
    │ dolibarr/test/phpunit/DiscountTest.php:147
    ┴
2024-01-05 15:05:33 +01:00
Laurent Destailleur
bbf687da0c Fix warning 2024-01-05 03:08:16 +01:00
Laurent Destailleur
02183b473d
Merge pull request #27294 from alexandre-janniaux/fichintertest-soc/1
FIX: FichinterTest: create Societe object in test
2024-01-05 02:05:17 +01:00
Alexandre Janniaux
0e58316050 FichinterTest: create Societe object
Fix the following error when running without the dataset.

    Fichinter
     ✘ Fichinter create
       ┐
       ├ ERROR:  23503: insert or update on table "llx_fichinter" violates foreign key constraint "fk_fichinter_fk_soc"
       ├ DETAIL:  Key (fk_soc)=(1) is not present in table "llx_societe".
       ├ SCHEMA NAME:  public
       ├ TABLE NAME:  llx_fichinter
       ├ CONSTRAINT NAME:  fk_fichinter_fk_soc
       ├ LOCATION:  ri_ReportViolation, ri_triggers.c:2596,
       ├ Failed asserting that 0 is less than -1.
       │
       │ dolibarr/test/phpunit/FichinterTest.php:147
       ┴
2024-01-04 17:04:45 +01:00
Alexandre Janniaux
a07ad0fe73 FichinterTest: add errorsToString()
Adding $localobject->errorsToString() as third argument to the assert
will allow to forward internal errors towards the tests and display them
accordingly.
2024-01-04 17:02:12 +01:00
Laurent Destailleur
482adfd7a0 Merge branch '18.0' of git@github.com:Dolibarr/dolibarr.git into develop 2023-12-30 13:11:15 +01:00
Laurent Destailleur
a04b714d28 Merge branch '17.0' of git@github.com:Dolibarr/dolibarr.git into 18.0 2023-12-30 13:10:42 +01:00
Laurent Destailleur
14cc6c0332 Fix phpunit 2023-12-30 13:09:41 +01:00
Laurent Destailleur
ef312e960c Merge branch '18.0' of git@github.com:Dolibarr/dolibarr.git into develop 2023-12-29 16:53:09 +01:00
Laurent Destailleur
d2b3920684 Merge 2023-12-29 16:51:05 +01:00
MDW
b5b8a2a874 Fix utf8_encoding/decoding (PHP8.2 deprecation)
Fix files that were missed in #27018
2023-12-27 19:45:37 +01:00
Laurent Destailleur
61c5c6f88d Fix regression 2023-12-27 13:09:25 +01:00
Laurent Destailleur
6386b02963 Fix phpunit for postgresql 2023-12-19 15:10:59 +01:00
Laurent Destailleur
97ae114265 FIX Universal search syntax accept string with ' in the IN 2023-12-19 15:01:21 +01:00
Laurent Destailleur
d423665551 Fix regression 2023-12-19 14:12:13 +01:00
Laurent Destailleur
e7c405425c Debug v19 2023-12-19 14:03:17 +01:00
Laurent Destailleur
b3762798a7
Merge pull request #27149 from alexandre-janniaux/commande-test-create-soc/1
FIX: CommandeTest: fix create when no company exists
2023-12-17 20:54:23 +01:00
Laurent Destailleur
a9bdab922b
Merge pull request #27150 from alexandre-janniaux/companybankaccounttest-societe/1
FIX: CompanyBankAccountTest: fix create when no societe exists
2023-12-17 20:54:07 +01:00
Alexandre Janniaux
f728bda625 ContratTest: add more error context 2023-12-17 16:06:06 +01:00
Alexandre Janniaux
c2c99ab2b8 FIX: ContratTest: fix create when no societe exists
The testContratCreate() is using the default value for Contrat::socid,
which is defined by Contrat::initAsSpecimen to `0`. But if no companies
have been created, the test will fail with the following error:

    Failed asserting that 0 is less than -1.

Or with the additional logging:

    UnknownError: ERROR:  23503: insert or update on table "llx_contrat" violates foreign key constraint "fk_contrat_fk_soc"
    DETAIL:  Key (fk_soc)=(1) is not present in table "llx_societe".                                                        
    SCHEMA NAME:  public                                                                                                    
    TABLE NAME:  llx_contrat                                                                                                
    CONSTRAINT NAME:  fk_contrat_fk_soc                                                                                     
    LOCATION:  ri_ReportViolation, ri_triggers.c:2596 -,                                                                    
    Failed asserting that 0 is less than -1.

The test doesn't really depends on specific test data so we can create
the company directly instead.
2023-12-17 16:06:05 +01:00
Alexandre Janniaux
da3b4d10df FIX: CompanyBankAccountTest: fix create when no societe exists
The testCompanyBankAccountCreate() is using the default value for
CompanyBankAccount::socid, which is defined by
CompanyBankAccount::initAsSpecimen to `0`. But if no companies have been
created, the test will fail with the following error:

    Failed asserting that 0 is less than -1.

Or with the additional logging:

    ERROR:  23503: insert or update on table "llx_societe_rib" violates foreign key constraint "llx_societe_rib_fk_societe"                                                   
    DETAIL:  Key (fk_soc)=(1) is not present in table "llx_societe".                                                                                                          
    SCHEMA NAME:  public                                                                                                                                                      
    TABLE NAME:  llx_societe_rib                                                                                                                                              
    CONSTRAINT NAME:  llx_societe_rib_fk_societe                                                                                                                              
    LOCATION:  ri_ReportViolation, ri_triggers.c:2596, ERROR:  23503: insert or update on table "llx_societe_rib" violates foreign key constraint "llx_societe_rib_fk_societe"
    DETAIL:  Key (fk_soc)=(1) is not present in table "llx_societe".                                                                                                          
    SCHEMA NAME:  public                                                                                                                                                      
    TABLE NAME:  llx_societe_rib                                                                                                                                              
    CONSTRAINT NAME:  llx_societe_rib_fk_societe                                                                                                                              
    LOCATION:  ri_ReportViolation, ri_triggers.c:2596                                                                                                                         
    Failed asserting that 0 is less than -1.

The test doesn't really depends on specific test data so we can create
the company directly instead.
2023-12-17 15:55:26 +01:00
Alexandre Janniaux
0cc1cfc1ee FIX: CommandeTest: fix create when no company exists
The testCommandeCreate() is using the default value for Commande::socid,
which is defined by Command::initAsSpecimen to `0`. But if no companies
have been created, the test will fail with the following error:

    Failed asserting that 0 is less than -1.

Or with the additional logging:

    ERROR:  23503: insert or update on table "llx_commande" violates foreign key constraint "fk_commande_fk_soc"
    DETAIL:  Key (fk_soc)=(1) is not present in table "llx_societe".                                            
    SCHEMA NAME:  public                                                                                        
    TABLE NAME:  llx_commande                                                                                   
    CONSTRAINT NAME:  fk_commande_fk_soc                                                                        
    LOCATION:  ri_ReportViolation, ri_triggers.c:2596,                                                          
    Failed asserting that 0 is less than -1.

The test doesn't really depends on specific test data so we can create
the company directly instead.
2023-12-17 15:45:25 +01:00
Florian HENRY
8be0970a0c review test 2023-12-13 11:47:25 +01:00
Florian HENRY
82c49e62d1 add unit test for image in email with src=../media/ or src=base64 2023-12-13 11:31:42 +01:00
Laurent Destailleur
29dc12dd58 Option MAIN_DISALLOW_URL_INTO_DESCRIPTIONS accept 1 or 2 value.
Value 1 should be ready to be on by default in a next version.
Fix #yogosha18900
2023-12-10 16:19:05 +01:00
Laurent Destailleur
729451faa2 FIX To support domain names with TLD on 2 levels. 2023-12-06 00:46:00 +01:00
Laurent Destailleur
c9fc494796 FIX To support domain names with TLD on 2 levels. 2023-12-06 00:27:52 +01:00
Laurent Destailleur
de7d3c2bf8 Fix with php-cs-fixer 2023-12-04 11:22:28 +01:00
Laurent Destailleur
0d1983766e Fix order of param 2023-12-01 19:48:26 +01:00
Laurent Destailleur
da244466b7 Add phpunit on utf8_check and utf8_valid 2023-11-30 21:22:20 +01:00
Laurent Destailleur
c417949a7e Fix phpunit 2023-11-30 00:06:05 +01:00
Laurent Destailleur
3e1d5b1748 Fix for MAIN_RESTRICTHTML_ONLY_VALID_HTML 2023-11-29 23:17:22 +01:00
Laurent Destailleur
d809825c21 Fix phpunit 2023-11-29 22:02:10 +01:00
Laurent Destailleur
0d61ee74c7 Fix phpunit 2023-11-29 20:32:03 +01:00
Laurent Destailleur
43f9210ab4 SEC: Add option MAIN_RESTRICTHTML_ONLY_VALID_HTML_TIDY 2023-11-29 20:19:21 +01:00
Laurent Destailleur
955ecd1c16 Fix params in phpunit 2023-11-28 15:35:31 +01:00
Laurent Destailleur
1d589fd74e Fix warnings 2023-11-27 13:26:44 +01:00
Laurent Destailleur
4ecab54c28 Fix phpunit 2023-11-14 12:02:09 +01:00
Laurent Destailleur
659cdfa975 Add a test with a german char 2023-11-06 20:35:41 +01:00
Laurent Destailleur
604b01e803 Show error message 2023-11-06 00:56:44 +01:00
Alexandre Janniaux
c3b3840f08
QUAL Refactor merging companies and fix #26272 with Reception objects (#26320)
* societe: add missing model_pdf field

The field is used by the class but wasn't declared.

* societe: expose Societe::mergeCompany

The code is directly copied from societe/card.php with as less changes
as possible.

The original code came from deb91ad7c1.

* societe: remove fields from property copy

$phone_pro and $fk_project are not existing for societe. This was added
from deb91ad7c1.

* SocieteTest: test the merge functionality

This test is a simple smoke test to check that the mergeCompany() will
work correctly on simple case and actually merge the details of the
company.

More complex deduplication pattern with objects referencing the deleted
Societe object, will be written for each of the different object class
in their respective test file.

* societe: card: use the new mergeCompany function

Since the code is almost the same, there should be no differences in
behaviour right now.

* societe: api_thirdparties: use Societe::mergeCompany()

* societe: fix issue when merging companies

When a Societe object is merged against another, its related objects are
supposed to reference the new Societe object so that the databse doesn't
raise foreign key errors.

The list references the objects that need to be transformed, and
Reception objects weren't part of this list.

Fix #26272

* ReceptionTest: check company merge hook

Before a Societe object is destroyed from the database, every object
referencing the FK should be destroyed or should reference another
object.

In the case of two companies being merged, the case arises and Reception
objects need to be moved to the new company. This commit brings a
non-regression test for this case.

Refs #26272

* Update societe.class.php

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2023-10-26 16:30:38 +02:00
Alexandre Janniaux
9fe9eee18a
FIX|Fix some minor issues on Reception and add a new test for it (#26310)
* reception: reOpen: mirror $this->statut in $this->status

$this->statut is the deprecated variable, $this->status should also get
the correct value.

* reception: setDraft: mirror $this->statut in $this->status

$this->statut is the deprecated variable, $this->status should also get
the correct value.

* reception: add missing $weight field

Fix warning:

    Undefined property: Reception::$weight

* societe: add country_id field

* reception: use getDolGlobalInt when suitable

Using empty() implies that the value actually exists on the stdClass at
$conf->global, but it's not always the case. getDolGlobalInt will handle
this smoothly by checking first, which solves warnings like those:

    Undefined property: stdClass::$STOCK_CALCULATE_ON_RECEPTION

* ReceptionTest: add new test

The test checks the usual workflow of the Reception class, with, on the
one hand, the common CRUD operations:
 - create
 - fetch
 - update
 - delete

And on the other hand, the status handling for Reception:
 - valid: STATUS_DRAFT -> STATUS_VALID
 - setClosed: STATUS_VALID -> STATUS_CLOSED
 - reOpen: STATUS_CLOSED -> STATUS_VALID
 - setDraft: STATUS_VALID -> STATUS_DRAFT

The stocks lines are not tested yet, and the error cases, like any other
transition not described above, are not tested either. The permissions
for some of the operations are hardcoded for the test and there is no
failure check when the permission is not set yet.
2023-10-21 16:28:30 +02:00
Laurent Destailleur
7a694d3485 Fix phpunit 2023-10-20 03:59:02 +02:00
Laurent Destailleur
9a8db612b3 Fix phpunit error 2023-10-17 15:48:38 +02:00
Laurent Destailleur
c1b74f9338 Fix phpunit regression 2023-09-29 17:04:11 +02:00
Laurent Destailleur
72e17fe60e Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into
develop
2023-09-29 16:53:54 +02:00
Laurent Destailleur
b21a24aa97 Add AssetModel in AllTest 2023-09-26 20:52:49 +02:00
Hystepik
d157e8f660 New asset model phpunit test 2023-09-25 14:54:32 +02:00
Laurent Destailleur
557fe235d1 Fix warnings 2023-09-10 19:41:14 +02:00
Laurent Destailleur
b2ae9ea888 Fix warnings 2023-09-10 15:23:32 +02:00
Laurent Destailleur
ad9e11542c Fix phpunit warning 2023-09-10 15:16:46 +02:00
Laurent Destailleur
bc71380410 Fix sql errors 2023-09-09 21:16:58 +02:00
Laurent Destailleur
fb5f4c1dc2 NEW Add phpunit for REST API of contacts 2023-09-08 21:12:59 +02:00
Laurent Destailleur
33288ee66a Try to fix phpunit on dol_eval 2023-09-08 19:10:44 +02:00
Laurent Destailleur
6dbd7e35f2 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2023-09-08 14:17:17 +02:00
Laurent Destailleur
c379420d86 Fix regression in dol_eval 2023-09-08 14:12:12 +02:00
Laurent Destailleur
d91ce60ab4
Merge pull request #25819 from frederic34/setascustomer
deprecate set_as_client
2023-09-08 11:23:06 +02:00
Laurent Destailleur
e9787451a8 Disallow more use of parenthesis into dol_eval 2023-09-08 05:51:06 +02:00
Frédéric FRANCE
26dff90658 deprecate set_as_client 2023-09-06 14:38:35 +02:00
Laurent Destailleur
150de687bf Merge branch '18.0' of git@github.com:Dolibarr/dolibarr.git into develop 2023-09-05 20:13:38 +02:00
Laurent Destailleur
0ed6a63fb0 FIX #CVE-2023-4197 2023-09-05 00:49:01 +02:00
Laurent Destailleur
552a079379 Merge branch '18.0' of git@github.com:Dolibarr/dolibarr.git into develop 2023-08-27 16:05:46 +02:00
Laurent Destailleur
45d323a6f8 Merge branch '17.0' of git@github.com:Dolibarr/dolibarr.git into 18.0 2023-08-27 16:02:57 +02:00
Laurent Destailleur
4302a6bc04 Fix empty on getDolGlobal 2023-08-27 15:55:44 +02:00
Laurent Destailleur
c0e2d55549 Fix warnings 2023-08-26 00:43:51 +02:00
Laurent Destailleur
1293f48018 Fix phpunit 2023-08-26 00:05:58 +02:00
Laurent Destailleur
a0455c72a3 Test phpunit 2023-08-25 23:44:55 +02:00
Laurent Destailleur
a296751543 Fix phpunit 2023-08-25 22:04:37 +02:00
Laurent Destailleur
4c2645147c Fix phpunit API warnings 2023-08-25 15:52:31 +02:00
Laurent Destailleur
7e062f9391 Fix phpunit API warnings 2023-08-25 15:49:09 +02:00
Laurent Destailleur
c6a30bcf9e Fix phpunit 2023-08-25 15:45:12 +02:00
Laurent Destailleur
256fe9ecf8 Add more REST phpunit tests 2023-08-25 14:48:41 +02:00
Laurent Destailleur
bcd3401e47 Fix phpunit 2023-08-25 13:58:27 +02:00
oussamanhairech
572192a01f #14295 Rest API Contact test 2023-08-24 18:21:06 +02:00
Laurent Destailleur
e1dbeb58ea Merge branch '18.0' of git@github.com:Dolibarr/dolibarr.git into develop 2023-08-13 16:35:08 +02:00
Laurent Destailleur
310ef11dac FIX WAF 2023-08-13 15:45:45 +02:00
Laurent Destailleur
b3f8795414 Fix phpunit 2023-08-12 01:08:04 +02:00
Laurent Destailleur
c9f1ee08dc Fix phpunit 2023-08-11 20:15:01 +02:00
Laurent Destailleur
df4761e42a Fix numbering of shipments 2023-08-11 12:14:28 +02:00
Laurent Destailleur
1aa535e994 Fix regressions 2023-08-06 01:41:53 +02:00
Laurent Destailleur
216ab4c190 Fix phpunit 2023-08-04 17:26:38 +02:00
Laurent Destailleur
b6a061f795 Debug v18 - warnings and pgsql migration 2023-06-26 23:02:17 +02:00
Laurent Destailleur
6cb360449c Try to fix pgsql migration 2023-06-26 19:31:31 +02:00
Laurent Destailleur
243f5681dd Fix phpunit 2023-06-22 22:18:41 +02:00
Laurent Destailleur
42f963ad48 Fix phpunit 2023-06-22 22:12:55 +02:00
Laurent Destailleur
c07de0f300 Fix phpunit 2023-06-22 21:38:12 +02:00
Laurent Destailleur
833c798bf5 Test CI 2023-06-19 20:23:09 +02:00
Laurent Destailleur
74fa309b80 Fix CI 2023-06-19 20:07:46 +02:00
Laurent Destailleur
2a4cdad5cf Fix phpunit 2023-06-19 20:05:54 +02:00
Laurent Destailleur
927768ea98 Fix phpunit 2023-06-19 19:34:57 +02:00
Laurent Destailleur
415ce5c8fc Fix phpunit 2023-06-19 18:55:49 +02:00
Laurent Destailleur
1c582aeb5f Merge branch '17.0' of git@github.com:Dolibarr/dolibarr.git into develop 2023-06-19 03:22:40 +02:00
Laurent Destailleur
7b84a6f49a FIX #24991 2023-06-19 03:17:24 +02:00
Laurent Destailleur
80cf360fd9 Add pdf with js 2023-06-04 19:46:44 +02:00
Laurent Destailleur
8d7e53a98c Clean code 2023-06-03 13:56:06 +02:00
Laurent Destailleur
bfda645b9a Clean log files 2023-05-26 14:51:51 +02:00
Laurent Destailleur
f76405d01a Remove test output verbosity 2023-05-25 17:55:11 +02:00
Laurent Destailleur
5124f8f84d Debug v18 2023-05-25 15:14:52 +02:00
Laurent Destailleur
676d89d36a
Merge pull request #24621 from alexandre-janniaux/php-unit-assert-contains/1
ContactTest: assertStringContainsString instead of assertContains
2023-05-20 12:02:43 +02:00
Laurent Destailleur
5dae5b57a0 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into
develop
2023-05-17 12:27:46 +02:00
Laurent Destailleur
9635fa35d8
Merge pull request #24706 from alexandre-janniaux/constructor-bump-phpunit/1
FIX test/phpunit: add $name to __construct()
2023-05-16 20:58:15 +02:00
Laurent Destailleur
6f9eb93f36 Fix php 8 warning 2023-05-12 20:22:00 +02:00
Laurent Destailleur
af2dddeb48 Fix php 8 warning 2023-05-12 19:28:44 +02:00
Alexandre Janniaux
df0adc391d FIX test/phpunit: add $name to __construct()
Fix the following errors when running recent phpunit:

    Message:  Too few arguments to function PHPUnit\Framework\TestCase::__construct(), 0 passed in
    dolibarr/test/phpunit/DateLibTzFranceTest.php on line 63 and exactly
    1 expected Location: phar:///usr/share/webapps/bin/phpunit.phar/phpunit/Framework/TestCase.php:265

Indeed, the old constructor had an optional $name='' parameter but the
new constructor reads like this:

    public function __construct(string $name)

and the parameter is now mandatory.
2023-05-08 16:29:31 +02:00
Laurent Destailleur
a46ed98c81
Merge pull request #24670 from alexandre-janniaux/test-fixups/1
FIX phpunit: fix tests erroring out on phpunit 10.0.7
2023-05-05 01:50:38 +02:00
Alexandre Janniaux
52710d0d5e phpunit: ODFTest: fix errors on ODFTest
PHP Fatal error:  Declaration of ODFTest::setUpBeforeClass() must be
    compatible with PHPUnit\Framework\TestCase::setUpBeforeClass(): void
    in dolibarr/test/phpunit/ODFTest.php on line 82
2023-05-03 09:05:15 +02:00
Alexandre Janniaux
06aaa974b5 EvalMathTest: fix class name
The test class was copied from InventoryTest and phpunit is now
complaining that it cannot find the class in the test.

    1) Class EvalMathTest cannot be found in phpunit/EvalMathTest.php
    (phpunit 10.0.7)
2023-05-03 09:05:15 +02:00
Alexandre Janniaux
cf8e03c069 Fix phpunit/FilesLibTest: remove syslog property
Commit cfff62c2fa removed $conf->syslog
usage, but this file was left of as-is.

Fix a warning on the test:

    Files Lib
     ✔ Dol basename
     ✔ Dol count nb of line
     ✔ Dol is file dir
     ✔ Dol other
     ✔ Dol mime type
     ✔ Dol delete dir
     ✔ Dol copy move delete
     ✘ Dol compress un compress
       ┐
       ├ Error: Attempt to assign property "enabled" on null
       │
       │ /home/alexandre/workspace/dolibarr/test/phpunit/FilesLibTest.php:421
       ┴
     ✔ Dol check secure access document
     ✔ Dol dir move
2023-05-02 10:06:05 +02:00
Laurent Destailleur
c630253fda Merge branch '17.0' of git@github.com:Dolibarr/dolibarr.git into develop 2023-05-02 05:28:32 +02:00
Laurent Destailleur
7b1f83c6c9 Clean sql file 2023-05-02 05:18:39 +02:00
Laurent Destailleur
cd9c7ca3d7 Fix warning 2023-05-01 12:43:28 +02:00
Laurent Destailleur
80fc8ab6ec More complete test for escape pgsql 2023-04-27 22:33:22 +02:00
Alexandre Janniaux
df817dba7d ContactTest: assertStringContainsString instead of assertContains
PHPUnit >= 9 adds assertStringContainsString, which ought to replace
assertContains, and PHPUnit >= 9 removed[^1] support for calling
assertContains on strings.

[^1]: https://github.com/sebastianbergmann/phpunit/issues/3426
2023-04-27 12:39:26 +02:00
Laurent Destailleur
712dd1689b
Merge pull request #24596 from alexandre-janniaux/phpunit-changes/1
phpunit: use $db instead of $this->savdb
2023-04-26 22:02:25 +02:00
Laurent Destailleur
86456e299c NEW add option keepspace into dol_string_nospecialchar() 2023-04-26 18:25:56 +02:00
Alexandre Janniaux
b6235c29d0 phpunit: use $db instead of $this->savdb
The global variables are stored in $this, and in particular $db is used
through this mean. But $this->savdb is supposed to be the immutable
global state that is stored at the test class instantiation and restored
at the beginning of each test.

For $this->savdb, I don't think any consequences are created by this,
since the object is saved by each test anyway and the $db object is
mostly a query object within a transaction, but future change could use
this to inject a different stateful $db object to trace some behaviour
in the test for instance, so make sure the correct one is used.
2023-04-26 16:44:07 +02:00
Laurent Destailleur
e51d0beefa Merge commit '13aeb4542924b7112c56ca7e0fe30b5174eb9adb' into develop 2023-04-25 15:43:18 +02:00
Laurent Destailleur
13aeb45429 Fix missing par $check 2023-04-25 15:31:14 +02:00
Laurent Destailleur
4fe8321ea3
Merge pull request #24532 from frederic34/patch-2
Fix phpunit
2023-04-18 17:12:24 +02:00
Laurent Destailleur
6ab05df108
Merge pull request #23509 from FliyFly/feature#21426
NEW Add possibility to choose format #21426
2023-04-18 16:57:33 +02:00
Frédéric FRANCE
df909b515f
Fix phpunit 2023-04-17 13:42:05 +02:00
Laurent Destailleur
4e3dcbab29 Fix phpunit 2023-04-15 12:13:24 +02:00
Laurent Destailleur
726657fd4c Merge branch '17.0' of git@github.com:Dolibarr/dolibarr.git into develop 2023-04-15 04:21:16 +02:00
Laurent Destailleur
443f5190db Fix phpunit 2023-04-15 04:19:53 +02:00
Laurent Destailleur
b55271dedb Fix warning 2023-04-15 03:27:35 +02:00
Laurent Destailleur
f02ff3f774 Merge branch '17.0' of git@github.com:Dolibarr/dolibarr.git into develop 2023-04-15 02:29:01 +02:00
Laurent Destailleur
f425bd4654 Fix sqlforlike when searching with like and _ string 2023-04-15 01:24:50 +02:00
Laurent Destailleur
a8cd44cafc Clean code 2023-04-11 22:17:15 +02:00
Laurent Destailleur
45d79232d2 Clean code 2023-04-11 19:36:19 +02:00
Laurent Destailleur
9ffc86a872 Remove warning 8.2 2023-04-11 18:49:15 +02:00
Laurent Destailleur
3b8406a83e NEW dolExplodeIntoArray can accept regex 2023-04-07 16:21:51 +02:00
Laurent Destailleur
4a0f4f15b9 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into
develop
2023-03-28 20:30:32 +02:00
Laurent Destailleur
77910aad8c Fix phpunit 2023-03-28 20:28:57 +02:00
Laurent Destailleur
a67351ac43 Merge branch '17.0' of git@github.com:Dolibarr/dolibarr.git into develop 2023-03-28 20:24:40 +02:00
Laurent Destailleur
782c7ef55c Fix php 8 2023-03-28 19:46:10 +02:00
Laurent Destailleur
25d57b1227 Merge branch '16.0' of git@github.com:Dolibarr/dolibarr.git into 17.0 2023-03-28 17:15:36 +02:00
Frédéric FRANCE
2c75dd8026
Update AllTests.php 2023-03-28 12:43:45 +02:00
Frédéric FRANCE
fa3e78054d
Rename WebsiteTest.class.php to WebsiteTest.php 2023-03-28 12:10:00 +02:00
Laurent Destailleur
ec7627572f Merge branch '17.0' of git@github.com:Dolibarr/dolibarr.git into develop 2023-03-27 18:32:25 +02:00
Laurent Destailleur
af99141f7a Merge branch '17.0' of git@github.com:Dolibarr/dolibarr.git into 17.0 2023-03-27 18:09:06 +02:00
Laurent Destailleur
5ba48f9746 Merge branch '16.0' of git@github.com:Dolibarr/dolibarr.git into 17.0 2023-03-27 18:08:51 +02:00
Laurent Destailleur
e0cd351b3e Fix sanitize website module 2023-03-27 17:37:09 +02:00
Laurent Destailleur
a0098c39ab
Merge pull request #24162 from atm-lena/17.0_FIX_textishtmlfunction
FIX dol_textishtml() function
2023-03-27 08:29:33 +02:00
Laurent Destailleur
d2649ef5e7 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2023-03-26 15:31:06 +02:00
Laurent Destailleur
188a68a6cf Fix phpunit 2023-03-26 15:30:51 +02:00
tnegre
e1c56650eb ODF line generation : compat php < 7.4 2023-03-24 12:11:39 +01:00
tnegre
06c64eea98 Update copyright 2023-03-23 11:10:47 +01:00
tnegre
a50e74a86a Merge remote-tracking branch 'tnegre/14.0_fix_odt_generation' into develop_fix_odt_generation 2023-03-23 10:46:36 +01:00
Laurent Destailleur
a618bed16d Add phpunit for DDLUpdateField 2023-03-22 15:22:23 +01:00
atm-lena
0ddf48869a Add unit test fol_textishtml() 2023-03-21 14:03:55 +01:00
Laurent Destailleur
ec45cb23ac Merge branch '17.0' of git@github.com:Dolibarr/dolibarr.git into develop 2023-03-20 15:53:06 +01:00
Laurent Destailleur
1151a8e65e Fix more robust phpunit test 2023-03-20 12:05:44 +01:00
Laurent Destailleur
0c49dc2b46 Fix warning 2023-03-20 02:26:49 +01:00
Laurent Destailleur
8ca17bdbc0 Fix warning 2023-03-20 01:54:29 +01:00
Laurent Destailleur
df001fc01a Try to fix phpunit 2023-03-19 20:29:34 +01:00
Laurent Destailleur
51bf3f0686 Merge branch '16.0' of git@github.com:Dolibarr/dolibarr.git into 17.0 2023-03-19 19:14:44 +01:00
Laurent Destailleur
9a192e443e Merge branch '15.0' of git@github.com:Dolibarr/dolibarr.git into 16.0 2023-03-19 19:05:47 +01:00
Laurent Destailleur
88353ee5ba Fix tests 2023-03-19 17:38:22 +01:00
Laurent Destailleur
8d2a3a863d Add phpunit for get_localtax_by_third 2023-03-18 10:48:09 +01:00
Laurent Destailleur
b7c242c210 Merge branch '17.0' of git@github.com:Dolibarr/dolibarr.git into develop 2023-03-17 20:54:18 +01:00
Laurent Destailleur
3961fa7a97 Fix test on $resql 2023-03-17 18:05:45 +01:00
Laurent Destailleur
dc1ba8f447 Fix phpunit 2023-03-13 13:19:24 +01:00
Laurent Destailleur
04c6cb22a1 Fix universal filter for != 2023-03-13 10:22:40 +01:00
Laurent Destailleur
2ef0f08c97 PHPunit 2023-03-13 10:20:03 +01:00
Laurent Destailleur
ed5c890769 Merge branch '17.0' of git@github.com:Dolibarr/dolibarr.git into develop 2023-02-25 20:12:48 +01:00
Laurent Destailleur
cbb6ca071a Fix #yogosha15157 2023-02-25 19:51:05 +01:00
Laurent Destailleur
e489e10b65 Merge branch '17.0' of git@github.com:Dolibarr/dolibarr.git into develop 2023-02-17 16:05:12 +01:00
Laurent Destailleur
a18b5a31e5 Fix phpunit 2023-02-17 16:00:57 +01:00
FLIO
c000eeeecf feature (#21426) edit ExportTest for resolve error and add test for utf8 2023-02-16 01:00:39 +01:00
Laurent Destailleur
81ef87cf6d FIX #huntr5affff95-9a37-4004-bab2-a834b3b61ff7 2023-02-11 15:39:16 +01:00
tnegre
565e9f0c3d Stickler fix 2023-02-03 15:33:50 +01:00
tnegre
32520599e4 ODT generation : tests cases for PHP < 7.4 2023-02-03 15:16:17 +01:00
Frédéric FRANCE
140a3b462d add ajax tooltip on usergroup 2023-02-03 09:29:02 +01:00
Laurent Destailleur
902351cbaa Fix phpunit 2023-01-16 15:45:17 +01:00
Laurent Destailleur
65a2093cd1 Fix regression 2022-12-31 16:50:30 +01:00
Laurent Destailleur
8774f4f092 Fix warning qodana 2022-12-31 13:44:11 +01:00
Laurent Destailleur
9d54a5a583 Fix phpunit 2022-12-28 17:50:44 +01:00
Laurent Destailleur
5a26eadfea Merge branch '17.0' of git@github.com:Dolibarr/dolibarr.git into develop 2022-12-26 23:59:19 +01:00
Laurent Destailleur
ed0e96f2b6 Fix phpunit 2022-12-26 17:05:14 +01:00
Laurent Destailleur
527cd1f922 Fix phpunit 2022-12-26 15:25:36 +01:00
Laurent Destailleur
1e706fd090 Merge branch '17.0' of git@github.com:Dolibarr/dolibarr.git into develop 2022-12-26 12:17:18 +01:00
Laurent Destailleur
facb003627 Fix phpunit 2022-12-24 15:37:07 +01:00
Laurent Destailleur
685a7dbd59 Clean code. Add a phpunit test to avoid duplicate jquery. 2022-12-24 15:06:32 +01:00
Laurent Destailleur
357b69a90b Merge branch '17.0' of git@github.com:Dolibarr/dolibarr.git into develop 2022-12-22 01:11:03 +01:00
Laurent Destailleur
d5438f981d Merge branch '16.0' of git@github.com:Dolibarr/dolibarr.git into 17.0 2022-12-22 01:08:12 +01:00
Laurent Destailleur
c7ae67a9be Merge branch '15.0' of git@github.com:Dolibarr/dolibarr.git into 16.0 2022-12-22 01:04:56 +01:00
Laurent Destailleur
599aa6009a Try to solve phpunit regression 2022-12-22 00:37:33 +01:00
Laurent Destailleur
49e8b53fab Try fix for phpunit regression 2022-12-22 00:33:03 +01:00
Laurent Destailleur
d29fde6603 Add log to test phpunit pb 2022-12-22 00:02:22 +01:00
Laurent Destailleur
a0f282d100 Try a fix of phpunit regression 2022-12-21 23:34:32 +01:00
Laurent Destailleur
3ff9b4ba95 Remove useless test 2022-12-20 11:19:17 +01:00
hystepik
fa6ceba5cb Fix : Target class creation 2022-12-14 16:27:24 +01:00
hystepik
d676dab136 FIx : KnowledgeRecordTest 2022-12-06 12:23:32 +01:00
Laurent Destailleur
57371302be FIx #yogosha13798 2022-12-05 15:05:40 +01:00
Laurent Destailleur
5cfe40a4bc FIX Can use the WAF of HTML content (dol_htmlwithnojs) for output too 2022-11-28 18:42:59 +01:00
Laurent Destailleur
ba4e5ef245 Enhance phpunit 2022-11-28 16:54:34 +01:00
Thomas Negre
e10ba35387 Add test case to lock/explain behavior on <h3> heading tags. 2022-11-23 12:01:21 +01:00
Laurent Destailleur
8a70e0de72 Merge branch '16.0' of git@github.com:Dolibarr/dolibarr.git into develop 2022-11-21 04:03:20 +01:00
Laurent Destailleur
7c1eac9774 Fix sqli ->escape after ->escapeforlike 2022-11-21 03:58:22 +01:00
Thomas Negre
00c62bf150 Consistent management of carriage returns 2022-11-16 14:08:41 +01:00
Thomas Negre
b0548213b9 copyright and doc 2022-11-16 11:44:46 +01:00
Thomas Negre
a0ef602297 Fix ODT generation : htmlspecialchars() was run too many times on some strings. 2022-11-16 11:25:08 +01:00
Laurent Destailleur
43e153715f Remove non used code for module webhook 2022-11-04 20:49:25 +01:00
Laurent Destailleur
e0a4070da3 Try to fix phpunit 2022-11-01 14:00:08 +01:00
Laurent Destailleur
fc64bcf56f Merge branch '16.0' of git@github.com:Dolibarr/dolibarr.git into develop 2022-10-21 13:22:27 +02:00
Laurent Destailleur
0bbef75af2 Merge branch '16.0' of git@github.com:Dolibarr/dolibarr.git into develop 2022-10-19 18:10:17 +02:00
Laurent Destailleur
01abfe538f Doc 2022-10-19 17:54:20 +02:00
Laurent Destailleur
92d556caf2 Fix phpunit 2022-10-19 17:53:06 +02:00
Laurent Destailleur
b6dbdd6757 Work on php 8.1 compatibility and adodb removal 2022-10-10 14:23:02 +02:00
Laurent Destailleur
d9f1435cea Fix phpunits 2022-10-10 12:05:03 +02:00
Laurent Destailleur
de94451a88 Add more phpunit to avoid empty and hasRight 2022-09-25 14:56:13 +02:00
Laurent Destailleur
6c17c2f044 Test travis php7.1 2022-09-21 17:55:04 +02:00
Laurent Destailleur
13885f764e Test phpunit fix 2022-09-21 17:29:37 +02:00
Laurent Destailleur
8f1ea59bc6 Fix for travis and PHP 8.1 with PGSQL 2022-09-20 21:13:51 +02:00
Laurent Destailleur
38676b6c04 Fix phpunit 2022-09-10 00:54:16 +02:00
Laurent Destailleur
cf887dba16
Merge pull request #22075 from grandoc/new_branch_04_09_2022
update code
2022-09-09 18:03:43 +02:00
Frédéric France
835441d437 remove blank line 2022-09-07 20:14:49 +02:00
Philippe GRAND
d5df85fd3e update code 2022-09-04 13:34:19 +02:00
Laurent Destailleur
cfd3eeb245 NEW All ajax pages have now a top_httphead() 2022-09-03 20:08:13 +02:00
Frédéric France
8e66b7207e replace ! empty by !empty 2022-08-31 22:14:20 +02:00
Frédéric France
00da52ef8c fix php8 warnings 2022-08-31 22:12:25 +02:00
Laurent Destailleur
63a1daa091 Clean code 2022-08-26 19:27:38 +02:00
Laurent Destailleur
72c010622b FIX empty with hasRight and add phpunit to avoid this in future 2022-08-14 16:38:20 +02:00
Laurent Destailleur
c4a24197a7 Add phpunit for MAIN_SECURITY_MAX_IMG_IN_HTML_CONTENT 2022-08-10 23:03:42 +02:00
Laurent Destailleur
9b58b61d60 Enhance MAIN_RESTRICTHTML_REMOVE_ALSO_BAD_ATTRIBUTES #yogosha12008 2022-08-10 20:19:43 +02:00
Laurent Destailleur
edb61faf25 Fix lang 2022-07-29 18:16:29 +02:00
Laurent Destailleur
77389b3855 Fix trans 2022-07-29 17:35:39 +02:00
Laurent Destailleur
138e93402d Fix language font for PDF 2022-07-26 14:15:38 +02:00
Laurent Destailleur
245580bfa5 FIX Several pb in invoice remind (html detection, no event, transaction) 2022-07-08 14:11:13 +02:00
Laurent Destailleur
e6e4017047 Fix debug for php 8.1 2022-07-03 14:29:59 +02:00
Laurent Destailleur
1b58b5e21f Add phpunit test 2022-07-03 12:29:09 +02:00
Laurent Destailleur
046fa77a5a Merge branch '15.0' of git@github.com:Dolibarr/dolibarr.git into develop
Conflicts:
	htdocs/comm/propal/card.php
2022-06-29 16:46:27 +02:00
Laurent Destailleur
cbaa8b4304 FIX False alert of WAF when there is "set" into some URL action=update. 2022-06-29 16:40:19 +02:00
Laurent Destailleur
4b79d91437 Merge branch '15.0' of git@github.com:Dolibarr/dolibarr.git into develop 2022-06-23 12:35:24 +02:00
Laurent Destailleur
ca6d47aba0
Merge pull request #21247 from Quatadah/dolicloud-qnasdami-scrutinizer-004
BUG FIX: evaluate() doesn't cover the case where $expr is empty
2022-06-17 15:28:50 +02:00
Laurent Destailleur
5f0e419e46
Update EvalMathTest.php 2022-06-17 15:28:36 +02:00
NASDAMI Quatadah
a11732bb0d done 2022-06-15 15:44:40 +02:00
NASDAMI Quatadah
e07a94a051 changing the testUserHasRight 2022-06-15 15:31:23 +02:00
NASDAMI Quatadah
0af9fe275d test userHasRight temporarily commented 2022-06-15 15:25:23 +02:00
NASDAMI Quatadah
5b93c103a3 evaluate function checks if is empty + unit test 2022-06-15 15:18:37 +02:00
Laurent Destailleur
ff26031dc6 phpv8 2022-06-14 17:58:41 +02:00
Frédéric France
3fdbce7a31 use isModEnabled function 2022-06-11 09:46:28 +02:00
Quatadah Nasdami
b63b7b242d
Delete .phpunit.result.cache 2022-06-09 19:32:38 +02:00
NASDAMI Quatadah
ef8b041ac6 resolving phpcs errors 2022-06-09 13:29:02 +02:00
stickler-ci
7b3fe948a0 Fixing style errors. 2022-06-09 11:20:59 +00:00
NASDAMI Quatadah
e729d76833 removing some spaces 2022-06-09 13:19:26 +02:00
NASDAMI Quatadah
ea720e25e5 Fixing bug 20500 2022-06-09 13:17:32 +02:00
NASDAMI Quatadah
7f86c53b3e fixing bug 20500 2022-06-09 13:15:40 +02:00
NASDAMI Quatadah
1dcc701251 Fixing bug 20500 2022-06-09 13:10:46 +02:00
Laurent Destailleur
21e5189e18 Add phpunit for num2Alpha 2022-05-31 18:17:43 +02:00
Lucas Marcouiller
5c757c30be part2 of test 2022-05-22 15:46:04 +02:00
Laurent Destailleur
5f0a34166d NEW Add a protection into PHPunit to avoid to forget a var_dump 2022-05-17 15:10:20 +02:00
Laurent Destailleur
cffec01451 Merge branch '15.0' of git@github.com:Dolibarr/dolibarr.git into develop
Conflicts:
	htdocs/core/lib/functions.lib.php
	test/phpunit/SecurityTest.php
2022-05-09 22:04:36 +02:00
Laurent Destailleur
ef18456724 Fix regression in dol_eval 2022-05-09 21:56:21 +02:00
Laurent Destailleur
822a0a37f3 Fix phpunit 2022-04-28 22:37:21 +02:00
Laurent Destailleur
d143b8bf6e Debug dol_uncompress and add phpunit tests 2022-04-05 17:19:12 +02:00
Laurent Destailleur
ea61e51730 Fix phpunit 2022-04-04 14:00:39 +02:00
Laurent Destailleur
7e34ce7245 Merge branch '15.0' of git@github.com:Dolibarr/dolibarr.git into develop
Conflicts:
	htdocs/main.inc.php
2022-04-02 15:39:15 +02:00
Laurent Destailleur
9c00115abe FIX #yogosha9754 2022-04-02 14:32:53 +02:00
Laurent Destailleur
c2a088c5ff Fix regression in phpunit 2022-03-26 12:34:52 +01:00
Laurent Destailleur
592a277091 FIX ZATCA Encoding 2022-03-19 19:17:22 +01:00
Laurent Destailleur
cb93ab472d FIX ZATCA Encoding 2022-03-19 19:14:12 +01:00
Laurent Destailleur
b339e1a883 Enhance phpunit on sql code testing 2022-03-07 19:37:53 +01:00
Laurent Destailleur
d6852c31b8 Clean code 2022-03-07 19:31:06 +01:00
Laurent Destailleur
8655592aea Fix bad merge 2022-03-03 09:51:12 +01:00
Laurent Destailleur
4f17f45e99 Merge branch '15.0' of git@github.com:Dolibarr/dolibarr.git into develop
Conflicts:
	test/phpunit/SecurityTest.php
2022-03-03 02:17:53 +01:00
Laurent Destailleur
246474b39b Fix phpunit 2022-03-03 02:15:52 +01:00
Laurent Destailleur
0fed4dae13 Merge branch '15.0' of git@github.com:Dolibarr/dolibarr.git into develop
Conflicts:
	htdocs/core/lib/functions.lib.php
2022-03-03 01:59:31 +01:00
Laurent Destailleur
3c3d6ab0da Fix regression. Add unit test to detect it. 2022-03-03 01:17:44 +01:00
Laurent Destailleur
72965fdb2e # WARNING: head commit changed in the meantime
Merge branch '15.0' of git@github.com:Dolibarr/dolibarr.git into develop
2022-03-01 19:13:28 +01:00
Laurent Destailleur
3e1580475c Fix phpunit 2022-03-01 19:05:33 +01:00
Laurent Destailleur
20a3a429ed Merge branch '15.0' of git@github.com:Dolibarr/dolibarr.git into develop 2022-03-01 18:22:39 +01:00
Laurent Destailleur
2e38caa950 phpunit 2022-03-01 18:22:09 +01:00
Laurent Destailleur
12b2a10865 Merge branch '15.0' of git@github.com:Dolibarr/dolibarr.git into develop 2022-03-01 18:15:13 +01:00
Laurent Destailleur
883f13b388 Fix regression verifCond 2022-03-01 18:14:24 +01:00
Laurent Destailleur
358f21f06e Merge branch '15.0' of git@github.com:Dolibarr/dolibarr.git into develop
Conflicts:
	htdocs/core/class/html.formother.class.php
	htdocs/core/customreports.php
2022-03-01 16:48:29 +01:00
Laurent Destailleur
2a48dd349e Fix #hunterb03d4415-d4f9-48c8-9ae2-d3aa248027b5 2022-03-01 16:38:06 +01:00
Laurent Destailleur
a08bbd6acd Fix regression 2022-03-01 00:11:30 +01:00
Laurent Destailleur
9cc79de31b Clean code 2022-03-01 00:02:23 +01:00
Laurent Destailleur
67881a7932
Merge branch 'develop' into 16a12_assets_code 2022-02-28 22:03:26 +01:00
Laurent Destailleur
2f0040e9c1 Fix phpunit 2022-02-23 19:24:17 +01:00
Laurent Destailleur
e96061dd18 Fix phpunit SecurityTest 2022-02-22 23:46:57 +01:00
Alexandre SPANGARO
0d1ee4e19f Fix stickler-ci 2022-02-14 11:51:05 +01:00
Laurent Destailleur
5294a9ae2f
Merge pull request #19949 from hregis/fix_works_to_add_prefix_db_function
Works on replace MAIN_DB_PREFIX by $db->prefix()
2022-02-04 11:09:51 +01:00
Laurent Destailleur
3b8ece6c0b Fix php8 2022-01-31 21:46:35 +01:00
Regis Houssin
5f376685c3 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into fix_works_to_add_prefix_db_function 2022-01-30 11:28:29 +01:00
Laurent Destailleur
ef70777cf1 Merge branch '14.0' of git@github.com:Dolibarr/dolibarr.git into 15.0
Conflicts:
	htdocs/reception/card.php
2022-01-28 15:57:09 +01:00
Regis Houssin
b537e888e9 FIX exclude link.class.php from Check string $db-> inside a class filee 2022-01-27 13:18:40 +01:00
Regis Houssin
b07fff5754 FIX Travis avoid error "you should use $this->db-> inside a class file" 2022-01-27 13:06:43 +01:00
Regis Houssin
f68a40b64a FIX Travis error - add 'db->prefi' 2022-01-27 11:16:26 +01:00
Laurent Destailleur
42f252b636 Add one more test 2022-01-26 12:39:41 +01:00
Laurent Destailleur
00eabded6d Fix phpunit 2022-01-24 12:43:42 +01:00