2
0
forked from Wavyzz/dolibarr
Commit Graph

1525 Commits

Author SHA1 Message Date
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