Laurent Destailleur
5dae5b57a0
Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into
...
develop
2023-05-17 12:27:46 +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
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
a8cd44cafc
Clean code
2023-04-11 22:17:15 +02:00
Laurent Destailleur
6c17c2f044
Test travis php7.1
2022-09-21 17:55:04 +02:00
Frédéric FRANCE
b1a1cd4be6
code syntax
2021-01-14 15:09:08 +01:00
Laurent Destailleur
d781d78c4e
Fix warning
2020-12-16 12:53:31 +01:00
Laurent Destailleur
3521a736fc
Fix warnings
2020-12-12 19:49:13 +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
24b073771e
wip
2019-01-27 13:07:22 +01:00
Laurent Destailleur
3d3edb19d8
Merge branch '8.0' of git@github.com:Dolibarr/dolibarr.git into develop
...
Conflicts:
.travis.yml
htdocs/langs/en_US/commercial.lang
2018-09-02 15:48:26 +02:00
Laurent Destailleur
a69c3caf2c
Prepare compatibility with phpunit 6.1
2018-09-02 14:10:06 +02:00
Frédéric FRANCE
6aee680a4f
PSR2 ClassDeclaration
2018-08-29 22:06:05 +02:00
Laurent Destailleur
d23a8a56ea
Fix must use the constant, not hard coded value.
2016-06-25 21:40:45 +02:00
Laurent Destailleur
4b741c6b9c
Fix permissions
2015-12-13 16:16:30 +01:00
frederic34
73fda2cb86
WIP PSR2
2015-01-08 18:36:03 +01:00
Marcos García de La Fuente
0c4a3b23af
Corrected test
2014-07-18 03:52:30 +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
0e13ded641
Merge remote-tracking branch 'origin/3.4' into 3.5
...
Conflicts:
test/phpunit/CoreTest.php
test/phpunit/Functions2Test.php
test/phpunit/FunctionsTest.php
2014-05-18 11:57:18 +02:00
Laurent Destailleur
7216b2a843
Fix phpunit to be compatible with new version of phpunit
2014-05-02 00:08:27 +02:00
Laurent Destailleur
876a35d1a1
Fix phpunit to be compatible with new version of phpunit
2014-05-02 00:08:19 +02:00
Raphaël Doursenaud
686f5add82
Normalized line endings to LF
2013-06-05 16:12:07 +02:00
Laurent Destailleur
eac4aa7e28
New: Module mailman can subscribe/unsubscribe to ML according to
...
categories of member.
2013-06-05 15:44:42 +02:00
Laurent Destailleur
b496436fe3
Qual: Reduce number of methods. Mutualize update_note code.
2013-04-10 10:58:38 +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
Laurent Destailleur
816e317dd2
Fix into categorie functions
2012-08-05 23:58:42 +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
Regis Houssin
6f1651309e
Fix: global converting lines delimiter
2012-07-02 19:30:37 +02:00
Laurent Destailleur
b6b33877a7
Fix: Better fix
2012-03-21 13:57:47 +01:00
Regis Houssin
b1f1c203fd
Fix: return the good result value
2012-03-21 12:00:29 +01:00
Regis Houssin
14996257a2
Fix: try another method
2012-03-21 11:44:04 +01:00
Regis Houssin
0c62709a9c
Fix: save and restore value of $this->id
2012-03-21 11:33:50 +01:00
Regis Houssin
0432609502
Fix: unset $this->id for good check test
2012-03-21 11:24:30 +01:00
Regis Houssin
0f3f822e3d
Fix: add test
2012-03-21 11:06:53 +01:00
Regis Houssin
7508974cbb
Fix: print log before the test
2012-03-21 10:45:50 +01:00
Regis Houssin
6734549436
Fix: use good function with good parameters
2012-03-21 10:38:13 +01:00
Regis Houssin
5dbb246db0
Fix: the expected value is the first parameter
2012-03-21 10:28:31 +01:00
Regis Houssin
e62424294a
Fix: test if equals for stop on failure
2012-03-21 10:19:52 +01:00
Laurent Destailleur
845fe95128
Return specific code for duplicate
2012-03-20 13:51:50 +01:00
Laurent Destailleur
1810189cda
Doxygen
2012-02-15 13:41:05 +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
Laurent Destailleur
95a292f41b
Fix: Update licence files
2011-12-17 21:58:44 +01:00
Laurent Destailleur
b52fc32853
Fix: fix not initialized variables
2011-12-05 19:41:38 +01:00
eldy
e3197230c5
More PHPUnit tests
2011-10-09 18:43:56 +02:00
Laurent Destailleur
2a456b08d5
Enhance PHPUnit tests
2011-09-23 12:21:00 +00:00
Regis Houssin
2c1b3722f2
Fix: replace sizeof() by count()
2011-09-17 19:49:50 +00:00
Regis Houssin
e2f9864f42
Add build files for Hudson server
...
Fix: avoid errors with PHPUnit/Autoload.php
2011-09-16 16:16:39 +00:00