wiki.techinc.nl/tests/phpunit/includes/libs/objectcache/MemcachedPhpBagOStuffIntegrationTest.php
Fomafix 594e9fb023 Use MainConfigNames in tests
Change-Id: I6f79b3a36ce6605b86604fa9a99d55e8b8e67f7b
2024-08-06 13:58:47 +00:00

16 lines
488 B
PHP

<?php
use MediaWiki\MainConfigNames;
/**
* @group BagOStuff
* @covers \Wikimedia\ObjectCache\MemcachedPhpBagOStuff
*/
class MemcachedPhpBagOStuffIntegrationTest extends BagOStuffTestBase {
protected function newCacheInstance() {
if ( !$this->getConfVar( MainConfigNames::EnableRemoteBagOStuffTests ) ) {
$this->markTestSkipped( '$wgEnableRemoteBagOStuffTests is false' );
}
return $this->getServiceContainer()->getObjectCacheFactory()->getInstance( 'memcached-php' );
}
}