wiki.techinc.nl/tests/phpunit/structure
Derick Alangi d372626b97
objectcache: Introduce ObjectCacheFactory MW service
ObjectCache is already doing a lot of factory pattern logic like
creating instances of the various BagOStuff, this should really be
the responsibility of the factory servicet.

This patch introduces a proper factory (ObjectCacheFactory) to handle
the responsibility of creating various instances of BagOStuff. Since
`newFromParams()` is a static function that gets passed in configuration
of $wgObjectCaches, that can stay that way (to keep supporting how we do
this in prod today).

Technical Breaking Change: `ObjectCache::makeLocalServerCache()` now has
a parameter and requires it but there are no callers of this method outside
MW core hence it is safe to change (and this patch update all callers) to
work correctly. Cache prefix is gotten from global state because sometimes
at this stage, the services container is not available.

Bug: T358346
Change-Id: I3179a387486377c6a575d173f39f82870c49c321
2024-03-19 12:38:39 +03:00
..
AbstractSchemaValidationTest.php
ApiPrefixUniquenessTest.php Avoid DB access in more non-Database tests 2023-08-06 16:07:27 +00:00
ApiStructureTest.php Namespace includes/context 2024-02-08 11:07:01 -05:00
AutoLoaderStructureTest.php Replace substr with cleaner string methods 2023-05-20 15:40:21 +02:00
AvailableRightsTest.php Clean up tests 2024-02-12 09:25:25 +01:00
BundleSizeTestBase.php Clean up tests 2024-02-12 09:25:25 +01:00
CodexTokenDefaultsTest.php mediawiki.skin.defaults.less: Add neutral values for all Codex tokens 2023-03-15 17:23:51 -07:00
ContentHandlerFunctionalTest.php Merge "Remove deprecated methods from Content interface" 2023-11-28 15:52:14 +00:00
DatabaseIntegrationTest.php Change uses of getDBLoadBalancerFactory() to getConnectionProvider() 2024-01-22 22:27:45 +01:00
DumpableObjectsTest.php tests: Use namespaced classes 2023-12-11 15:59:55 +01:00
ExtensionJsonValidationTest.php
PasswordPolicyStructureTest.php tests: Make some PHPUnit data providers static 2023-03-24 02:53:57 +00:00
PHPUnitConfigTest.php Clean up tests 2024-02-12 09:25:25 +01:00
ResourcesTest.php ResourceLoader: Add module property skipStructureTest 2024-03-11 17:01:16 +00:00
RestStructureTest.php Rest: Turn Rest\EntryPoint into a MediaWikiEntryPoint subclass 2024-03-12 14:37:18 +01:00
ScopeStructureTest.php
SettingsTest.php objectcache: Introduce ObjectCacheFactory MW service 2024-03-19 12:38:39 +03:00
SpecialPageFatalTest.php Do not use UTSysop directly in tests 2023-08-16 00:35:25 +00:00
StructureTest.php