Laurent Destailleur
a3b876e5ca
Clean code
2024-02-17 15:50:51 +01:00
Laurent Destailleur
56b0c29d1f
Mutualise code
2024-02-16 23:26:32 +01:00
MDW
42a0d05b63
Qual: Spelling outside htdocs ( #27448 )
...
* Qual: Spelling outside htdocs
# Qual: Fix spelling of files not in the htdocs subdirectory.
Highlight:
- Change in email test from unvalid to invalid that should give the same test result.
* Update Dolibarr-soapui-project.xml
---------
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr >
2024-01-12 17:14:13 +01:00
Laurent Destailleur
b3f8795414
Fix phpunit
2023-08-12 01:08:04 +02:00
Laurent Destailleur
c9f1ee08dc
Fix phpunit
2023-08-11 20:15:01 +02:00
Laurent Destailleur
df4761e42a
Fix numbering of shipments
2023-08-11 12:14:28 +02:00
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
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
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
88353ee5ba
Fix tests
2023-03-19 17:38:22 +01:00
Laurent Destailleur
6c17c2f044
Test travis php7.1
2022-09-21 17:55:04 +02:00
Laurent Destailleur
ca6f222662
Fix notification (pb static var unknown)
2021-12-02 11:19:44 +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
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
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
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
ccd4f74f51
Fix PHPunit
2017-12-05 19:24:26 +01:00
Laurent Destailleur
f380747e20
More accurate error code
2017-10-04 01:11:19 +02:00
Laurent Destailleur
a3eef35ce6
Fix travis error
2017-05-22 01:19:16 +02:00
Laurent Destailleur
246fa9748b
Debug travis error
2017-05-21 23:06:45 +02:00
Laurent Destailleur
6052d2d8ed
Try to output log after error
2017-05-21 21:37:33 +02:00
Laurent Destailleur
e9256913b1
Fix set INVOICE_CAN_ALWAYS_BE_REMOVED to have phpunit test ok
2016-01-31 21:32:15 +01:00
Laurent Destailleur
6002adb04c
Fix bad transaction level due to code of situation invoices
2016-01-31 20:38:11 +01:00
Laurent Destailleur
c54355b63a
Merge remote-tracking branch 'origin/3.7' into develop
2015-01-16 10:44:41 +01:00
Laurent Destailleur
d16ce7eb96
Fix: Bad var
2015-01-15 02:42:41 +01:00
Laurent Destailleur
a886136e67
More comment and add a unit test to check that {t} tag is correctly
...
supported.
2015-01-13 22:13:15 +01:00
frederic34
73fda2cb86
WIP PSR2
2015-01-08 18:36:03 +01: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
5b6b8f1d5b
Fix: Support for reset everymonth (@99 into numbering mask) was ko when
...
changing year.
2014-01-20 11:20:38 +01:00
Laurent Destailleur
0bb18cb05c
New: Can use tag {mm} before {yy} even when there is a reset into
...
numbering masks.
Qual: Enhance phpunit tests to include this case.
2013-09-11 14:18:56 +02:00
Marcos García
5069177f46
CR fix
2013-06-08 19:02:00 +02:00
Laurent Destailleur
31fe378f3b
Fix: Pb of offset in numbering. Add also phpunit test to detect and test
...
fix.
2013-06-06 21:18:50 +02:00
Raphaël Doursenaud
686f5add82
Normalized line endings to LF
2013-06-05 16:12:07 +02:00
Laurent Destailleur
ff2adc40a4
Merge remote-tracking branch 'origin/3.3' into develop
...
Conflicts:
ChangeLog
htdocs/admin/dict.php
htdocs/comm/prospect/fiche.php
2013-04-17 23:15:57 +02:00
Laurent Destailleur
3a474a22ca
Qual: Include is_erasable() into test
...
Conflicts:
test/phpunit/NumberingModulesTest.php
2013-04-16 15:56:08 +02:00
Laurent Destailleur
a5deb8e9d7
Fix: bug into is_erasable function.
...
Conflicts:
test/phpunit/NumberingModulesTest.php
2013-04-16 15:54:36 +02:00
Laurent Destailleur
5b110ebae9
Qual: Include is_erasable() into test
2013-04-16 15:49:00 +02:00
Laurent Destailleur
248de05196
Fix: bug into is_erasable function.
2013-04-16 15:00:41 +02:00