2020-09-25 20:02:03 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
use MediaWiki\Parser\ParserCacheFactory;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @covers \MediaWiki\Parser\ParserCacheFactory
|
|
|
|
|
*/
|
|
|
|
|
class ParserCacheFactoryTest extends MediaWikiUnitTestCase {
|
|
|
|
|
use FactoryArgTestTrait;
|
|
|
|
|
|
|
|
|
|
protected static function getFactoryClass() {
|
|
|
|
|
return ParserCacheFactory::class;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
protected static function getInstanceClass() {
|
|
|
|
|
return ParserCache::class;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
protected static function getFactoryMethodName() {
|
|
|
|
|
return 'getInstance';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
protected static function getExtraClassArgCount() {
|
2020-09-25 21:54:56 +00:00
|
|
|
// $name
|
|
|
|
|
return 1;
|
2020-09-25 20:02:03 +00:00
|
|
|
}
|
2020-12-07 15:35:18 +00:00
|
|
|
|
|
|
|
|
protected function getIgnoredParamNames() {
|
|
|
|
|
return [ 'cacheBackend', 'hookContainer' ];
|
|
|
|
|
}
|
2020-09-25 20:02:03 +00:00
|
|
|
}
|