objectcache: Update tests that are really for ObjectCacheFactory

Most of the logic in ObjectCache.php has been refactored to a proper
factory in ObjectCacheFactory and exposed as a service. These tests
now are really for ObjectCacheFactory, hence the rename.

See: I3179a387486377c6a575d173 (d372626b97).

Change-Id: I7c2c20091490065ec93cccdb8cdb311b398d21ba
This commit is contained in:
Derick Alangi 2024-07-19 16:44:31 +02:00 committed by Krinkle
parent c35cafa53d
commit 65a8853742
2 changed files with 3 additions and 9 deletions

View file

@ -99,7 +99,7 @@ class ObjectCacheFactory {
/** @var callable */
private $dbLoadBalancerFactory;
/**
* @internal ObjectCacheTest only
* @internal ObjectCacheFactoryTest only
* @var string
*/
public static $localServerCacheClass;

View file

@ -7,16 +7,13 @@ use Wikimedia\Rdbms\DatabaseDomain;
use Wikimedia\TestingAccessWrapper;
/**
* @covers \ObjectCache
* @covers \ObjectCacheFactory
* @group BagOStuff
* @group Database
*/
class ObjectCacheTest extends MediaWikiIntegrationTestCase {
class ObjectCacheFactoryIntegrationTest extends MediaWikiIntegrationTestCase {
protected function setUp(): void {
// Parent calls ObjectCache::clear() among other things
parent::setUp();
$this->setCacheConfig();
$this->setMainCache( CACHE_NONE );
$this->overrideConfigValues( [
@ -129,9 +126,6 @@ class ObjectCacheTest extends MediaWikiIntegrationTestCase {
/**
* @dataProvider provideLocalServerKeyspace
* @covers \ObjectCache
* @covers \ObjectCacheFactory
* @covers \MediaWiki\WikiMap\WikiMap
*/
public function testLocalServerKeyspace( $cachePrefix, $dbName, $dbPrefix, $expect ) {
$this->overrideConfigValues( [