aboutsummaryrefslogtreecommitdiffstats
path: root/tests/phpunit/includes/api/ApiFeedRecentChangesTest.php
Commit message (Collapse)AuthorAgeFilesLines
* Add namespace to includes/api classesJames D. Forrester2024-09-251-4/+4
| | | | | Bug: T353458 Change-Id: I3ea6b08c5018ba03ba45c5766e1f46e12f6b8597
* Update help text for 'hideanons' in ApiFeedRecentChanges APIDreamy Jazz2024-02-221-0/+50
Why: * Since 1941f28f609e88da1677f0beb99468bb77748040, the recentchangesfeed API (ApiFeedRecentChanges) has treated temporary accounts as being anon users for the purposes of the 'hideanons' parameter. * However, the help text does not describe that temporary accounts are treated in this way and as such the help text needs to be modified depending on whether temporary accounts are enabled. What: * Add 'apihelp-feedrecentchanges-param-hideanons-temp' as a i18n message which duplicates the existing 'apihelp-feedrecentchanges -param-hideanons' but includes temporary accounts. * Update ApiFeedRecentChanges::getAllowedParams to use the new message if TempUserConfig::isEnabled returns true. * Add the TempUserConfig as a injected dependency for ApiFeedRecentChanges. * Add an integration test to verify that the correct help message is used for the 'hideanons' parameter in ApiFeedRecentChanges. Bug: T358249 Change-Id: I516c1a563a81777217cda998efaeda7967dd224d