Benjamin Dalsass
977a8add67
Adjust php setup requirement to version 7.2.5.
...
Improve test error message.
2022-06-16 10:04:13 +02:00
Pierre Goiffon
abb13b70b9
Compiler : when generating model file add it to module ( #296 )
...
Before this fix, when creating a module for iTop that was creating PHP code (an iTop class for example, a snippet, ...) it was mandatory to add the model.php file in your module.php file ("datamodel" key). If you forgot this, then the compilation was completed OK but the result code wasn't included in iTop.
Now the compiler automatically adds the model.php file to the included files.
2022-06-15 18:07:16 +02:00
Pierre Goiffon
5a37bc338a
N°3091 Update PHPUnit to 8.5 : fix setUp and teardDown methods signatures on support/3.0 new tests
2022-04-22 16:04:54 +02:00
Pierre Goiffon
f4a027b474
Merge remote-tracking branch 'origin/support/2.7' into support/3.0
...
# Conflicts:
# composer.json
# core/cmdbchangeop.class.inc.php
# core/cmdbobject.class.inc.php
# css/light-grey.scss
# setup/setuputils.class.inc.php
# test/ItopTestCase.php
# test/core/ConfigTest.php
# test/core/LogAPITest.php
# test/core/UserRightsTest.php
# test/core/dictApcuTest.php
# test/core/dictTest.php
# test/core/iTopConfigParserTest.php
# test/core/ormLinkSetTest.php
# test/phpunit.xml.dist
# test/postbuild_integration.xml.dist
# test/setup/SetupUtilsTest.php
# test/status/StatusIncTest.php
# webservices/cron.php
2022-04-22 15:26:18 +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
Eric Espie
94d31827e7
N°4569 - Fix tests
2022-03-02 17:54:27 +01:00
Eric Espie
f24f8a2f34
N°4569 - Fix restoring deleted nodes when parent is not present
2022-02-28 10:54:59 +01:00
Eric Espie
52327d1086
Migrate default theme test-red
2022-01-31 17:50:54 +01:00
Eric Espie
4463e91d85
N°4569 - Fix unit tests
2022-01-31 16:41:01 +01:00
Eric Espie
b9ea7d4913
N°4569 - Fix collision between existing nodes and saved ones
2022-01-27 17:42:52 +01:00
Eric Espie
3a56824cde
N°4569 - Fix unit tests names
2022-01-26 16:02:07 +01:00
Eric Espie
9a6d40e9db
N°4569 - Fix unit tests
2022-01-26 15:30:03 +01:00
Eric Espie
a839b1c4ae
N°4569 - Fix unit tests
2022-01-26 15:14:42 +01:00
Eric Espie
468de06fe1
N°4569 - Fix deletion of light-grey theme for iTop 2.7 and older
2022-01-26 10:00:48 +01:00
Molkobain
64afa07ff5
Unit tests: Fix themes compilation test
2022-01-12 15:14:05 +01:00
Pierre Goiffon
b55ba2ac7f
Merge remote-tracking branch 'origin/support/2.7' into support/3.0
...
# Conflicts:
# core/cmdbsource.class.inc.php
# core/log.class.inc.php
# test/setup/iTopDesignFormat/iTopDesignFormatTest.php
2022-01-12 09:56:16 +01:00
Pierre Goiffon
693a861e7d
♻️ Refactor DBBackuptest
...
Split each test in a dedicated method
2022-01-12 09:42:57 +01:00
Pierre Goiffon
0ee6c60e94
✅ Fix DBBackupTest (again :/)
...
Was working on Windows but not on Linux...
2022-01-12 09:12:04 +01:00
Pierre Goiffon
a663e9fded
✅ Fix DBBackupTest
...
DB connection dependency was added in a222ead4 (N°2336) in \DBBackup::GetMysqlCliTlsOptions but test wasn't updated accordingly :/^
The test wasn't ran on Jenkins until b11bf308 , so we saw the regression only yesterday :(
This is now fixed ! 🥳
2022-01-12 09:00:26 +01:00
Molkobain
64736f1463
Fix unit test provider
2022-01-11 15:48:45 +01:00
Pierre Goiffon
8578d18e7f
Merge remote-tracking branch 'origin/support/2.7' into support/3.0
...
# Conflicts:
# core/cmdbsource.class.inc.php
# core/config.class.inc.php
# core/displayablegraph.class.inc.php
# core/log.class.inc.php
# datamodels/2.x/itop-config-mgmt/dictionaries/tr.dict.itop-config-mgmt.php
# datamodels/2.x/itop-knownerror-mgmt/dictionaries/tr.dict.itop-knownerror-mgmt.php
# datamodels/2.x/itop-service-mgmt/dictionaries/tr.dict.itop-service-mgmt.php
# datamodels/2.x/itop-tickets/tr.dict.itop-tickets.php
# datamodels/2.x/itop-welcome-itil/tr.dict.itop-welcome-itil.php
# dictionaries/tr.dictionary.itop.core.php
# dictionaries/tr.dictionary.itop.ui.php
# pages/UI.php
# setup/itopdesignformat.class.inc.php
# test/core/LogAPITest.php
# test/integration/iTopModulesPhpVersionChecklistTest.php
# test/postbuild_integration/SetupCssIntegrityChecklistTest.php
# test/postbuild_integration/iTopModuleXmlInstallationChecklistTest.php
# test/status/StatusTest.php
2022-01-10 16:15:00 +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
0ce805b192
\MFCompilerTest::testCompileThemes : fix calling protected method
2021-12-31 15:09:18 +01:00
Eric Espie
79c17970f8
✅ Fix tests on packages missing composer.json file
2021-11-03 11:31:43 +01:00
Molkobain
86b03b9e92
Set back @covers annotation
2021-09-27 17:34:48 +02:00
odain
0b4d4764bd
ci testing: use proper annotation to include/exlude test linked to composer.json
2021-09-27 11:57:25 +02:00
odain
6e45b74665
Composer: Fix required versions => rename cover annotation
2021-09-24 15:01:08 +02:00
Molkobain
d9ccac3aea
Composer: Fix required versions of PHP in order to keep our package constraints up-to-date
2021-09-21 16:12:22 +02:00
Molkobain
431dc5532b
Change comment / test for clarification
2021-07-28 15:59:43 +02:00
Eric
f4345ef312
N°4199 - Add <code> to EnumSet values to fix XML conversion
2021-07-28 14:40:19 +02:00
Eric
13b548e95d
N°4199 - Add <code> to EnumSet values to fix XML conversion
2021-07-28 14:39:52 +02:00
Eric
3a988ab499
N°4175 - Adding a lifecycle to an existing class fails on setup (using xml version < 3.0)
2021-07-28 13:30:39 +02:00
Molkobain
7ca689e190
Setup: Fix sizes being displayed as bits instead of bytes
2021-07-04 22:49:54 +02:00
Molkobain
1128490d47
N°2982 - Branding: Theme imports with no xsi:type are ignored
2021-05-17 17:51:08 +02:00
Molkobain
186ef1689e
CI: Fix folder creation on Windows environments
2021-05-17 17:44:01 +02:00
Pierre Goiffon
bc10baed3e
:bulb PHPDoc
2021-05-12 09:06:48 +02:00
Molkobain
626316e8d1
N°3990 - Compiler: Set "_delta" flag on moved node if no ancestors has one
2021-05-10 19:05:08 +02:00
Molkobain
ab30bae46a
Tests: Rename test and move samples to dedicated directory
2021-05-10 19:05:07 +02:00
Molkobain
bd2c0d1121
Tests: Simplify XML sample
2021-05-10 19:05:07 +02:00
odain
27d8869665
N°3593 - rename xsi-type to utilities
2021-04-16 14:01:06 +02:00
odain
3b3fa7b1f8
N°2982 - rename imports_utility and imports_variable in precompilation signature
2021-04-16 11:56:16 +02:00
odain
135b5e8adb
N°2982 - PR reviews
2021-04-16 11:46:14 +02:00
odain
d07199db7c
N°2982 - add theme_precompilation_enabled to be able to deactivate precompilation from conf + update provided precompiled files when IsDevelopmentEnvironment
2021-04-13 00:49:08 +02:00
odain
903afff687
N°2982 - fix delta xml variables not used in themes
2021-04-12 22:14:00 +02:00
Stephen Abello
456f7f7c7d
Rename test-red variables
2021-03-24 11:29:43 +01:00
Stephen Abello
5d6194e679
Revert new method in itopdesignformat
2021-03-24 11:29:43 +01:00
Stephen Abello
1d0da38d40
N°3593 Fix file import variable usage in theme compilation
2021-03-24 11:29:43 +01:00
bruno-ds
9cbaced1f3
Merge remote-tracking branch 'origin/support/2.7' into develop
...
# Conflicts:
# core/config.class.inc.php
# datamodels/2.x/itop-core-update/view/SelectUpdateFile.html.twig
# datamodels/2.x/itop-core-update/view/SelectUpdateFile.ready.js.twig
# setup/setuputils.class.inc.php
# test/setup/SetupUtilsTest.php
2021-03-02 14:34:19 +01:00
Molkobain
5836be7131
Fix unit test
2021-02-24 09:49:16 +01:00
bruno-ds
c3cb4fbe75
Fix merge wrongfully performed
...
(thanks @molkobain & @piRGoif & @odain-cbd)
2021-02-23 10:24:49 +01:00