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
b55271dedb
Fix warning
2023-04-15 03:27:35 +02:00
Laurent Destailleur
3b8406a83e
NEW dolExplodeIntoArray can accept regex
2023-04-07 16:21:51 +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
a0098c39ab
Merge pull request #24162 from atm-lena/17.0_FIX_textishtmlfunction
...
FIX dol_textishtml() function
2023-03-27 08:29:33 +02: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
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
8d2a3a863d
Add phpunit for get_localtax_by_third
2023-03-18 10:48:09 +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
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
43e153715f
Remove non used code for module webhook
2022-11-04 20:49:25 +01:00
Laurent Destailleur
6c17c2f044
Test travis php7.1
2022-09-21 17:55:04 +02:00
Laurent Destailleur
8f1ea59bc6
Fix for travis and PHP 8.1 with PGSQL
2022-09-20 21:13:51 +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
21e5189e18
Add phpunit for num2Alpha
2022-05-31 18:17:43 +02:00
Laurent Destailleur
e609622f2b
Fix test on verifCond for value 0
2021-11-18 13:17:48 +01:00
Laurent Destailleur
f5a7275077
Merge branch '13.0' of git@github.com:Dolibarr/dolibarr.git into 14.0
...
Conflicts:
htdocs/takepos/index.php
2021-11-11 18:34:04 +01:00
Laurent Destailleur
e22bd5c048
Fix better format address for jp in romaji
2021-09-02 10:39:56 +02:00
Laurent Destailleur
526235d020
Fix substitution of mix html/nohtml
...
Fix send email reminder for past due date of invoices
More PHPUnit test
2021-05-04 13:33:18 +02:00
Laurent Destailleur
5f8b52ffc9
Code comment
2021-03-03 12:05:43 +01:00
Frédéric FRANCE
398048da04
fix tests
2021-02-21 16:10:35 +01:00
Frédéric FRANCE
9ef56b53f2
fix tests
2021-02-21 16:05:59 +01:00
Frédéric FRANCE
5ceb8163de
fix tests
2021-02-21 15:40:03 +01:00
Frédéric FRANCE
6e3a1a1d41
fix tests
2021-02-21 13:32:54 +01:00
Frédéric FRANCE
b1a1cd4be6
code syntax
2021-01-14 15:09:08 +01:00
Laurent Destailleur
7b93c34c0f
Fix phpunits
2020-12-29 03:48:11 +01:00
Laurent Destailleur
10bef6eb03
Merge branch '12.0' of git@github.com:Dolibarr/dolibarr.git into develop
...
Conflicts:
htdocs/filefunc.inc.php
htdocs/opensurvey/class/opensurveysondage.class.php
htdocs/product/class/product.class.php
htdocs/supplier_proposal/card.php
2020-12-04 19:24:29 +01:00
Laurent Destailleur
49db52134b
Fix for negative numbers
2020-12-04 18:19:51 +01:00
Laurent Destailleur
7634212811
Merge branch '12.0' of git@github.com:Dolibarr/dolibarr.git into develop
...
Conflicts:
htdocs/admin/system/phpinfo.php
htdocs/commande/stats/index.php
htdocs/compta/facture/stats/index.php
2020-11-29 21:35:03 +01:00
Laurent Destailleur
d3a2aa664f
FIX #15572
2020-11-29 20:27:40 +01:00
Laurent Destailleur
574919de52
Merge branch '12.0' of git@github.com:Dolibarr/dolibarr.git into develop
...
Conflicts:
.travis.yml
htdocs/accountancy/bookkeeping/balance.php
htdocs/adherents/class/subscription.class.php
htdocs/compta/bank/categ.php
htdocs/compta/facture/class/facture.class.php
htdocs/core/boxes/box_task.php
htdocs/core/class/commondocgenerator.class.php
htdocs/core/class/interfaces.class.php
htdocs/core/lib/project.lib.php
htdocs/core/modules/modCategorie.class.php
htdocs/expensereport/class/expensereport.class.php
htdocs/fichinter/class/fichinterrec.class.php
htdocs/fourn/class/fournisseur.commande.class.php
htdocs/fourn/class/fournisseur.facture.class.php
htdocs/install/repair.php
htdocs/main.inc.php
htdocs/product/price.php
htdocs/projet/tasks/time.php
htdocs/reception/card.php
2020-11-27 15:45:12 +01:00
Laurent Destailleur
ac3c129735
Clean code
2020-11-27 14:24:15 +01:00
Laurent Destailleur
81566289cd
Merge branch '12.0' of git@github.com:Dolibarr/dolibarr.git into develop
...
Conflicts:
htdocs/comm/propal/class/propal.class.php
htdocs/commande/class/commande.class.php
2020-11-24 11:07:35 +01:00
Laurent Destailleur
53208e620e
Use of . as thousand separator. Can use it for decimal if not 3 digits.
2020-11-24 10:56:05 +01:00
Laurent Destailleur
1e70790cd6
Merge branch '12.0' of git@github.com:Dolibarr/dolibarr.git into develop
...
Conflicts:
htdocs/product/price.php
2020-11-23 19:55:13 +01:00
Laurent Destailleur
c5278197fb
More phpunit test for price2num
2020-11-23 19:45:11 +01:00
Laurent Destailleur
e8ea7125e5
Removed the FIXME. The dol_getdate can now use a timezone.
2020-10-14 17:11:22 +02:00
Laurent Destailleur
5744b1e0a3
Fix #yogosha4512
2020-09-17 21:34:31 +02:00
Laurent Destailleur
4d6a45d491
Major doxygen fix
2020-05-03 22:48:35 +02:00
Laurent Destailleur
05e08b3596
FIX Filenames must not contains non ascii char or we will get non ascii
...
char into the SMTP header.
FIX Do not encode subject if it is full ascii (not required)
2020-02-06 12:58:02 +01:00
Laurent Destailleur
330cca994e
Merge branch '10.0' of git@github.com:Dolibarr/dolibarr.git into 11.0
2019-12-23 15:49:00 +01:00
Laurent Destailleur
3250b13f4a
FIX dol_string_nohtmltag when there is html with windows EOL "<br>\r\n"
2019-12-23 15:45:08 +01:00