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
6c17c2f044
Test travis php7.1
2022-09-21 17:55:04 +02:00
Frédéric France
00da52ef8c
fix php8 warnings
2022-08-31 22:12:25 +02:00
Laurent Destailleur
2130be975e
Fix perm
2021-05-26 11:01:54 +02:00
Laurent Destailleur
4da5aeedf4
Fix bad test
2021-05-12 08:42:33 +02:00
Laurent Destailleur
c84fc06e51
Fix phpunit
2021-05-04 15:53:15 +02:00
Laurent Destailleur
5ca70b29b2
Fix phpunit
2021-05-04 15:52:38 +02:00
Laurent Destailleur
f6305bf551
FIX Sql error
2021-05-04 15:46:38 +02:00
Laurent Destailleur
94d1487fde
Fix method name
2021-04-01 12:29:56 +02:00
Laurent Destailleur
348b8d2ffe
More phpunit tests
2021-03-02 23:55:41 +01:00
Laurent Destailleur
9f4bdd86b4
More robust test
2021-03-02 23:48:33 +01:00
Frédéric FRANCE
b1a1cd4be6
code syntax
2021-01-14 15:09:08 +01:00
Laurent Destailleur
c8f918265a
Removed dead code
2020-12-04 13:25:56 +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
bd3647a9d7
Prepare phpunit 6.1 compatibility
2018-09-02 14:23:52 +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
6e31de731b
Fix phpunit
2017-05-21 20:24:56 +02:00
Raphaël Doursenaud
bd7d487c79
[Qual] Do not test deprecated update_note_public()
2015-09-24 20:52:43 +02:00
jfefe
0d14cb8709
Modify thirdparty delete() method to pass user object as an argument.
2015-05-03 18:44:42 +02:00
frederic34
73fda2cb86
WIP PSR2
2015-01-08 18:36:03 +01:00
Laurent Destailleur
cfc337a79a
Qual: Enable php checkstyle rule Zend.Files.ClosingTag
...
Fix: Solve a lot of checkstyle errors.
2014-07-20 15:27:38 +02:00
Laurent Destailleur
19fb5e5085
Try to fix phpunit error with new version.
2014-05-01 19:57:53 +02:00
Laurent Destailleur
d97c45a9b8
Add version of phpunit into travis script.
...
Fix: strict mode.
2014-05-01 19:17:45 +02:00
Laurent Destailleur
692ca4473d
Qual: uniformize code: property ->tel on objects is now ->phone
...
everywhere
2013-09-25 20:04:30 +02:00
Laurent Destailleur
67052933ca
Fix: PHPUnit
2013-04-14 23:42:24 +02:00
fhenry
275bf67bb7
[ task #811 ] Uniformanize note field
2013-04-09 17:18:07 +02:00
Laurent Destailleur
5c3e6de073
Qual: Mutualize code. Only one function to build address format.
2013-04-07 17:39:08 +02:00
Laurent Destailleur
060edf21da
New: Add more PHPUnit tests to prepare removal of adodb.
2013-01-18 15:54:40 +01: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
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
3f001e3938
Qual: More PHPUnit tests
2012-03-13 01:24:21 +01:00
Regis Houssin
1ad98968dc
Fix: add logs
2012-02-17 09:57:38 +01:00
Laurent Destailleur
6acf38b77c
Qual: Add specific test for all prof id checks.
2012-02-17 09:43:26 +01:00
Regis Houssin
3abc0604cc
Fix: add country code
2012-02-17 08:46:31 +01:00
Regis Houssin
2f1c0b76fc
Fix: add specific logs
2012-02-17 08:33:00 +01:00
Laurent Destailleur
dd491a5197
Add more phpunit
2012-02-17 01:41:58 +01:00
Laurent Destailleur
1810189cda
Doxygen
2012-02-15 13:41:05 +01:00
Laurent Destailleur
e97078f6c1
Merge branch 'develop' of ssh://git@github.com/Dolibarr/dolibarr.git
...
into develop
Conflicts:
htdocs/contact/class/contact.class.php
test/phpunit/ContactTest.php
test/phpunit/SocieteTest.php
2011-12-30 14:22:17 +01:00
Laurent Destailleur
55156edd0d
Enhance PHPUnits
2011-12-30 14:18:19 +01:00
Laurent Destailleur
4bf03a2d0e
Enhance PHPUnits
2011-12-30 12:33:41 +01:00
Laurent Destailleur
c2348ef600
Uniformize field country_id, country_code, country
2011-12-29 18:07:41 +01:00
Laurent Destailleur
95a292f41b
Fix: Update licence files
2011-12-17 21:58:44 +01:00