mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/TemplateData
synced 2024-09-23 10:21:45 +00:00
46509ebd2a
* An empty array for a Set is invalid and the implementation now enforces this. * Add new error message for invalid value. When Sets contain a reference to a key that doesn't exist, it should say that that reference in the Set is invalid instead of saying that Params is invalid for not having it. > { params: {}, sets: [ { params: [ "quux" ] } ] } - Required property "params.quux" not found. + Invalid value for property "sets.0.params[1]". Also: * Abstracted handling of $case and the different assertions on it in a helper function so that we don't have to repeat it everywhere. * Use the same hack as in other tests to display the status error message in the phpunit output (true === isGood ?: getHtml). Maybe use '' === getHtml instead, though that is also evil since Status fatals if you call getMessage/getHtml for a good Status object. Change-Id: I06a6615f728cd287a4839e09eedc2d0eeb537949 |
||
---|---|---|
.. | ||
TemplateDataBlobTest.php |