mediawiki-extensions-AbuseF.../tests/phpunit
Daimona Eaytoy 6bc630cfef Add aliases for "_text" and "article_" variables
Variables regarding title (full list in task description) are quite
deceiving, since they use "text" instead of "title". As proposed in the
task, this is the first patch to add aliases for those variables and
slightly deprecate the old ones. In the future we may be able to replace
every occurrence (either with a search function or directly on the
database), but even a coexistence would be enough to avoid
confusion. A wfDebug log is generated whenever a deprecated variable is
parsed. The "article_" prefix is also changed to "title_", in the same
way as above.
Also, added a hook which other extension may use to specify their
deprecated variables, which will be handled the same as core ones.

Bug: T173889
Change-Id: I5c370b54e6516889624088e27928ad3a1f48a821
2018-08-21 16:59:56 +02:00
..
AbuseFilterConsequencesTest.php Add aliases for "_text" and "article_" variables 2018-08-21 16:59:56 +02:00
AbuseFilterParserTest.php Merge "Add phpunit tests for noparams and notenoughargs exceptions" 2018-08-02 08:41:46 +00:00
AbuseFilterSaveTest.php Add phpunit tests for creating and editing filters 2018-07-18 12:30:55 +02:00
AbuseFilterTest.php Add aliases for "_text" and "article_" variables 2018-08-21 16:59:56 +02:00
AbuseFilterTokenizerTest.php Add other phpunit test for AFPUserVisibleException 2018-07-01 18:34:01 +02:00
AFPDataTest.php Add other phpunit test for AFPUserVisibleException 2018-07-01 18:34:01 +02:00