wiki.techinc.nl/tests/phpunit/includes
Aaron Schulz 4659cbcccc rdbms: fix table prefixing in "FOR UPDATE" clause generation in Postgres
Make SqlPlatform::tableNameWithAlias() include the unqualified table
name as an alias if doing so is not redundant. This assures that the
default alias from JoinGroupBase::addJoin(), equal to the unqualified
table name, will be usable in SQL (regardless of table prefixes).

Clean up use of identifier quotes for sqlite_master tables. The called
methods expect unqualified names and a passthrough exception already
exists for sqlite_* tables.

Use "block_target.bt_user" directly in ApiQueryBlocks and BlockPager,
instead of using addIdentifierQuotes(). The "block_target" alias is
automatically added to the SQL by the rdbms layer when it's not clearly
redundant, so it is always safe to use block_target.bt_user. Also, there
is no reason for aliases to include quote characters. They are supposed
to be simple alphanumerics like column names. This makes it easy for
tableNameWithAlias() to avoid redundant aliases by checking tableName().

Avoid unneeded quotes around pg_catalog.* table names in the Postgres
installer. The relevant documentation of methods like selectField() is
that the table names be unqualified (no quotes nor dots), though dots
are still supported internally for compatibility reasons and ease of
querying schemas like pg_catalog and information_schema.

