diff options
author | Derick Alangi <alangiderick@gmail.com> | 2024-07-19 16:44:31 +0200 |
---|---|---|
committer | Krinkle <krinkle@fastmail.com> | 2024-07-24 02:57:23 +0000 |
commit | 65a88537424d95ff6b5e47fb1810c82c6d48c45b (patch) | |
tree | fad74f45458fa1434984955c49a69d2115d2c458 /tests/phpunit/includes/objectcache | |
parent | c35cafa53daa23ac5ca39704e2a55c307dd99d6b (diff) | |
download | mediawikicore-65a88537424d95ff6b5e47fb1810c82c6d48c45b.tar.gz mediawikicore-65a88537424d95ff6b5e47fb1810c82c6d48c45b.zip |
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 (d372626b97e83ec1f82b88e75fbaadf).
Change-Id: I7c2c20091490065ec93cccdb8cdb311b398d21ba
Diffstat (limited to 'tests/phpunit/includes/objectcache')
-rw-r--r-- | tests/phpunit/includes/objectcache/ObjectCacheFactoryIntegrationTest.php (renamed from tests/phpunit/includes/objectcache/ObjectCacheTest.php) | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/tests/phpunit/includes/objectcache/ObjectCacheTest.php b/tests/phpunit/includes/objectcache/ObjectCacheFactoryIntegrationTest.php index 4beae840ca4d..4819e2617c20 100644 --- a/tests/phpunit/includes/objectcache/ObjectCacheTest.php +++ b/tests/phpunit/includes/objectcache/ObjectCacheFactoryIntegrationTest.php @@ -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( [ |