stable

Clone or download

Read-only

chore: Unit test invalid comparisons and values for dates

part of story #10710 search on fields with duck typing No functional change. CI should be happy. Why? This is part of a refactoring to transition away from invalid checks being grouped by comparison type (equals, lesser than, etc.). We want to group it by field type instead, as it is easier to understand. Most of the time, we work "field by field", so it makes more sense to have all the business rules for a given field in as few files as possible, instead of having all the business rules for "equals" comparison being grouped together. Change-Id: Id34789320b467241e042891ea1abf98138c46588

Modified Files

Name
M plugins/crosstracker/tests/unit/CrossTracker/Report/Query/Advanced/InvalidTermCollectorVisitorTest.php +104 −25 Go to diff View file
A plugins/tracker/tests/unit/Builders/Fields/LastUpdateDateFieldBuilder.php +67 −0 Go to diff View file
A plugins/tracker/tests/unit/Builders/Fields/SubmittedOnFieldBuilder.php +67 −0 Go to diff View file
M plugins/tracker/tests/unit/Tracker/Report/Query/Advanced/InvalidTermCollectorVisitorTest.php +98 −6 Go to diff View file