Commit Graph

1886 Commits

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