wiki.techinc.nl/tests/phpunit/includes
Dreamy Jazz eabb13833f Define ApiQuery::isWriteMode
Why:
* ApiQueryBase subclasses may define a ::isWriteMode override, as
  the API call may need to write to the DB.
** This is the case for the CheckUser extension, where the
   'checkuser' API creates a log entry that allows users to audit
   usage of the API.
* ApiQuery currently does not define a implementation of
  ::isWriteMode, which means that the definitions by any class
  that extends ApiQueryBase currently do nothing.
* ApiQuery::isWriteMode should be defined and work in a similar
  way to ApiQuery::isReadMode, so that subclasses of ApiQueryBase
  can have their definitions of ::isWriteMode respected.

What:
* Define ApiQuery::isWriteMode in a similar way to how ApiQuery
  ::isReadMode is written, but also inspecting the modules that
  are used through the 'list' and 'prop' params.
* Add tests for ApiQuery::isWriteMode.

Bug: T361951
Change-Id: Idf1c8f95df58a861404e0c89507c885ec4554793
2024-04-05 16:56:04 +01:00
..
actions Config: Mark MainPageIsDomainRoot official 2024-03-13 15:23:37 +00:00
api Define ApiQuery::isWriteMode 2024-04-05 16:56:04 +01:00
auth tests: More use statements in auth tests 2024-02-16 21:49:35 +00:00
block Update wgAutoCreateTempUser config defaults 2024-04-03 16:25:47 +00:00
cache Namespace includes/cache 2024-02-20 10:28:03 -05:00
Category tests: Fix @covers and @coversDefaultClass to have leading \ 2024-02-16 22:43:56 +00:00
changes tests: Fix @covers and @coversDefaultClass to have leading \ 2024-02-16 22:43:56 +00:00
changetags Add PHPUnit test for ChangeTagsList class 2024-02-23 16:05:45 +00:00
collation tests: Fix @covers and @coversDefaultClass to have leading \ 2024-02-16 22:43:56 +00:00
CommentStore CommentStore: Remove unused getFields method 2024-01-20 16:21:39 +01:00
composer tests: Fix @covers and @coversDefaultClass to have leading \ 2024-02-16 22:43:56 +00:00
config tests: Use namespaced class names in @covers annotations 2024-01-27 01:11:07 +01:00
content Merge "HtmlOutputRendererHelper: fall back to page language" 2024-03-13 15:57:24 +00:00
db
debug tests: Add replacement for assertions deprecated in PHPUnit 9.6 2024-02-23 22:09:45 +01:00
deferred Merge "ParserOutput::setPageProperty(): Emit deprecation warning for non-scalar values" 2024-03-11 17:08:20 +00:00
diff Fix some spelling errors 2024-03-18 20:58:11 +11:00
editpage tests: Fix @covers and @coversDefaultClass to have leading \ 2024-02-16 22:43:56 +00:00
exception tests: Fix @covers and @coversDefaultClass to have leading \ 2024-02-16 22:43:56 +00:00
export Merge "[ParserOutput] Rename $mText to $mRawText and ::setText() to ::setRawText()" 2024-02-21 17:11:00 +00:00
ExternalLinks build: Fix line indents 2024-03-11 00:14:16 +01:00
externalstore Drop old class_aliases for before MW 1.39 that were missed 2024-03-20 12:10:42 +00:00
filebackend filebackend: Retry Swift requests with new auth token on 401 2024-03-15 21:34:36 +00:00
filerepo Introduce entry point classes for media files. 2024-03-30 21:14:05 +01:00
GlobalFunctions
HookContainer tests: Add Tests to PHP namespacing 2024-02-16 19:10:11 +00:00
Html Html,Xml: Widen @covers tags 2024-03-30 21:48:32 +00:00
http tests: Fix @covers and @coversDefaultClass to have leading \ 2024-02-16 22:43:56 +00:00
import tests: Fix @covers and @coversDefaultClass to have leading \ 2024-02-16 22:43:56 +00:00
installer
interwiki tests: Fix @covers and @coversDefaultClass to have leading \ 2024-02-16 22:43:56 +00:00
jobqueue tests: Fix @covers and @coversDefaultClass to have leading \ 2024-02-16 22:43:56 +00:00
language Follow-up "ZhConverter: Fix language variant fallback chain" 2024-03-08 11:37:41 +08:00
languages tests: Fix @covers and @coversDefaultClass to have leading \ 2024-02-16 22:43:56 +00:00
libs tests: Move Wikimedia tests into Wikimedia\Tests 2024-02-17 02:09:08 +00:00
linkeddata tests: Fix @covers and @coversDefaultClass to have leading \ 2024-02-16 22:43:56 +00:00
linker Namespace includes/cache 2024-02-20 10:28:03 -05:00
logging LogFormatterFactory: Inject LinkRenderer too 2024-04-02 21:24:49 +02:00
mail tests: Fix @covers and @coversDefaultClass to have leading \ 2024-02-16 22:43:56 +00:00
media tests: Fix @covers and @coversDefaultClass to have leading \ 2024-02-16 22:43:56 +00:00
Message Namespace Message, move to appropriate directory 2024-02-14 15:10:36 -05:00
Navigation
objectcache objectcache: Restore default keyspace for LocalServerCache service 2024-03-28 19:47:44 +01:00
Output build: Upgrade mediawiki/mediawiki-codesniffer to v43.0.0 2024-03-01 15:58:13 -05:00
OutputTransform HandleSectionLinks: Remove old debug logging for resolved bug 2024-03-07 23:09:25 +01:00
page parser: Remove explicit StatsdDataFactory backward-compat logic 2024-03-26 22:53:58 +00:00
pager Replace last remaining wfGetDB() calls in core, except ResourceLoader 2024-02-14 11:02:01 -05:00
ParamValidator/TypeDef tests: Move Wikimedia tests into Wikimedia\Tests 2024-02-17 02:09:08 +00:00
parser parser: Remove explicit StatsdDataFactory backward-compat logic 2024-03-26 22:53:58 +00:00
password tests: Fix @covers and @coversDefaultClass to have leading \ 2024-02-16 22:43:56 +00:00
Permissions Update wgAutoCreateTempUser config defaults 2024-04-03 16:25:47 +00:00
poolcounter parser: Remove explicit StatsdDataFactory backward-compat logic 2024-03-26 22:53:58 +00:00
preferences SignatureValidator: Don't fail signature validation on hidden lints 2024-03-29 15:55:02 -04:00
profiler
rcfeed tests: Fix @covers and @coversDefaultClass to have leading \ 2024-02-16 22:43:56 +00:00
registration tests: Fix @covers and @coversDefaultClass to have leading \ 2024-02-16 22:43:56 +00:00
Request WebRequest: detectServer appends default ports that should be omitted 2024-03-28 11:03:28 +00:00
ResourceLoader ResourceLoader: Add WikiModule regression test for T360014 2024-03-14 21:10:51 +00:00
Rest Merge "Rest: Turn Rest\EntryPoint into a MediaWikiEntryPoint subclass" 2024-03-12 14:25:41 +00:00
Revision Move away from DBAccessObjectUtils::getDBOptions in more places 2024-03-25 14:45:43 +01:00
search search: Exclude unlisted special pages from search completion 2024-03-26 17:52:33 -07:00
session objectcache: Introduce ObjectCacheFactory MW service 2024-03-19 12:38:39 +03:00
shell
site tests: Namespace Site classes 2024-02-17 00:50:52 +00:00
SiteStats tests: Fix @covers and @coversDefaultClass to have leading \ 2024-02-16 22:43:56 +00:00
skins tests: Fix @covers and @coversDefaultClass to have leading \ 2024-02-16 22:43:56 +00:00
sparql tests: Add Tests to PHP namespacing 2024-02-16 19:10:11 +00:00
specialpage Update wgAutoCreateTempUser config defaults 2024-04-03 16:25:47 +00:00
specials HTMLForm: Add regression test for T360717 2024-03-25 10:34:55 +11:00
Status message: Don't load user language when a specific language was requested 2024-03-04 12:03:38 +11:00
Storage REST: HTML endpoints should support all content models 2024-03-13 04:32:59 -05:00
title Merge "Namespace includes/cache" 2024-02-28 15:10:38 +00:00
upload Add getCacheKey static method to UploadFromUrl 2024-02-28 16:15:39 +01:00
user Update wgAutoCreateTempUser config defaults 2024-04-03 16:25:47 +00:00
utils tests: Fix @covers and @coversDefaultClass to have leading \ 2024-02-16 22:43:56 +00:00
watcheditem Namespace includes/cache 2024-02-20 10:28:03 -05:00
WikiMap tests: Fix @covers and @coversDefaultClass to have leading \ 2024-02-16 22:43:56 +00:00
xml Rename dropdown-related methods to avoid random camel-case 2024-03-09 02:31:33 +01:00
AutoLoaderTest.php tests: Fix @covers and @coversDefaultClass to have leading \ 2024-02-16 22:43:56 +00:00
MediaWikiServicesTest.php tests: Fix @covers and @coversDefaultClass to have leading \ 2024-02-16 22:43:56 +00:00
MockServiceWiring.php
SampleTest.php
TestUser.php Change uses of getDBLoadBalancerFactory() to getConnectionProvider() 2024-01-22 22:27:45 +01:00
TestUserRegistry.php