N°9116 - Installing modules in extension folder or production-modules doesn't have the same behavior (#981)

* N°9116 - Installing modules in extension folder or production-modules doesn't have the same behavior

* N°9116 - Installing modules in extension folder or production-modules doesn't have the same behavior

* N°9116 - Installing modules in extension folder or production-modules doesn't have the same behavior
This commit is contained in:
Lenaick
2026-07-28 16:40:23 +02:00
committed by GitHub
parent b976471a0d
commit 1403914572
2 changed files with 46 additions and 9 deletions

View File

@@ -421,7 +421,7 @@ class WizStepModulesChoiceTest extends ItopTestCase
'mandatory' => false,
],
],
'An installed non mandatory extension with missing dependencies and without force uninstall should be not checked and disabled' => [
'An installed non mandatory extension with missing dependencies and without force uninstall should be not checked and enabled' => [
'aExtensionsOnDiskOrDb' => [
'itop-ext1' => [
'installed' => true,
@@ -442,6 +442,33 @@ class WizStepModulesChoiceTest extends ItopTestCase
'uninstallable' => true,
'missing' => false,
'installed' => true,
'disabled' => false,
'checked' => false,
'dependency_issue' => true,
'mandatory' => false,
],
],
'An installed non mandatory and not uninstallable extension with missing dependencies and without force uninstall should be not checked and disabled' => [
'aExtensionsOnDiskOrDb' => [
'itop-ext1' => [
'installed' => true,
'missing_dependencies' => [
'itop-ext1-1',
],
],
],
'aWizardStepDefinition' => [
'extension_code' => 'itop-ext1',
'mandatory' => false,
'uninstallable' => false,
'missing_dependencies' => true,
],
'bCurrentSelected' => false,
'bDisableUninstallChecks' => false,
'aExpectedFlags' => [
'uninstallable' => false,
'missing' => false,
'installed' => true,
'disabled' => true,
'checked' => false,
'dependency_issue' => true,
@@ -518,7 +545,7 @@ class WizStepModulesChoiceTest extends ItopTestCase
'missing_dependencies' => true,
],
'bCurrentSelected' => false,
'bDisableUninstallChecks' => true,
'bDisableUninstallChecks' => false,
'aExpectedFlags' => [
'uninstallable' => true,
'missing' => false,
@@ -545,7 +572,7 @@ class WizStepModulesChoiceTest extends ItopTestCase
'missing_dependencies' => true,
],
'bCurrentSelected' => false,
'bDisableUninstallChecks' => true,
'bDisableUninstallChecks' => false,
'aExpectedFlags' => [
'uninstallable' => true,
'missing' => false,