mediawiki-extensions-AbuseF.../tests/phpunit
Daimona Eaytoy 0e6b783ed4 Reject empty warning and disallow messages when validating a filter
Right now, we allow empty messages, and when the "warn" action is
executed we use "abusefilter-warning" if no message is specified.
However, this also produces a PHP notice while editing a filter with
empty message (see Phab). With this patch, empty messages will be
rejected, and a follow-up will be discussed on Phab.

Update: added disallow message as follow-up of
Ic1de03a6944c43a346fa317ee0a217551f0d284a.

Bug: T203353
Depends-On: I8df247f61d9f3769e9580544f324dd174811e939
Change-Id: I71b1f81d10c02de4de141b1ab9b630d05cf4619c
2019-01-21 14:06:54 +01:00
..
AbuseFilterConsequencesTest.php Merge "Add unit tests for custom disallow messages" 2019-01-19 12:21:02 +00:00
AbuseFilterParserTest.php Merge "Simplify parser methods" 2019-01-19 12:11:04 +00:00
AbuseFilterSaveTest.php Reject empty warning and disallow messages when validating a filter 2019-01-21 14:06:54 +01:00
AbuseFilterTest.php Merge "Remove unused stuff" 2019-01-19 12:18:22 +00:00
AbuseFilterTokenizerTest.php Improve code coverage 2018-08-22 19:07:14 +02:00
AFPDataTest.php Improve code coverage 2018-08-22 19:07:14 +02:00