Romain Quetiez
8fa9336568
✅ Fix regression introduced with the optimization done in 15148f7, and seen only in the context of the CI
2023-10-27 11:21:56 +02:00
Romain Quetiez
15148f7d1d
✅ Fix regression introduced with the optimization done in 798cd10, and seen only if APC is enabled
2023-10-27 10:43:13 +02:00
Romain Quetiez
7e8589ba95
✅ Fix regression introduced with the optimization done in d641504. Cope with the fact that sometimes the admin account already exists, sometimes not.
2023-10-27 09:21:36 +02:00
Romain Quetiez
fba668207f
✅ Optimize tests execution time (test rework and defensive cleanup)
2023-10-26 21:35:52 +02:00
Romain Quetiez
798cd10d6b
✅ Optimize tests execution time (no need for process isolation as long as we leave the premises clean)
2023-10-26 21:23:47 +02:00
Romain Quetiez
d6415042ae
✅ Optimize tests execution time (no need for process isolation as long as we leave the premises clean)
2023-10-26 21:10:07 +02:00
Romain Quetiez
8893cdac1d
✅ Optimize tests execution time (no need for process isolation as long as we leave the premises clean)
2023-10-26 10:44:37 +02:00
Romain Quetiez
b5c46ccd4a
✅ Optimize tests execution time (x10 / no need for a systematic check of date formats, which was ok as a first approach)
2023-10-25 22:59:03 +02:00
Romain Quetiez
cf774cdb90
✅ Explain why process isolation is a must
2023-10-25 22:18:05 +02:00
Molkobain
b9c566238a
Merge remote-tracking branch 'origin/support/2.7' into support/3.0
...
Remove PHPUnit annotations as from support/3.0 and newer they are no longer necessary
2023-10-23 15:09:49 +02:00
Molkobain
4fd8177165
N°3715 - Fix unit tests
2023-10-23 14:55:06 +02:00
Anne-Cath
0cc0f39d9e
Merge remote-tracking branch 'origin/support/2.7' into support/3.0
2023-10-20 17:04:26 +02:00
Anne-Catherine
a2cdf214f0
N°3715 - Export above 1000 entries ignore obsolete data from user preference ( #468 )
...
* N°3715 - Export above 10000 entries ignore obsolete data from user preference
2023-10-20 17:02:16 +02:00
Eric Espie
61a9a4ac65
✅ Fix unit tests for MariaDB
2023-09-01 09:29:21 +02:00
Romain Quetiez
65bb76b9e3
N°6658 - Boost PHPUnit tests execution
2023-08-17 17:27:55 +02:00
Molkobain
d951d3b872
💚 Fix typo in extended class name
2023-08-11 09:05:30 +02:00
Molkobain
ed6df77cbb
N°6097 - Tests: Optimize performances by creating custom env. only once and re-using it across test classes
2023-08-10 15:45:39 +02:00
Molkobain
f002aa04cd
N°6097 - Tests: Enable PHP unit tests on a custom DataModel
2023-08-10 15:45:39 +02:00
Molkobain
b86d70623e
N°6097 - Tests: Temporarily add test case for the new ItopCustomDatamodelTestCase class
2023-08-10 15:45:39 +02:00
Pierre Goiffon
f04fc546b5
N°6643 Fix TypeError in \CMDBSource::LogDeadLock
2023-08-10 14:34:09 +02:00
Pierre Goiffon
d2eef06276
✅ AttributeURLTest : remove useless separateProcess annotations
2023-08-03 11:08:47 +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
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
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
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
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
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
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
Pierre Goiffon
307edd3f7a
✅ Fix AttributeDefinitionTest parse error in PHP 7.2
2023-03-21 09:03:54 +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
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
a34274b883
N°5784 - PHP 8.0: Fix mandatory attribute not visible in transition form due to bad emptiness test ( #379 )
...
* N°5784 - PHP 8.0: Fix mandatory attribute not visible in transition form due to bad emptiness test
* N°5784 - Rework AttributeDefinition::HasAValue() implementation after code review
* N°5784 - Add unit test
2023-03-07 10:16:14 +01:00
Anne-Catherine
af8f06c8c3
N°5603 - Autocomplete fails with error for an external key pointing to an abstract class with no friendlyname ( #375 )
2023-02-27 16:18:36 +01:00
Pierre Goiffon
e960a4ad53
N°6023 Fix cannot load SVG files in AttributeImage since 3.0.0 ( #449 )
...
Caused by merge error in ddd6bf2
Co-authored-by: Molkobain <lajarige.guillaume@free.fr >
2023-02-23 18:38:03 +01:00
Pierre Goiffon
cb2be0eccd
N°5121 New AttributeURL validation use case
...
In comment as it isn't handled yet
2023-02-23 11:16:50 +01:00
Pierre Goiffon
f55fc8d264
N°6014 Validation pattern for URL : now handles commas in params ( #356 )
...
Seen on PRTG URLs
Co-authored-by: Molkobain <lajarige.guillaume@free.fr >
2023-02-23 10:59:38 +01:00
Pierre Goiffon
a50ed02057
✅ N°4660 Fix OQLTest
2023-01-16 11:39:38 +01:00
Pierre Goiffon
0a7c8f9fd1
Merge remote-tracking branch 'origin/support/2.7' into support/3.0
...
# Conflicts:
# tests/php-unit-tests/unitary-tests/core/OQLTest.php
# tests/php-unit-tests/unitary-tests/core/iTopConfigParserTest.php
# tests/php-unit-tests/unitary-tests/webservices/RestTest.php
2023-01-16 11:36:02 +01:00
Pierre Goiffon
f65e14397c
✅ N°4660 Fix permissions changes in tests
2023-01-16 11:22:23 +01:00
Pierre Goiffon
b9ed00d53f
N°4660 Fix iTopConfigParserTest setting permissions of iTop config file
...
Alternative method to restore config file
chmod cannot be used with +w
In \Config::WriteToFile we are using fopen with mode=w, so using the same
In consequence we are not modifying anymore the iTop config file permissions \o/
2023-01-11 16:04:21 +01:00
Molkobain
c4508ea80c
N°4660 - Fix data synchro unit test failure due to another test not restoring correct user permissions on conf file
2023-01-11 14:26:23 +01:00
Molkobain
16390c9b00
N°5857 - PHPUnit: Replace usage of deprecated assetContains with assertStringContainsString
2023-01-11 13:26:54 +01:00
Molkobain
a5efef900c
N°5608 - Harmonize namespaces and merge duplicated test files
2023-01-10 23:02:54 +01:00
Molkobain
c851a10982
Merge remote-tracking branch 'origin/support/2.7' into support/3.0
2023-01-10 22:49:13 +01:00
Molkobain
845adf43c6
N°5608 - Harmonize namespaces and merge duplicated test files
2023-01-10 22:36:35 +01:00