wiki.techinc.nl/tests/phpunit/unit/includes
Aaron Schulz 8e1bb24eed rdbms: clean up LoadBalancer/ChronologyProtector primary pos methods
In LoadBalancer:
* Make the "chronologyCallback" return the DBPrimaryPos and make
  loadSessionPrimaryPos() set the "waitForPos" more directly by
  calling setSessionPrimaryPosIfHigher(). Previously, it relied
  on the callback calling waitFor() to set the position as a side
  effect.
* Remove redundant debug log entry in loadSessionPrimaryPos().
* Use type hints for waitFor()/waitForAll(). All callers already check
  this for before invocation.
* Mark getReplicaResumePos() as @internal.

In ChronologyProtector:
* Update applySessionReplicationPosition() to return the position.
* Rename applySessionReplicationPosition() to yieldSessionPrimaryPos()
  and stageSessionReplicationPosition() to stageSessionPrimaryPos() for
  for consistency LoadBalancer/DBPrimaryPos.

Bug: T314434
Change-Id: I32aa784b424e7534047c9240e32fa5e0a2ac90b0
2023-02-09 17:19:36 +00:00
..
actions Tests: add ObjectFactory to DummyServicesTrait 2023-01-23 19:35:50 +00:00
api Tests: add ObjectFactory to DummyServicesTrait 2023-01-23 19:35:50 +00:00
auth tests: Change assertion in AbstractSecondaryAuthenticationProviderTest 2023-01-06 04:06:32 +01:00
block Make use of the ?? and ??= operators where it makes sense 2022-11-10 18:31:18 +01:00
cache Merge "cache: Inject HookContainer into BacklinkCache" 2022-12-14 22:03:37 +00:00
changes Replace more usages of MWException 2023-01-26 10:38:16 +00:00
CommentFormatter Clean up tests that misused the parameters of assertSame/Equals 2022-02-08 07:21:10 +00:00
composer
config Replace trivial usa of mock builder with createMock() shortcut 2022-07-15 16:43:48 +00:00
content Reorg: Move MagicWord related files to under parser/ 2022-12-09 13:48:35 +01:00
dao Various doc fixes about false and null on method arguments/return types 2022-11-03 18:55:47 +01:00
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 DummyServicesTrait: add content handler factory 2023-01-02 01:09:42 +00: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
Feed Feed: Move feed-related classes to Feed/ and namespace them 2022-10-20 17:25:49 +00:00
filebackend Tests: add ObjectFactory to DummyServicesTrait 2023-01-23 19:35:50 +00:00
filerepo/file
GlobalFunctions tests: Replace assertRegExp with assertMatchesRegularExpression 2022-10-07 14:13:16 -04:00
historyblob Protect HistoryBlob storage against malicious class injection 2022-12-02 00:26:11 +00:00
HookContainer Tests: add ObjectFactory to DummyServicesTrait 2023-01-23 19:35:50 +00:00
htmlform Simplify callback in HTMLForm tests 2023-01-10 21:34:00 +01:00
http Fix whitespaces after comma 2022-12-15 01:24:14 +01:00
import [php8.1] Make WikiImporterFactoryTest use better mock for ImportSource 2022-07-24 07:34:10 -07:00
installer Add convenience methods for asserting status. 2022-03-16 22:44:25 +01:00
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 json: Dont try to deserialize actual user-land instances 2023-01-26 21:17:21 +00:00
language Tests: add LanguageNameUtils to DummyServicesTrait 2023-02-02 20:50:48 +00:00
libs rdbms: clean up LoadBalancer/ChronologyProtector primary pos methods 2023-02-09 17:19:36 +00:00
linker Move LinksMigrationTest to proper subdirectory 2023-01-28 03:51:57 +00:00
mail Remove access to config globals from more classes 2022-04-28 18:36:28 +03:00
media tests: Declare GIFMetadataExtractorTest::$mediaPath 2023-01-06 03:53:31 +01:00
Message
objectcache Use short array destructuring instead of list() 2022-10-21 15:33:37 +11:00
page unit tests: Use MainConfigNames constant to refer configs 2022-08-17 22:33:58 +02:00
ParamValidator/TypeDef Merge "ParamValidator: Allow to use User:0 in UserDef" 2022-03-15 23:25:24 +00:00
parser Move Parsoid-related unit tests to proper subdirectory 2023-01-27 18:35:26 -05:00
password password: Reduce time cost of password unit tests 2022-11-22 22:48:10 +00:00
Permissions Simplify PermissionManagerTest logic 2023-01-24 22:23:14 +00:00
poolcounter Remove confusing ->onlyMethods( [] ) with empty array from tests 2022-08-08 15:49:59 +02:00
preferences Reorg: Move Title-related classes to title/ 2022-11-26 09:30:32 +00:00
rcfeed RCFeedTest: Ensure wgRCEngines is set to array for test case 2022-06-03 14:43:07 +00:00
registration ResourceLoader: Default File modules to mobile and desktop targets 2023-01-31 19:24:53 +00:00
ResourceLoader resourceloader: Tweak RL\FilePath handling in packageFiles 2022-05-27 22:40:41 +01:00
Rest Rest: Add helper method for validating the CSRF token 2023-02-01 22:39:24 -08:00
Revision Use SlotRecord::MAIN instead of hard coded value 2023-01-03 16:24:42 +01: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 Reorg: Move some of request related classes to MediaWiki/Request 2022-10-28 10:15:31 +00:00
Settings Merge "SettingsBuilder: introduce a "registration" stage" 2022-12-19 00:25:33 +00:00
shell
site site\MediaWikiPageNameNormalizer: Replace deprecated Http::get 2022-12-14 21:12:30 +00:00
skins Tests: add ObjectFactory to DummyServicesTrait 2023-01-23 19:35:50 +00:00
Storage deferred,jobqueue,rdbms: Change logger->notice to info or warning 2023-01-14 01:22:34 +00:00
tidy Miscellaneous PHP version related cleanups 2022-11-21 10:11:53 +11:00
title Fix casing of class and function name usages 2022-12-04 19:09:30 +00:00
user Merge "UserTimeCorrection: Validate time offsets in 'Offset|…' format" 2023-01-24 22:56:15 +00:00
utils Reorg: Move some of request related classes to MediaWiki/Request 2022-10-28 10:15:31 +00:00
watcheditem tests: Simplify some nested ->will( $this->return assertions 2022-11-12 11:57:12 -07:00
watchlist watchlist: Re-centralise former wgUseEnotif condition 2023-02-02 08:48:50 +00:00
BadFileLookupTest.php BadFileLookupTest: avoid ' in literals, breaks gitiles highlighting 2022-08-02 22:11:23 +00:00
DeprecatedGlobalTest.php Reorg: Move StubObject classes in includes to its own directory 2022-10-25 16:04:48 -04:00
DerivativeRequestTest.php Reorg: Move some of request related classes to MediaWiki/Request 2022-10-28 10:15:31 +00:00
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
FormOptionsInitializationTest.php
FormOptionsTest.php
HeaderCallbackTest.php Reorg: Move HeaderCallback to Request directory 2022-11-08 10:53:27 +01:00
HtmlHelperTest.php Add HtmlHelper::modifyElements() for small HTML modifications 2022-05-08 15:55:00 +02:00
LicensesTest.php Deprecate creating HTMLFormFields without reference to parent form 2023-01-08 18:20:16 -08:00
ListToggleTest.php Tests: Cleanup some unnecessary nested function calls 2022-06-06 01:02:34 +01:00
MovePageTest.php Add convenience methods for asserting status. 2022-03-16 22:44:25 +01:00
PathRouterTest.php Reorg: Move some of request related classes to MediaWiki/Request 2022-10-28 10:15:31 +00:00
PingbackTest.php Pingback: Migrate select queries to SelectQueryBuilder 2023-02-07 13:01:56 +01: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 Merge "Replace some more mock builders with createMock() shortcut" 2022-12-02 00:29:35 +00:00
TitleTest.php Title: Hard deprecate Title::newFromTitleValue() 2022-05-09 21:14:13 +01:00
WikiReferenceTest.php
XmlJsTest.php
XmlSelectTest.php
XmlTest.php