Change-Id: Ic7d7826da31f49915141692cb3bd84ed1e872e96
2025-06-24 22:33:30 +01:00
..
actions tests: Use namespaced classes 2024-10-21 18:53:02 +02:00
api phpunit: Remove superfluous Title::clearCaches() calls 2025-05-27 12:37:31 +00:00
auth Use anonymous user when creating named account from temp account 2025-05-29 12:06:33 +00:00
block Test AutoblockExemptionList 2024-10-16 14:04:34 +01:00
cache tests: Use namespaced classes 2024-10-21 18:53:02 +02:00
Category tests: Use namespaced classes 2024-10-21 18:53:02 +02:00
changetags Parameterize ChangeTags::buildTagFilterSelector to support various tag sets 2025-04-03 18:24:39 +01:00
collation Remove auto-generated "Class ClassName" comments 2024-05-06 10:03:41 +02:00
CommentStore tests: Use namespaced classes 2024-10-21 18:53:02 +02:00
config
content tests: Use namespaced classes 2024-10-21 18:53:02 +02:00
db rdbms: clear replica snapshots in (begin|commit|rollback)PrimaryChanges() 2024-10-09 20:34:25 +00:00
debug debug: Migrate E_USER_ERROR to throw Error in DeprecationHelper 2025-06-13 07:40:14 +00:00
deferred rdbms: clear replica snapshots in (begin|commit|rollback)PrimaryChanges() 2024-10-09 20:34:25 +00:00
diff tests: Use namespaced classes 2024-10-21 18:53:02 +02:00
editpage tests: Use namespaced classes 2024-10-21 18:53:02 +02:00
exception tests: Use namespaced classes 2024-10-21 18:53:02 +02:00
export Add namespace to maintenance/includes classes 2024-10-09 11:02:09 -04:00
ExternalLinks ExternalLinks: fix mailto: links reversal 2025-02-28 16:33:54 +00:00
externalstore tests: Use namespaced classes 2024-10-21 18:53:02 +02:00
filebackend tests: Use namespaced classes 2024-10-21 18:53:02 +02:00
filerepo filerepo: No exception on redirect without width in ThumbnailEntryPoint 2025-04-29 20:01:15 +00:00
GlobalFunctions Deprecate wfArrayDiff2() 2024-11-04 19:34:41 +00:00
HookContainer Add MediaWiki\Registration namespace to registration classes 2024-08-10 10:08:22 +00:00
Html SECURITY: Ensure emitted HTML is safe against Unicode NFC normalization 2025-04-10 15:56:06 +01:00
http phpunit: Replace trivial wfParseUrl use with parse_url() 2024-08-29 03:15:36 +01:00
import recentchanges: Use current time for imported revision category changes 2024-10-23 11:43:34 +00:00
installer [DatabaseUpdater] Don't interact with updatelog on virtual domains 2024-10-17 15:12:35 +01:00
interwiki Add namespace to remaining parts of Wikimedia\ObjectCache 2024-09-27 16:19:10 -04:00
jobqueue RefreshLinksJob: Don't retry job if "Revision x is not current" is returned 2024-11-19 16:08:11 +00:00
language SECURITY: Ensure emitted HTML is safe against Unicode NFC normalization 2025-04-10 15:56:06 +01:00
languages Switch over a bunch of class_alias uses to actuals 2024-10-03 17:09:36 +00:00
libs tests: Use namespaced classes 2024-10-21 18:53:02 +02:00
linkeddata tests: Use namespaced classes (@covers) 2024-06-14 00:15:40 +02:00
linker phpunit: Remove superfluous Title::clearCaches() calls 2025-05-27 12:37:31 +00:00
logging tests: Use namespaced classes 2024-10-21 18:53:02 +02:00
mail tests: Add missing documentation to class properties 2024-09-18 17:25:42 +00:00
media tests: Use namespaced classes 2024-10-21 18:53:02 +02:00
Message Make Message and MessageValue compatible 2024-10-19 15:00:07 +02:00
Navigation phpunit: Fix tests relying on implicit wgScript/wgArticlePath 2024-05-05 00:00:01 +00:00
objectcache objectcache: Add regression test for MultiWrite dependency injection 2024-09-23 15:07:23 -07:00
Output Deprecate OutputPage::{get,set}IndexPolicy() 2024-10-17 23:51:12 -04:00
OutputTransform SECURITY: Ensure emitted HTML is safe against Unicode NFC normalization 2025-04-10 15:56:06 +01:00
page tests: Use namespaced classes 2024-10-21 18:53:02 +02:00
pager tests: Use namespaced classes 2024-10-21 18:53:02 +02:00
ParamValidator/TypeDef Replace uses of deprecated ChangeTags static methods 2024-10-16 13:30:12 -04:00
parser phpunit: Remove superfluous Title::clearCaches() calls 2025-05-27 12:37:31 +00:00
password tests: Use const for some static data in test files 2024-09-01 23:24:11 +02:00
Permissions PermissionManager: Differentiate between cascading protection of file content and file pages 2025-03-24 13:31:34 +00:00
poolcounter tests: Use namespaced classes 2024-10-21 18:53:02 +02:00
preferences tests: Use namespaced classes 2024-10-21 18:53:02 +02:00
profiler
recentchanges Use explicit nullable type on parameter arguments 2024-10-16 20:58:33 +02:00
registration tests: Add missing documentation to class properties 2024-09-18 17:25:42 +00:00
Request Add namespace and deprecation alias to FormatJson 2024-05-16 16:28:01 +03:30
ResourceLoader phpunit: Remove superfluous Title::clearCaches() calls 2025-05-27 12:37:31 +00:00
Rest Use real type hints for services etc. in includes/Rest/ 2024-06-11 22:40:44 +02:00
Revision rdbms: fix table prefixing in "FOR UPDATE" clause generation in Postgres 2025-06-24 22:33:30 +01:00
search phpunit: Remove superfluous Title::clearCaches() calls 2025-05-27 12:37:31 +00:00
session session: Do not set session.use_trans_sid 2025-01-06 22:12:05 +00:00
shell
site tests: Consistently use class_alias comments like elsewhere 2024-09-25 09:48:46 -04:00
SiteStats Add namespace to remaining parts of Wikimedia\ObjectCache 2024-09-27 16:19:10 -04:00
skins tests: Use namespaced classes 2024-10-21 18:53:02 +02:00
sparql
specialpage Use explicit nullable type on parameter arguments 2024-10-16 20:58:33 +02:00
specials Reject temporary account usernames on Special:PasswordReset 2024-11-18 14:35:28 +00:00
Status Make Message and MessageValue compatible 2024-10-19 15:00:07 +02:00
Storage Merge "Use explicit nullable type on parameter arguments" 2024-10-16 23:10:14 +00:00
title phpunit: Remove superfluous Title::clearCaches() calls 2025-05-27 12:37:31 +00:00
upload tests: Add test cases for UploadFromChunks 2025-04-13 10:43:22 +00:00
user BotPasswordTest: Add a few more test cases provideCanonicalizeLoginData 2025-03-13 20:58:18 +00:00
utils Remove CryptHKDF and MWCryptHKDF 2024-11-10 22:49:37 -05:00
watchlist tests: Use namespaced classes 2024-10-21 18:53:02 +02:00
WikiMap tests: Use namespaced classes (1) 2024-06-14 17:19:36 +00:00
xml Add namespace and deprecation alias to Xml and XmlSelect 2024-05-16 15:23:14 +03:30
AutoLoaderTest.php tests: Add missing documentation to class properties 2024-09-18 17:25:42 +00:00
MediaWikiServicesTest.php tests: Add missing documentation to class properties 2024-09-18 17:25:42 +00:00
MockServiceWiring.php
SampleTest.php
TestUser.php
TestUserRegistry.php