wiki.techinc.nl/tests/phpunit/unit/includes
Aaron Schulz 76be4dca81 rdbms: improve LoadBalancer connection pool reuse
Make DBConnRef enforce the DB domain selected during its lifetime
and allow more nested and successive use of the same connection handle
via DBConnRef. This can avoid extra connections in some cases where
getConnection()/getConnectionRef() is used.

Also:
* Reduce the number of connection pools arrays from six to two
* Merge getLocalConnection()/getForeignConnection() into one method
* Expand various related code comments

Bug: T226595
Depends-On: If808cbab429d41e1f2289683533e4a781a4bdf5e
Change-Id: I540b08920997c57cad6445ddb09d8e663eaf4714
2022-09-23 10:53:58 +10:00
..
actions
api
auth Tests: Cleanup some unnecessary nested function calls 2022-06-06 01:02:34 +01:00
block unit tests: Use MainConfigNames constant to refer configs 2022-08-17 22:33:58 +02:00
cache Tests: Cleanup some unnecessary nested function calls 2022-06-06 01:02:34 +01:00
changes Inline a few more trivial createMock() calls in tests 2022-08-08 09:50:50 +02:00
CommentFormatter
composer
config Replace trivial usa of mock builder with createMock() shortcut 2022-07-15 16:43:48 +00:00
content Inline a few more trivial createMock() calls in tests 2022-08-08 09:50:50 +02:00
dao
db rdbms: Move Database::factory() to DatabaseFactory service 2022-08-31 10:53:50 +10:00
debug Tests: Fix some @covers statements 2022-06-06 01:02:39 +01:00
deferred
diff Replace trivial usa of mock builder with createMock() shortcut 2022-07-15 16:43:48 +00:00
edit ParsoidOutputStash: make storage backend configurable. 2022-06-14 14:11:37 +01:00
editpage unit tests: Use MainConfigNames constant to refer configs 2022-08-17 22:33:58 +02:00
exception Migrate use of ${var}-style string interpolation 2022-07-29 02:45:09 +02:00
filebackend unit tests: Use MainConfigNames constant to refer configs 2022-08-17 22:33:58 +02:00
filerepo/file
GlobalFunctions mediawiki.util: Add parentheses to wfUrlencode test cases 2022-08-05 16:30:38 -07:00
historyblob DiffHistoryBlob: Remove workarounds for old PECL xdiff versions 2022-05-31 00:11:27 -04:00
HookContainer Replace trivial usages of code in strings with concatenation 2022-08-26 12:26:44 +00:00
htmlform
http unit tests: Use MainConfigNames constant to refer configs 2022-08-17 22:33:58 +02:00
import [php8.1] Make WikiImporterFactoryTest use better mock for ImportSource 2022-07-24 07:34:10 -07:00
installer
interwiki Replace trivial usa of mock builder with createMock() shortcut 2022-07-15 16:43:48 +00:00
jobqueue unit tests: Use MainConfigNames constant to refer configs 2022-08-17 22:33:58 +02:00
json Add return type to jsonSerialize() 2022-07-02 15:34:02 +00:00
language Add 'zh-classical' to the test cases for isWellFormedLanguageTag 2022-08-31 20:15:00 +00:00
libs rdbms: improve LoadBalancer connection pool reuse 2022-09-23 10:53:58 +10:00
linker
mail Remove access to config globals from more classes 2022-04-28 18:36:28 +03:00
media
Message
objectcache Replace trivial usa of mock builder with createMock() shortcut 2022-07-15 16:43:48 +00:00
page unit tests: Use MainConfigNames constant to refer configs 2022-08-17 22:33:58 +02:00
ParamValidator/TypeDef
parser parsoid: inject UrlUtils to avoid phpunit failures in SiteConfigTest 2022-08-26 23:39:57 +00:00
password unit tests: Use MainConfigNames constant to refer configs 2022-08-17 22:33:58 +02:00
Permissions Merge "RestrictionStore: Do not return upload as a restriction for non-existent titles" 2022-09-06 16:56:50 +00:00
poolcounter Remove confusing ->onlyMethods( [] ) with empty array from tests 2022-08-08 15:49:59 +02:00
preferences Simplify timezone-related code for user preferences 2022-09-12 12:23:48 +00:00
rcfeed RCFeedTest: Ensure wgRCEngines is set to array for test case 2022-06-03 14:43:07 +00:00
registration Collect autoloader info in ExtensionProcessor 2022-06-07 17:39:00 +02:00
ResourceLoader resourceloader: Tweak RL\FilePath handling in packageFiles 2022-05-27 22:40:41 +01:00
Rest unit tests: Use MainConfigNames constant to refer configs 2022-08-17 22:33:58 +02:00
Revision tests: Remove non-existing method arguments from revision-related tests 2022-08-06 10:49:59 +00:00
revisionlist Replace trivial usa of mock builder with createMock() shortcut 2022-07-15 16:43:48 +00:00
search phpunit: Add tests for SearchSuggestionSet::fromTitles() 2022-05-06 01:39:28 +01:00
session
Settings Use ::class to refer to class names 2022-08-17 22:59:17 +02:00
shell
site
skins unit tests: Use MainConfigNames constant to refer configs 2022-08-17 22:33:58 +02:00
Storage unit tests: Use MainConfigNames constant to refer configs 2022-08-17 22:33:58 +02:00
tidy Merge "parser: Use a <meta> tag for the internal TOC_PLACEHOLDER" 2022-09-09 21:12:34 +00:00
title
user Simplify timezone-related code for user preferences 2022-09-12 12:23:48 +00:00
utils MWCryptHashTest: Move into libs directory 2022-07-10 05:15:54 -04:00
watcheditem watcheditem: Replace deprecated User::getOption 2022-08-05 22:31:09 +00:00
watchlist Setup: Remove internal short-cut config $wgUseEnotif 2022-08-17 23:41:30 +02:00
BadFileLookupTest.php BadFileLookupTest: avoid ' in literals, breaks gitiles highlighting 2022-08-02 22:11:23 +00:00
DeprecatedGlobalTest.php
DerivativeRequestTest.php
FactoryArgTestTrait.php Make use of PHPUnit fail() shortcut 2022-07-14 14:48:15 +02:00
FauxResponseTest.php unit tests: Use MainConfigNames constant to refer configs 2022-08-17 22:33:58 +02:00
FeedUtilsTest.php
FormOptionsInitializationTest.php
FormOptionsTest.php
HeaderCallbackTest.php
HtmlHelperTest.php Add HtmlHelper::modifyElements() for small HTML modifications 2022-05-08 15:55:00 +02:00
LicensesTest.php
ListToggleTest.php Tests: Cleanup some unnecessary nested function calls 2022-06-06 01:02:34 +01:00
MovePageTest.php
PathRouterTest.php
PingbackTest.php unit tests: Use MainConfigNames constant to refer configs 2022-08-17 22:33:58 +02:00
ProxyLookupTest.php
ReadOnlyModeTest.php Make ReadOnlyModeTest work in php8. 2022-07-23 19:01:58 +00:00
SetupDynamicConfigTest.php Merge "Setup: Remove internal short-cut config $wgUseEnotif" 2022-08-20 14:53:43 +00:00
SiteConfigurationTest.php Use str_starts_with/str_ends_with 2022-05-02 10:59:58 +03:00
TitleArrayFromResultTest.php
TitleTest.php Title: Hard deprecate Title::newFromTitleValue() 2022-05-09 21:14:13 +01:00
WikiReferenceTest.php
XmlJsTest.php
XmlSelectTest.php
XmlTest.php