wiki.techinc.nl/tests/phpunit/includes/session
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
..
BotPasswordSessionProviderTest.php Merge "tests: Fix @covers and @coversDefaultClass to have leading \" 2024-02-16 23:25:14 +00:00
CookieSessionProviderTest.php tests: More use statements in session tests 2024-02-16 21:57:59 +00:00
CsrfTokenSetTest.php Namespace User under \MediaWiki\User 2023-09-19 19:18:16 +00:00
ImmutableSessionProviderWithCookieTest.php Merge "tests: Fix @covers and @coversDefaultClass to have leading \" 2024-02-16 23:25:14 +00:00
PHPSessionHandlerTest.php Merge "tests: Fix @covers and @coversDefaultClass to have leading \" 2024-02-16 23:25:14 +00:00
SessionBackendTest.php Merge "tests: Fix @covers and @coversDefaultClass to have leading \" 2024-02-16 23:25:14 +00:00
SessionInfoTest.php Merge "tests: Fix @covers and @coversDefaultClass to have leading \" 2024-02-16 23:25:14 +00:00
SessionManagerTest.php objectcache: Introduce ObjectCacheFactory MW service 2024-03-19 12:38:39 +03:00
SessionProviderTest.php Merge "tests: Fix @covers and @coversDefaultClass to have leading \" 2024-02-16 23:25:14 +00:00
SessionTest.php tests: More use statements in session tests 2024-02-16 21:57:59 +00:00
TestBagOStuff.php tests: Add Tests to PHP namespacing 2024-02-16 19:10:11 +00:00
TestUtils.php tests: More use statements in session tests 2024-02-16 21:57:59 +00:00
UserInfoTest.php tests: More use statements in session tests 2024-02-16 21:57:59 +00:00