wiki.techinc.nl/tests/phpunit/includes
Siddharth VP ce6bd364b9 Allow setting page restrictions on BotPassword grants
Helps bot operators adhere to the principle of least privileges.

Grants can now be restricted to allow editing (and other write
operations) for upto 25 listed pages. The page IDs are persisted within
the bp_restrictions field of bot_passwords table, and in the session
metadata.

This restriction is checked only as part of expensive checks in
PermissionManager, since they are not applicable for UI actions.

Bug: T349957
Change-Id: I3d228eb97664d040a160c5b742d9176fdfae9a43
2023-12-05 14:51:06 +05:30
..
actions Bump codesniffer to 42.0.0 2023-09-27 15:06:32 -04:00
api Merge "Replace a few manually crafted assertTrue assertions" 2023-11-30 12:45:42 +00:00
auth Move user options related classes into its own namespace 2023-11-29 13:27:13 +01:00
block Follow-up 71ff05267: Stop writing to tablesUsed in tests, now unnecessary 2023-11-21 09:02:48 -05:00
cache Bump codesniffer to 42.0.0 2023-09-27 15:06:32 -04:00
Category Follow-up 71ff05267: Stop writing to tablesUsed in tests, now unnecessary 2023-11-21 09:02:48 -05:00
changes Replace a few manually crafted assertTrue assertions 2023-11-23 09:38:48 +01:00
changetags Follow-up 71ff05267: Stop writing to tablesUsed in tests, now unnecessary 2023-11-21 09:02:48 -05:00
collation
CommentStore Follow-up 71ff05267: Stop writing to tablesUsed in tests, now unnecessary 2023-11-21 09:02:48 -05:00
composer tests: Move test cases from /includes/ into sub folder 2023-09-13 00:09:05 +02:00
config Namespace Config-related classes under \MediaWiki\Config 2023-09-21 05:41:58 +00:00
content Follow-up 71ff05267: Stop writing to tablesUsed in tests, now unnecessary 2023-11-21 09:02:48 -05:00
db rdbms: Drop ILoadBalancer::getAnyOpenConnection() 2023-11-28 15:42:39 +01:00
debug MWDebug: Add support for native PHP warnings to "Console" 2023-10-19 17:13:12 -07:00
deferred Namespace remaining files under includes/deferred 2023-11-22 10:08:53 -05:00
diff parser: Move lang/dir and mw-content-ltr to ParserOutput::getText 2023-11-03 19:24:47 -04:00
editpage Move StaticUserOptionsLookup to the MediaWiki\User\Options namespace 2023-11-29 14:08:40 -05:00
exception Test UserBlockedError 2023-11-02 13:20:11 +00:00
export tests: Move test cases from /includes/ into sub folder 2023-09-13 00:09:05 +02:00
ExternalLinks Replace a few manually crafted assertTrue assertions 2023-11-23 09:38:48 +01:00
externalstore
filebackend Namespace remaining files under includes/deferred 2023-11-22 10:08:53 -05:00
filerepo Follow-up 71ff05267: Stop writing to tablesUsed in tests, now unnecessary 2023-11-21 09:02:48 -05:00
GlobalFunctions Autofix spacing around commas 2023-10-25 01:08:44 +02:00
HookContainer
Html tests: Move test cases from /includes/ into sub folder 2023-09-13 00:09:05 +02:00
htmlform Refactor HTMLRestrictionsField to allow more restrictions to be added 2023-11-23 16:01:50 +00:00
http http: MultiHttpClient supports TelemetryHeadersInterface 2023-09-12 18:05:17 +02:00
import Follow-up 71ff05267: Stop writing to tablesUsed in tests, now unnecessary 2023-11-21 09:02:48 -05:00
installer
interwiki Follow-up 71ff05267: Stop writing to tablesUsed in tests, now unnecessary 2023-11-21 09:02:48 -05:00
jobqueue Follow-up 71ff05267: Stop writing to tablesUsed in tests, now unnecessary 2023-11-21 09:02:48 -05:00
language Move user options related classes into its own namespace 2023-11-29 13:27:13 +01:00
languages Autofix spacing around commas 2023-10-25 01:08:44 +02:00
libs Namespace remaining files under includes/deferred 2023-11-22 10:08:53 -05:00
linkeddata Reorg: Move three output related classes to includes/Output/ 2023-09-05 19:36:42 +01:00
linker Follow-up 71ff05267: Stop writing to tablesUsed in tests, now unnecessary 2023-11-21 09:02:48 -05:00
logging Support new block schema 2023-11-29 13:31:42 +11:00
mail Follow-up 71ff05267: Stop writing to tablesUsed in tests, now unnecessary 2023-11-21 09:02:48 -05:00
media SVGReader: Detect CSS animated SVGs 2023-11-05 21:21:08 +01:00
Message
Navigation
objectcache
Output Merge "In OutputPage::addParserOutput, getText() before processing metadata" 2023-11-06 21:02:58 +00:00
page Merge "Replace a few manually crafted assertTrue assertions" 2023-11-30 12:45:42 +00:00
pager Switch to ICP in some easy cases 2023-09-26 21:05:16 +02:00
ParamValidator/TypeDef Follow-up 71ff05267: Stop writing to tablesUsed in tests, now unnecessary 2023-11-21 09:02:48 -05:00
parser Merge "Only cache expensive renderings" 2023-11-30 21:24:34 +00:00
ParserOutputTransform parser: Move lang/dir and mw-content-ltr to ParserOutput::getText 2023-11-03 19:24:47 -04:00
password Follow-up 71ff05267: Stop writing to tablesUsed in tests, now unnecessary 2023-11-21 09:02:48 -05:00
Permissions IP Masking: Expire temporary accounts in 1 year 2023-11-09 15:11:48 +01:00
poolcounter Follow-up 71ff05267: Stop writing to tablesUsed in tests, now unnecessary 2023-11-21 09:02:48 -05:00
preferences Move user options related classes into its own namespace 2023-11-29 13:27:13 +01:00
profiler
rcfeed Namespace remaining 'specialpage' files under \MediaWiki\SpecialPage 2023-09-18 18:23:13 +01:00
registration Bump codesniffer to 42.0.0 2023-09-27 15:06:32 -04:00
Request Merge "ContentSecurityPolicy: Expose directives" 2023-11-15 20:11:33 +00:00
ResourceLoader CodexModule: Add unit test for code splitting 2023-12-01 00:52:23 +00:00
Rest
Revision Follow-up 71ff05267: Stop writing to tablesUsed in tests, now unnecessary 2023-11-21 09:02:48 -05:00
search search: prefer user typed form when re-ranking a redirect to the top 2023-10-25 10:59:52 +02:00
session Allow setting page restrictions on BotPassword grants 2023-12-05 14:51:06 +05:30
shell
site site: Migrate DBSiteStore to use ICP 2023-08-24 13:34:35 +02:00
SiteStats Convert numerous DB queries to use QueryBuilders 2023-10-09 19:06:53 +02:00
skins Introduce BlockMockTrait 2023-10-27 12:22:36 +00:00
sparql Reorg: Move Status to MediaWiki\Status\ 2023-08-25 15:44:17 +02:00
specialpage RC Filters: Treat unnamed accounts as unregistered 2023-11-08 10:41:34 +01:00
specials Fix BlockListPager query errors 2023-11-30 14:02:18 +11:00
Status Minimize code duplication in StatusValue methods 2023-11-30 20:26:52 +00:00
Storage Replace a few manually crafted assertTrue assertions 2023-11-23 09:38:48 +01:00
title Namespace remaining files under includes/deferred 2023-11-22 10:08:53 -05:00
upload
user Move StaticUserOptionsLookup to the MediaWiki\User\Options namespace 2023-11-29 14:08:40 -05:00
utils Merge "Replace a few manually crafted assertTrue assertions" 2023-11-30 12:45:42 +00:00
watcheditem Move user options related classes into its own namespace 2023-11-29 13:27:13 +01:00
WikiMap tests: Move test cases from /includes/ into sub folder 2023-09-13 00:09:05 +02:00
xml tests: Move test cases from /includes/ into sub folder 2023-09-13 00:09:05 +02:00
AutoLoaderTest.php
MediaWikiServicesTest.php Namespace Config-related classes under \MediaWiki\Config 2023-09-21 05:41:58 +00:00
MediaWikiTest.php Namespace remaining files under includes/deferred 2023-11-22 10:08:53 -05:00
MockServiceWiring.php
SampleTest.php
TestUser.php Namespace User under \MediaWiki\User 2023-09-19 19:18:16 +00:00
TestUserRegistry.php Autofix spacing around commas 2023-10-25 01:08:44 +02:00