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
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