wiki.techinc.nl/tests/phpunit/includes/api
Petr Pchelko 788331c48a Introduce UserOptionsManager and DefaultOptionsManager
This converts user options management to a separate
service for use in DI context.

User options are accessed quite early on in installation
process and full-on options management depends on the
database. Prior we have protected from accessing the DB
by setting a hacky $wgUser with 0 id, and relying on the
implementation that it doesn't go into the database to
get the default user options. Now we can't really do that
since DBLoadBalancer is required to instantiate the options
manager. Instead, we redefine the options manager with
a DefaultOptionsManager, that only provides access to
default options and doesn't require DB access.

UserOptionsManager uses PreferencesFactory, however
injecting it will produce a cyclic dependency. The problem
is that we separate options to different kinds, which are
inferred from the PreferencesFactory declaration for those
options (e.g. if it's a radio button in the UI declaration,
the option is of multiselect kind). This is plain wrong,
the dependency should be wise versa. This will be addressed
separately, since it's requires larger refactoring. For now
the PreferencesFactory is obtained on demand. This will be
addressed in a followup.

Bug: T248527
Change-Id: I74917c5eaec184d188911a319895b941ed55ee87
2020-04-28 15:42:43 -07:00
..
format
query Merge "API: Fix fetching login token from action=query&meta=tokens on private wikis" 2020-03-13 09:59:52 +00:00
Validator Add expiry type to ParamValidator 2020-04-08 16:21:04 -04:00
ApiBaseTest.php Add expiry type to ParamValidator 2020-04-08 16:21:04 -04:00
ApiBlockInfoTraitTest.php Add MediaWikiIntegrationTestCase::assertArraySubmapSame() 2020-03-19 15:53:59 -07:00
ApiBlockTest.php Remove $wgEnablePartialBlocks config and always enable partial blocks 2020-03-04 13:45:44 +00:00
ApiChangeContentModelTest.php Add @author tags I forgot to include 2020-04-11 08:13:48 +00:00
ApiCheckTokenTest.php
ApiClearHasMsgTest.php
ApiComparePagesTest.php Added timestamp to action=compare 2020-04-09 16:24:21 -04:00
ApiContinuationManagerTest.php
ApiCSPReportTest.php
ApiDeleteTest.php
ApiDisabledTest.php
ApiEditPageTest.php Replace uses and hard deprecate Article:: and WikiPage::getRevision 2020-04-20 23:06:48 +00:00
ApiErrorFormatterTest.php
ApiLoginTest.php api: Report Failed rather than NeedToken on session loss for action=login 2020-04-06 17:28:47 -04:00
ApiLogoutTest.php
ApiMainTest.php Introduce UserOptionsManager and DefaultOptionsManager 2020-04-28 15:42:43 -07:00
ApiMessageTest.php
ApiModuleManagerTest.php
ApiMoveTest.php Replace uses and hard deprecate Revision::newFromTitle 2020-04-18 04:47:10 +00:00
ApiOpenSearchTest.php
ApiOptionsTest.php
ApiPageSetTest.php
ApiParseTest.php Remove codepaths which ran parser in 'untidy' mode 2020-04-13 21:34:04 +00:00
ApiPurgeTest.php Make use of PHPUnit's assertCount feature where possible 2020-03-02 15:58:41 +00:00
ApiQueryAllPagesTest.php
ApiQueryBlockInfoTraitTest.php
ApiQueryBlocksTest.php Add MediaWikiIntegrationTestCase::assertArraySubmapSame() 2020-03-19 15:53:59 -07:00
ApiQueryDisabledTest.php
ApiQueryInfoTest.php
ApiQueryLanguageinfoTest.php Make use of PHPUnit's assertCount feature where possible 2020-03-02 15:58:41 +00:00
ApiQueryPrefixSearchTest.php
ApiQueryRecentChangesIntegrationTest.php Replace uses and hard deprecate Revision::newFromTitle 2020-04-18 04:47:10 +00:00
ApiQuerySearchTest.php
ApiQuerySiteinfoTest.php Merge "languages: Move default $wgNamespaceAliases to MessagesEn.php" 2020-03-15 00:14:08 +00:00
ApiQueryWatchlistIntegrationTest.php Replace uses and hard deprecate Revision::newFromTitle 2020-04-18 04:47:10 +00:00
ApiQueryWatchlistRawIntegrationTest.php Make use of PHPUnit's assertCount feature where possible 2020-03-02 15:58:41 +00:00
ApiResultTest.php Replace all new stdClass() with identical (object)[] 2020-03-04 21:18:30 +00:00
ApiRevisionDeleteTest.php
ApiSetNotificationTimestampIntegrationTest.php
ApiStashEditTest.php
ApiTestCase.php Hard deprecate ApiTestCase::doLogin 2020-02-15 02:31:33 +00:00
ApiTestContext.php
ApiTokensTest.php
ApiUnblockTest.php
ApiUploadTest.php
ApiUploadTestCase.php Use MediaWikiServices::getRepoGroup in api related classes 2020-04-11 23:58:00 +00:00
ApiUsageExceptionTest.php
ApiUserrightsTest.php
ApiWatchTest.php Add expiry type to ParamValidator 2020-04-08 16:21:04 -04:00
generateRandomImages.php Use class keyword for classname resolution 2020-03-27 09:33:01 +01:00
MockApi.php
MockApiQueryBase.php
RandomImageGenerator.php
UserWrapper.php
words.txt