wiki.techinc.nl/tests/phpunit/includes/libs/ParamValidator
Brad Jorsch a04633f678 ParamValidator: Default PresenceBooleanDef to false rather than implicitly null
PresenceBooleanDef is causing ParamValidator::getValue() to return null,
while historical Action API behavior had returned false instead.

While it generally shouldn't make a difference since PHP considers both
falsey, and good arguments could be made either way, we can restore the
historical behavior easily enough by having normalizeSettings()
default PARAM_DEFAULT to false.

Bug: T244440
Change-Id: Iee1d8e5753407674adc3f7384989841bc9b44c54
2020-02-06 09:44:06 -05:00
..
TypeDef ParamValidator: Default PresenceBooleanDef to false rather than implicitly null 2020-02-06 09:44:06 -05:00
Util Fixes for PHPUnit 8 compatibility 2019-12-10 17:02:06 +00:00
ParamValidatorTest.php Move some validation logic from ApiStructureTest to ParamValidator 2020-02-04 20:29:35 +00:00
SimpleCallbacksTest.php ParamValidator: Use MessageValue! 2019-11-01 15:49:31 -04:00
TypeDefTest.php Move some validation logic from ApiStructureTest to ParamValidator 2020-02-04 20:29:35 +00:00