wiki.techinc.nl/tests/phpunit/integration/includes
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
..
block Use IConnectionProvider in DatabaseBlockStore 2024-03-14 00:24:29 +01:00
cache Namespace includes/cache 2024-02-20 10:28:03 -05:00
CommentFormatter Merge "Change more uses of getDBLoadBalancerFactory() to getConnectionProvider()" 2024-01-23 17:59:21 +00:00
composer libs/composer: Namespace under Wikimedia\Composer 2024-01-13 20:10:25 +00:00
context tests: Fix @covers and @coversDefaultClass to have leading \ 2024-02-16 22:43:56 +00:00
db tests: Fix @covers and @coversDefaultClass to have leading \ 2024-02-16 22:43:56 +00:00
diff tests: Fix @covers and @coversDefaultClass to have leading \ 2024-02-16 22:43:56 +00:00
editpage/Constraint Namespace includes/context 2024-02-08 11:07:01 -05:00
export
filerepo tests: Fix @covers and @coversDefaultClass to have leading \ 2024-02-16 22:43:56 +00:00
Html tests: Fix @covers and @coversDefaultClass to have leading \ 2024-02-16 22:43:56 +00:00
HTMLForm tests: Add coverage for various trivial HTMLForm methods 2024-03-10 13:23:07 -04:00
http tests: Fix @covers and @coversDefaultClass to have leading \ 2024-02-16 22:43:56 +00:00
language tests: Add Tests to PHP namespacing 2024-02-16 19:10:11 +00:00
libs filebackend: Refactor FileBackendIntegrationTest 2024-03-14 20:27:25 +00:00
logging tests: Fix @covers and @coversDefaultClass to have leading \ 2024-02-16 22:43:56 +00:00
mail test: Add integration testing for Emailer 2024-02-23 18:26:46 +00:00
page Update tests for PHPUnit 9.6 (part 1) 2024-01-16 23:36:15 +01:00
parser HtmlOutputRendererHelper: fall back to page language 2024-03-06 17:18:16 +00:00
Permissions Namespace includes/cache 2024-02-20 10:28:03 -05:00
poolcounter PoolCounter: Adopt PSR logger in PoolCounter objects 2024-03-02 00:41:11 +00:00
RenameUser
ResourceLoader tests: Add more use statements in namespaced classes 2024-02-18 21:31:02 +00:00
Rest/Handler objectcache: Introduce ObjectCacheFactory MW service 2024-03-19 12:38:39 +03:00
revisionlist tests: Fix @covers and @coversDefaultClass to have leading \ 2024-02-16 22:43:56 +00:00
search tests: Fix @covers and @coversDefaultClass to have leading \ 2024-02-16 22:43:56 +00:00
specials Change more uses of getDBLoadBalancerFactory() to getConnectionProvider() 2024-01-23 16:34:45 +01:00
Storage tests: Fix @covers and @coversDefaultClass to have leading \ 2024-02-16 22:43:56 +00:00
StubObject
user Merge "TempUserConfig: Deduplicate code generating match conditions" 2024-03-07 11:22:18 +00:00
utils tests: Fix @covers and @coversDefaultClass to have leading \ 2024-02-16 22:43:56 +00:00
watchlist
ExtensionJsonTestBase.php Clean up tests 2024-02-12 09:25:25 +01:00
ExtensionServicesTestBase.php
MediaWikiEntryPointTest.php tests: Add replacement for assertions deprecated in PHPUnit 9.6 2024-02-23 22:09:45 +01:00