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
4e3dcbab29
Fix phpunit
2023-04-15 12:13:24 +02:00
Laurent Destailleur
b55271dedb
Fix warning
2023-04-15 03:27:35 +02:00
Laurent Destailleur
6c17c2f044
Test travis php7.1
2022-09-21 17:55:04 +02:00
Laurent Destailleur
ff26031dc6
phpv8
2022-06-14 17:58:41 +02:00
Laurent Destailleur
4da5aeedf4
Fix bad test
2021-05-12 08:42:33 +02:00
Frédéric FRANCE
148bbb3997
clean deprecated modelpdf to model_pdf
2021-02-08 18:30:35 +01:00
Frédéric FRANCE
b1a1cd4be6
code syntax
2021-01-14 15:09:08 +01:00
Laurent Destailleur
4d6a45d491
Major doxygen fix
2020-05-03 22:48:35 +02:00
Alexandre SPANGARO
02dbc11f98
Move Gnu.org to https
2019-09-23 21:55:30 +02:00
Laurent Destailleur
3af4ad7fc3
Compatibility with phpunit v6
2019-07-05 21:28:27 +02:00
Frédéric FRANCE
42a1387218
wip
2019-02-25 00:56:48 +01:00
Frédéric FRANCE
970392adb8
Merge remote-tracking branch 'upstream/develop' into psr2squizwhite
2019-02-03 22:41:57 +01:00
Frédéric FRANCE
80a12fcd1c
psr2 Squiz.WhiteSpace.ScopeClosingBrace.Indent
2019-02-03 14:29:45 +01:00
Frédéric FRANCE
24b073771e
wip
2019-01-27 13:07:22 +01:00
Regis Houssin
569d59d251
FIX change my deprecated email
2018-10-27 14:43:12 +02:00
Laurent Destailleur
a7dfc88b59
Merge branch '6.0' of git@github.com:Dolibarr/dolibarr.git into 7.0
...
Conflicts:
test/phpunit/CoreTest.php
2018-09-02 15:21:21 +02:00
Laurent Destailleur
a69c3caf2c
Prepare compatibility with phpunit 6.1
2018-09-02 14:10:06 +02:00
Laurent Destailleur
8e4cb2ea79
Update doc/test
2017-10-18 12:09:11 +02:00
Laurent Destailleur
22921ad26b
Fix phpunit
2015-04-19 04:43:28 +02:00
Laurent Destailleur
72845b21c7
Add log
2015-04-19 04:01:31 +02:00
Laurent Destailleur
6db76830fd
Fix load module by test
2015-04-19 03:36:27 +02:00
Laurent Destailleur
9f5ba746a1
Update phpunit tests
2015-04-04 00:51:00 +02:00
frederic34
73fda2cb86
WIP PSR2
2015-01-08 18:36:03 +01:00
Regis Houssin
f1f4fc18e9
Fix: use "doc" instead "pdf" dir and uniformize code
2014-09-29 11:08:50 +02:00
Marcos García de La Fuente
9ae7486555
Removed deprecated usage of supplier_order_pdf_create and supplier_invoice_pdf_create
2014-09-16 21:42:07 +02:00
Marcos García de La Fuente
3561c8e6f3
Removed deprecated usage of propale_pdf_create
2014-09-16 20:57:17 +02:00
Marcos García de La Fuente
9dbf054026
Removed deprecated usage of project_pdf_create
2014-09-16 20:53:43 +02:00
Marcos García de La Fuente
4b3191b64e
Removed deprecated usage of facture_pdf_create
2014-09-16 20:49:05 +02:00
Marcos García de La Fuente
610dc8cd0c
Removed deprecated usage of expedition_pdf_create
2014-09-16 20:38:28 +02:00
Marcos García de La Fuente
c195c6fd10
Removed deprecated usage of commande_pdf_create
2014-09-16 20:35:31 +02:00
Raphaël Doursenaud
c48c3a9d91
Qual: remove PHP closing tag (again)
...
These were reintroduced by careless merge
2014-05-26 13:51:25 +02:00
Laurent Destailleur
19fb5e5085
Try to fix phpunit error with new version.
2014-05-01 19:57:53 +02:00
Laurent Destailleur
dad617c506
PHPUnit tests
2013-09-08 23:38:55 +02:00
Laurent Destailleur
67052933ca
Fix: PHPUnit
2013-04-14 23:42:24 +02:00
Laurent Destailleur
8d206fdfb0
Prepare move to other licence. For the moment all answers for licence
...
upgrade were not yet received. So we prepare for GPL by uniformizing
licence text keys to GPL-3+. Will move later to AGPL if all answers are
positive.
2013-01-16 15:36:08 +01:00
Regis Houssin
b838895db9
Fix: change for a neutral email
2012-12-30 15:13:49 +01:00
Grand Philippe
8b5262cd82
fix
2012-12-10 11:28:39 +01:00
Grand Philippe
a91a96e72e
merge
2012-12-10 10:02:13 +01:00
Laurent Destailleur
88ffda4bfb
Qual: Enhance quality controls for 3.3
2012-12-10 02:00:21 +01:00
Laurent Destailleur
d1cfe2ec54
Fix: Bug when metafile is on
2012-09-19 13:30:59 +02:00
Regis Houssin
8787a703a0
Fix: remove old tests
2012-09-06 08:06:48 +02:00
Regis Houssin
3e5e301725
Fix: remove deleted files from phpunit test
2012-09-05 07:48:17 +02:00
Marcos García
5a73c32f46
Migrated ClassName to __construct() function
...
Changed $DB to $db
lower-cased "Class"
2012-07-30 17:17:33 +02:00
Laurent Destailleur
b40c0a5d86
Fix: Check conditions to run test
2012-07-29 19:40:20 +02:00
Regis Houssin
5d2da2c884
Fix: uniformize code
2012-03-22 08:33:44 +01:00
Laurent Destailleur
ab6c1a5160
Qual: Add new PHPUnit test and fix bugs the test show me
2012-03-21 12:33:51 +01:00
Laurent Destailleur
1810189cda
Doxygen
2012-02-15 13:41:05 +01:00
Laurent Destailleur
104a4532b9
Fix: miscellaneous not initialized vars
2012-02-07 18:48:50 +01:00
Laurent Destailleur
2093b3f0be
New: Allow to use ODT templates for prososal like it's done for invoices
2012-02-05 19:37:52 +01:00