2022-02-07 03:25:04 +00:00
|
|
|
<?php
|
|
|
|
|
|
2024-08-06 13:04:05 +00:00
|
|
|
use MediaWiki\MainConfigNames;
|
2024-07-09 13:37:44 +00:00
|
|
|
use Wikimedia\ObjectCache\RESTBagOStuff;
|
|
|
|
|
|
2022-02-07 03:25:04 +00:00
|
|
|
/**
|
|
|
|
|
* @group BagOStuff
|
2024-07-09 13:37:44 +00:00
|
|
|
* @covers \Wikimedia\ObjectCache\RESTBagOStuff
|
2022-02-07 03:25:04 +00:00
|
|
|
*/
|
|
|
|
|
class RESTBagOStuffIntegrationTest extends BagOStuffTestBase {
|
|
|
|
|
protected function newCacheInstance() {
|
2024-08-06 13:04:05 +00:00
|
|
|
if ( !$this->getConfVar( MainConfigNames::EnableRemoteBagOStuffTests ) ) {
|
2022-02-07 03:25:04 +00:00
|
|
|
$this->markTestSkipped( '$wgEnableRemoteBagOStuffTests is false' );
|
|
|
|
|
}
|
|
|
|
|
return $this->getCacheByClass( RESTBagOStuff::class );
|
|
|
|
|
}
|
|
|
|
|
}
|