Pierre Goiffon
7c594db4b9
N°1150 AtributeCustomFields : FromJSONToValue is now delegated to the handler
...
Method was always returning null before
2023-05-12 10:58:43 +02:00
Pierre Goiffon
cca27674d0
✅ ItopDataTestCase : extract UR params to a method to allow overrides
2023-05-12 10:58:43 +02:00
Eric Espie
f426626b9a
N°6299 - ✅ DBUpdate regression in 3.1 - Fix unit tests
2023-05-12 09:09:39 +02:00
Eric Espie
5dc80f31f5
N°6299 - DBUpdate regression in 3.1 when setting a field with same value in the concerned object
2023-05-11 16:16:49 +02:00
denis.flaven@combodo.com
7fe565c4fb
Merge branch 'feature/6133-add-extra-files-to-backup-and-restore' into develop
2023-05-11 14:41:02 +02:00
odain
0b5bf7bf6f
N°6299 - DBUpdate regression in 3.1 when setting a field with same value in the concerned object - fix temporarly ci until fix comes
2023-05-09 14:51:26 +02:00
odain
b4f517b03b
Merge branch 'support/3.0' into develop
2023-05-05 15:57:04 +02:00
odain
da5a825c7e
N°6171 - Password Expiration: can expire mode has no effect on user who have never changed their password
2023-05-05 11:37:44 +02:00
Pierre Goiffon
d10e2ac25a
Merge remote-tracking branch 'origin/support/3.0' into develop
2023-05-05 10:17:10 +02:00
Pierre Goiffon
b9230ad402
N°6274 DeprecatedCallsLogTest : replace expectException deprecated calls
...
Message was : Support for using expectException() with PHPUnit\Framework\Error\Warning is deprecated and will be removed in PHPUnit 10. Use expectWarning() instead.
2023-05-05 10:16:56 +02:00
Pierre Goiffon
436e6b80db
Merge remote-tracking branch 'origin/support/3.0' into develop
...
# Conflicts:
# tests/php-unit-tests/ItopTestCase.php
2023-05-05 09:45:02 +02:00
Pierre Goiffon
959ac7e3be
N°6274 DeprecatedCallsLogTest : fix expected exception mismatch in PHP 8.0+
...
Undefined offset notice was changed to a warning in PHP 8.0... Also message was changed :(
2023-05-05 09:13:03 +02:00
Pierre Goiffon
1884596ecd
N°6274 Fix log.class.inc.php crashing cause cannot load ItopTestCase class
...
Now the constant name is defined in approot
2023-05-04 17:34:14 +02:00
Pierre Goiffon
584cfa8cbf
N°6274 Fix PHP Notices not caught in ItopDataTestCase PHPUnit
...
This was caused by the set_error_handler() done in DeprecatedCallsLog during startup
Now we are :
* not registering the handler if a PHPUnit test is running (based on a constant set in ItopTestCase::setUp)
* on registration only do it for the required notices
2023-05-04 17:08:47 +02:00
Benjamin Dalsass
34f3b92e2e
N°5916 - Generic message on Link Uniqueness rules
...
Add unit test
2023-05-04 15:24:14 +02:00
Molkobain
3ce810ee99
N°5655 - Router: Improve robustness
...
* Change visibility from public to protected of methods for which it was not necessary
* Change visibility from static to non-static of methods that could be used as such for easier testability
* Cache available routes for better performances
* Finish Router::GetRoutes() so we can use the available routes data to display them to the developers somewhere (ideally in the toolkit)
* Improve unit tests
2023-05-02 23:56:25 +02:00
Pierre Goiffon
dd5486eaa9
Merge remote-tracking branch 'origin/support/3.0' into develop
2023-04-26 17:13:14 +02:00
Pierre Goiffon
3c15186685
Merge remote-tracking branch 'origin/support/2.7' into support/3.0
2023-04-26 17:12:08 +02:00
Pierre Goiffon
fa038ded3d
N°6254 ItopDataTestCase::CreateUserRequest : fix new argument default value
...
Was creating error Too few arguments passed
2023-04-26 16:42:27 +02:00
Pierre Goiffon
e7ea1b831c
N°6254 ItopDataTestCase::CreateUserRequest : now pass fields values as array
...
More versatile way of doing things !
2023-04-26 16:22:26 +02:00
Eric Espie
d8b21e11ed
N°6182 - Fix crash with UNION OQL queries when classes / aliases are different
2023-04-26 15:09:12 +02:00
Molkobain
f026e6f4b8
N°6208 - Router: Move to Service folder
2023-04-20 09:41:12 +02:00
Molkobain
e3252da5a9
N°6208 - Router: Add mechanism to generate complete route URL from its code
2023-04-20 09:41:12 +02:00
Molkobain
6fbe66d2ec
Merge remote-tracking branch 'origin/support/3.0' into develop
...
# Conflicts:
# tests/php-unit-tests/unitary-tests/webservices/RestTest.php
2023-04-18 22:50:31 +02:00
Molkobain
778118cfb4
N°6204 - REST API: Add unit test for callback parameter
2023-04-18 22:34:11 +02:00
Molkobain
096ed9a63a
N°6204 - Improve REST API unit test readability
2023-04-18 22:14:39 +02:00
Pierre Goiffon
45f792d5ae
Merge remote-tracking branch 'origin/support/3.0' into develop
2023-04-12 10:22:52 +02:00
Pierre Goiffon
4c626d0782
Merge remote-tracking branch 'origin/support/2.7' into support/3.0
...
# Conflicts:
# core/log.class.inc.php
2023-04-12 10:22:34 +02:00
Pierre Goiffon
1114ed9562
N°6099 DeadLockLog : improve documentation and use existing constants ( #441 )
2023-04-12 10:21:34 +02:00
Eric Espie
aafd05afd1
Merge remote-tracking branch 'origin/support/3.0' into develop
2023-04-05 18:00:46 +02:00
Eric Espie
8ffddeff01
N°6085 - UNION is not supported in UserRightsProfile::GetSelectFilter
2023-04-05 17:42:26 +02:00
Eric Espie
21d37fb237
N°6085 - UNION is not supported in UserRightsProfile::GetSelectFilter
2023-04-05 17:07:23 +02:00
Molkobain
fca4006811
N°6085 - UNION is not supported in UserRightsProfile::GetSelectFilter
2023-04-05 15:58:31 +02:00
Eric Espie
f91259695a
Move Event service from sources/Application/Service to sources/Service
2023-04-05 10:48:20 +02:00
Eric Espie
1c2cf116da
N°6085 - ✅ UNION is not supported in UserRightsProfile::GetSelectFilter - Add unit tests
2023-04-05 10:37:03 +02:00
Pierre Goiffon
cd8dd59641
Merge remote-tracking branch 'origin/support/3.0' into develop
2023-03-21 09:24:32 +01:00
Pierre Goiffon
307edd3f7a
✅ Fix AttributeDefinitionTest parse error in PHP 7.2
2023-03-21 09:03:54 +01:00
Molkobain
fa17a7db2d
💚 Revert year bump change on test reference files
2023-03-18 19:10:21 +01:00
Molkobain
c767ebe989
📝 Copyright year bump
2023-03-17 18:28:47 +01:00
Molkobain
59586ad001
N°2889 - Improve PHPDoc and unit test cases
2023-03-14 19:16:19 +01:00
Molkobain
0701f92143
N°2889 - MetaModel::ApplyParams now support placeholders with an arrow for non-object value (eg. $foo->bar$)
2023-03-14 19:16:19 +01:00
Pierre Goiffon
c3816c9d0b
run_query : replace JQuery.hotkeys by standard keys detection ( #359 )
...
Use same technique as the one in #345
2023-03-14 17:54:09 +01:00
Pierre Goiffon
5d20b76476
✅ N°5893 Fix \TriggerOnObject::LogException for PHPUnit 9
...
Replaced assertContains by assertStringContainsString
2023-03-10 16:50:57 +01:00
Pierre Goiffon
4548bba96a
Merge remote-tracking branch 'origin/support/3.0' into develop
2023-03-10 16:25:58 +01:00
Pierre Goiffon
3689f3d026
Merge remote-tracking branch 'origin/support/2.7' into support/3.0
...
# Conflicts:
# tests/php-unit-tests/unitary-tests/core/TriggerTest.php
2023-03-10 16:24:17 +01:00
Pierre Goiffon
5ee6223434
✅ N°5893 Add test for \TriggerOnObject::LogException
2023-03-10 16:04:55 +01:00
Molkobain
559f5b4bdb
Merge remote-tracking branch 'origin/support/3.0' into develop
2023-03-08 11:04:24 +01:00
Molkobain
0ba386c0bc
N°5784 - Rename unit test file to match convention
2023-03-08 09:47:42 +01:00
Molkobain
03ac3d4e7c
N°5784 - Fix unit test for PHP 8.2
2023-03-08 09:34:35 +01:00
Molkobain
01faf39372
Tests: Force Synchro unit tests not to verify SSL certificate as most dev / test envs are self-signed
2023-03-07 22:50:29 +01:00