stable

Clone or download

Read-only

Refactoring rules validator part date validation

part of request #13691 This patch only brings better and modern code to tracker rules validation. No fonctional changes are expected. The goal of the entire refactoring is to have a better, more maintainable and more testable code for futures changes in tracker rule validation. Change-Id: I57e396b24e060b4395da79565af916c6ef31c325

Modified Files

Name
M plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field.class.php +2 −0 Go to diff View file
A plugins/tracker/include/Tracker/Rule/TrackerRulesDateValidator.php +109 −0 Go to diff View file
M plugins/tracker/include/Tracker/Rule/Tracker_RulesManager.class.php +12 −77 Go to diff View file
M plugins/tracker/include/Workflow/WorkflowFactory.class.php +2 −0 Go to diff View file
A plugins/tracker/phpunit/Tracker/Rules/TrackerRulesDateValidatorTest.php +159 −0 Go to diff View file
M plugins/tracker/phpunit/Tracker/Rules/TrackerRulesManager/TrackerRulesManagerForbiddenTest.php +7 −2 Go to diff View file
M plugins/tracker/phpunit/Tracker/Rules/TrackerRulesManager/TrackerRulesManagerImportXMLTest.php +2 −1 Go to diff View file
M plugins/tracker/phpunit/Tracker/Rules/TrackerRulesManager/TrackerRulesManagerIsUsedInFieldDependencyTest.php +7 −0 Go to diff View file
M plugins/tracker/phpunit/Tracker/Rules/TrackerRulesManager/TrackerRulesManagerValidationTest.php +11 −66 Go to diff View file