Pierre Goiffon
88d743b1cc
✅ N°5538 Make PHPUnit test fail if transaction opened but not closed
2022-09-21 14:05:27 +02:00
Pierre Goiffon
f57d1f1de3
✅ Fix PHPunit errors with InlineImageMock.php and UtilsTest
...
HTMLDOMSanitizerTest : fix "Fatal error: Cannot declare class InlineImage, because the name is already in use in /var/www/html/iTop/test/core/sanitizer/InlineImageMock.php"
We are now injecting the class to mock, instead of declaring another class with the same name (was working before but why ?!???)
\UtilsTest::testSanitizer : no more testing the "class" filter, because it is a simple indirection, and we need to load datamodel which is causing multiple problems (see the comment in the test method dataprovider)
2022-05-20 10:48:05 +02:00
Pierre Goiffon
f4c7afc148
N°4824 Update consumers & tests after nikic/php-parser update
...
Was done in 3.0.0 with N°3867
(cherry picked from commit cd1ba097cb )
(cherry picked from commit 5b42f67a99 )
(cherry picked from commit 2d98ca2318 )
(cherry picked from commit ddc5bbd1bb )
2022-04-29 15:24:56 +02:00
Pierre Goiffon
6e619f2c35
Fix \iTopConfigParserTest::testConfigWriteToFile_FromScratchInstallation throwing error
2022-04-21 12:02:35 +02:00
Pierre Goiffon
163ba41e8d
N°3091 Update PHPUnit to 8.5 : remove doesNotPerformAssertions annotation
...
Modified tests :
- iTopConfigParsertest
- DBSearchIntersectTest::testIntersectOptimization
As expected this isn't working with PHPUnit 8.5
Why does it worked with previous PHPUnit 6 version ? Maybe this annotation wasn't handled yet ? The corresponding PHPUnit doc isn't available anymore...
Annotations doc for PHP 8.5 : https://phpunit.readthedocs.io/en/8.5/annotations.html#doesnotperformassertions
2022-04-21 12:02:35 +02:00
Pierre Goiffon
ec143c43db
N°3091 Update PHPUnit to 8.5 : fix setUp and teardDown methods signatures
...
"Return type declaration must be compatible with parent"
See https://phpunit.de/announcements/phpunit-8.html "Return Type of Template Methods"
2022-04-21 12:02:35 +02:00
Pierre Goiffon
11e811cc4b
N°3717 Improve iTop object history API ( #192 )
...
This fixes a major flaw in the history API that was causing "phantom" CMDBChange records (without any CMDBChangeOp attached). That was happening especially in iProcess impl.
For example this lead to the creation of the combodo-cmdbchange-cleaner module in the Mail To Ticket extension.
The modifications in detail :
- We can now pass a non persisted CMDBChange instance to \CMDBObject::SetCurrentChange
- No persistence done in \CMDBObject::CreateChange anymore
- Persistence of the attached CMDChange will be done if necessary in CMDBChangeOp::OnInsert
- New CMDBObject::SetCurrentChangeFromParams helper method to ease resetting the current change
2022-04-19 17:13:18 +02:00
Eric Espie
7ce5712b71
N°4967 - 'Previous Values For Updated Attributes' not updated if DBUpdate is called without modifying the object
2022-03-21 08:43:03 +01:00
Pierre Goiffon
e530cbb4f2
N°4624 Restore processIsolation on tests which actually need it
...
Warning, one symptom was having the CI returning an empty phpunit.results.xml !!
2022-01-07 17:25:18 +01:00
Pierre Goiffon
ddb8378fe6
N°4624 align phpunit annotations
...
Remove processIsolation when not needed
When needed, make sure to have also their counterpart (preserveGlobalState and backupGlobals)
2022-01-07 15:20:34 +01:00
Pierre Goiffon
47db23d91c
💚 N°4624 Fix other tests after global processIsolation was disabled in 6bf25f90
2022-01-07 12:44:08 +01:00
Pierre Goiffon
fc1f701bf6
💚 N°4624 TransactionsTest : add process isolation
...
Was global before 6bf25f90
2022-01-07 12:34:09 +01:00
odain-cbd
9addc4a7ca
Merge pull request #224 from Combodo/feature/dict-apcu-bug
...
Feature/dict apcu bug
2021-12-02 12:22:22 +01:00
acognet
c1c2d027c3
N°4402 - DbObject::ListPreviousValuesForUpdatedAttributes() returns new values for _list-attributes (at least in DbObject::AfterUpdate()) Fix test
2021-11-30 12:11:04 +01:00
acognet
5269096ecd
Merge branch 'support/2.7' of github.com:Combodo/iTop into support/2.7
2021-11-29 15:07:14 +01:00
Molkobain
7f2eef4a24
Merge remote-tracking branch 'origin/support/2.6' into support/2.7
2021-11-26 13:59:29 +01:00
Molkobain
8a65a592f3
N°4360 - Rename class to match other classes convention
2021-11-26 13:47:05 +01:00
odain
dcfdb2d0a9
N°4125 - add integration test apart from ApcService mocking
2021-11-26 10:28:56 +01:00
odain
0cbf34ba5a
N°4125 - fix tests under windows (again)
2021-11-26 09:47:01 +01:00
odain
bea52d5fb9
N°4125 - test did not run under windows
2021-11-26 09:12:58 +01:00
acognet
903de43589
N°4402 - DbObject::ListPreviousValuesForUpdatedAttributes() returns new values for _list-attributes (at least in DbObject::AfterUpdate()) Add tests
2021-11-24 12:10:30 +01:00
Pierre Goiffon
efaf53e568
Merge remote-tracking branch 'origin/support/2.6' into support/2.7
...
# Conflicts:
# core/htmlsanitizer.class.inc.php
2021-11-23 18:07:02 +01:00
Pierre Goiffon
81a2a9278c
✅ N°4360 Fix SvgDOMSanitizer expected data
2021-11-23 17:38:30 +01:00
Pierre Goiffon
e15d4bfab6
N°4360 Security hardening
2021-11-23 17:25:50 +01:00
Pierre Goiffon
cfdbc8ae62
N°4215 When checking for TLS cnx, don't set anymore CMDBSource mysql attributes !
2021-09-23 11:59:44 +02:00
Pierre Goiffon
aaa8f6d311
N°4215 Fix call to a function on null error when setting TLS connection in the setup
...
Regression introduced by b1ca1f2630 / N°3513
2021-09-22 15:59:39 +02:00
odain
2fe4265223
N°4125 - Make translations loading more robust toward APCu cache corruption or invalid dictionnary - adaptations to get current correction accepted
2021-07-28 11:14:49 +02:00
odain
c98ad106c4
N°4125 - Make translations loading more robust toward APCu cache corruption or invalid dictionnary
2021-07-01 17:34:23 +02:00
Eric
949b213f9d
N°3513 - revert crud sequence
2021-06-24 13:32:43 +02:00
Eric
b1ca1f2630
N°3513 - ObjectFormManager : remove transaction
...
* Add automatic tests
* Fix object consistency
2021-06-22 16:09:41 +02:00
Eric
d11eceac62
✅ N°4052 - OQL parser limit for huge request - fix CI
2021-06-03 17:07:17 +02:00
Eric
02d32a556d
N°4052 - OQL parser limit for huge request
2021-06-02 15:15:00 +02:00
Eric
71fcc6f026
N°4031 - OQL Error when AttributeObjectKey is used in JOIN condition
2021-06-02 14:45:03 +02:00
odain
d4607ee815
N°3065 - Failed enum comparison when values contains parenthesis : add a warning
2021-03-02 07:33:36 +01:00
Pierre Goiffon
35155e4b7a
💡 N°3065 comments modifications
2021-02-26 10:06:29 +01:00
odain
74246a8278
N°3065 - Failed enum comparison when values contains parenthesis - enhance db model parsing used during setup comparison with expected one to generate SQL migration queries
2021-02-18 18:24:09 +01:00
Eric
dbb6e43751
N°3618 - Count on union with different conditions fails (Fix unit tests)
2021-02-05 11:28:40 +01:00
Eric
f07f0ba1c7
N°3618 - Count on union with different conditions fails (Fix multi-column attributes sql generation)
2021-02-05 10:15:14 +01:00
Pierre Goiffon
a5894c1a4c
Rename \Combodo\iTop\Test\UnitTest\ItopTestCase::InvokeInvisible* to InvokeNonPublic*
2021-02-04 09:41:56 +01:00
Eric
e06996a2e4
N°3660 - Fix JOIN without condition on child joined table is ignored (check done in optimizer)
2021-02-03 15:58:54 +01:00
Pierre Goiffon
765560d1f5
ItopTestCase : helpers to call invisble methods
2021-02-02 17:57:40 +01:00
Eric
bc024d9ed0
N°3660 - Fix JOIN without condition on child joined table is ignored
2021-02-02 17:30:03 +01:00
Pierre Goiffon
512b415bd6
N°3065 add test case in comment
2020-10-30 11:30:22 +01:00
acognet
96332b7885
N°3139 - import csv : hyperlink not clickable
2020-10-16 14:15:51 +02:00
odain
df5aacca42
💚 use new ci validation
2020-10-09 10:08:31 +02:00
Pierre Goiffon
06acac97ba
✅ Fix tests
...
* update datamodel XML version
* Remove \Combodo\iTop\Test\UnitTest\Core\OQLTest::testTypeErrorQueryParser
2020-10-07 16:21:36 +02:00
acognet
ed0e16494d
N°3335 - Fix test
2020-10-05 16:23:56 +02:00
Pierre Goiffon
b2474d3368
N°3324 Portal fix ignore_silo when using nested query in scopes
...
The AllowAllData attribute wasn't updated in the nested queries.
It is now set both when calling DBObjectSearch::AllowAllData and when creating a new nested query (\DBObjectSearch::AddConditionExpression)
2020-10-01 12:15:34 +02:00
odain
9520d2794f
💚 fix ci Serialization of 'ReflectionClass' is not allowed
2020-09-25 10:29:48 +02:00
odain
4e0eed6e13
N°3270 Notify on expiration not sending notification (trigger exception)
...
add boilerplate function and use it to intercept/enrich trigger exception loops
2020-09-25 07:18:14 +02:00