Problem/Motivation
#3102724: Improve usability of core compatibility ranges on available updates report and other issues there has been confusion about why certain XML features were made they way they were.
We should make it clear.
Proposed resolution
- Add comments to each XML fixture in the update module that makes clear why it's data is the way it is
- Add comments to test methods to make clear which fixtures they use and why
They might be additions or better ideas for making this clear.
Remaining tasks
All the tasks
Comments
Comment #2
tedbowComment #3
dwwExcellent, thanks for opening this! Also came up at #3113292: Update module has no tests for changes to status of the installed release (revoked, etc) so adding that as related.
Comment #4
tedbowRe
On thing that confused me when I first started with update tests was
This doesn't explicit tell you that values in
$xml_mapwill determine which XML fixtures are used.At least just updating this @param comment could help make it more clear.
We could even refactor it more to be sometime like
The
$urlparam is hardly ever used and we could remove it from the new function and make another new function to set it or leave it and make it optional.Comment #9
wim leersAFAICT this is blocked on #3280679: Remove legacy attributes, add supported_branches and consistently name update.module's XML fixtures.
Comment #13
wim leers#3280679: Remove legacy attributes, add supported_branches and consistently name update.module's XML fixtures is in.